From e783a4ba822ea8c5a27a53cb4f12ab9cbcfb3255 Mon Sep 17 00:00:00 2001 From: Brad Gessler Date: Wed, 15 Jan 2025 13:36:55 -0800 Subject: [PATCH] Fixes 'bundler gem' tebako build bug --- alpine-3.17.Dockerfile | 5 +++++ ubuntu-20.04.Dockerfile | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/alpine-3.17.Dockerfile b/alpine-3.17.Dockerfile index 3d91782..a440045 100644 --- a/alpine-3.17.Dockerfile +++ b/alpine-3.17.Dockerfile @@ -43,6 +43,11 @@ RUN apk --no-cache --upgrade add build-base cmake git bash sudo \ ENV CC=clang ENV CXX=clang++ +# This is needed to deal with gems created by `bundler gem` that are +# being packaged by `tebako press` inside of a container. More at +# https://github.com/tamatebako/tebako-ci-containers/issues/40. +RUN git config --global --add safe.directory '*' + # https://github.com/actions/checkout/issues/1014 # RUN adduser --disabled-password --gecos "" --home $HOME tebako && \ # printf "\ntebako\tALL=(ALL)\tNOPASSWD:\tALL" > /etc/sudoers.d/tebako diff --git a/ubuntu-20.04.Dockerfile b/ubuntu-20.04.Dockerfile index 2ed6bb0..bb50121 100644 --- a/ubuntu-20.04.Dockerfile +++ b/ubuntu-20.04.Dockerfile @@ -42,6 +42,11 @@ RUN apt-get -y update && \ ENV CC=clang-12 ENV CXX=clang++-12 +# This is needed to deal with gems created by `bundler gem` that are +# being packaged by `tebako press` inside of a container. More at +# https://github.com/tamatebako/tebako-ci-containers/issues/40 +RUN git config --global --add safe.directory '*' + COPY tools /opt/tools RUN /opt/tools/tools.sh install_cmake && \