Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI-13848 - Fix "`GLIBC_2.34' not found" in buildah-docker #11

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 6 additions & 34 deletions docker/docker/Dockerfile.linux.amd64
Original file line number Diff line number Diff line change
@@ -1,40 +1,12 @@
FROM fedora

RUN dnf -y install \
make \
golang \
bats \
btrfs-progs-devel \
device-mapper-devel \
glib2-devel \
gpgme-devel \
libassuan-devel \
libseccomp-devel \
git \
bzip2 \
go-md2man \
runc \
containers-common \
skopeo-containers

# Workaround - the first install somehow leaves the golang in a bad state
RUN dnf -y install golang

RUN mkdir /root/buildah && \
cd /root/buildah && \
git clone https://github.com/harness/buildah.git ./src/github.com/containers/buildah

RUN cd /root/buildah/src/github.com/containers/buildah && make && sudo make install



FROM quay.io/buildah/stable:v1.23.0
FROM quay.io/buildah/stable:v1.36.0

# Set up the working directory
USER build
WORKDIR /home/build
RUN export STORAGE_DRIVER=vfs
# Add plugin binary

# Add the plugin binary
ADD release/linux/amd64/drone-docker /bin/
COPY --from=0 /root/buildah/src/github.com/containers/buildah/bin/. /bin/

ENTRYPOINT ["/bin/drone-docker"]
# Set the entrypoint to the plugin binary
ENTRYPOINT ["/bin/drone-docker"]