Files
plugin-drone-buildah/Dockerfile-build-buildah
T
2021-10-18 18:49:57 -04:00

34 lines
769 B
Plaintext

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
ARG GIT_USER_NAME
RUN git config --global user.name "$GIT_USER_NAME"
ARG GIT_USER_EMAIL
RUN git config --global user.email "$GIT_USER_EMAIL"
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