mirror of
https://github.com/drone-plugins/drone-buildah.git
synced 2026-06-26 15:52:44 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9634f21c4d |
@@ -1,6 +1,6 @@
|
|||||||
# Source for dockerfile:
|
# Source for dockerfile:
|
||||||
# https://github.com/containers/buildah/blob/master/docs/tutorials/05-openshift-rootless-bud.md
|
# https://github.com/containers/buildah/blob/master/docs/tutorials/05-openshift-rootless-bud.md
|
||||||
FROM quay.io/buildah/stable:v1.14.8
|
FROM quay.io/buildah/stable:v1.43.1
|
||||||
|
|
||||||
RUN touch /etc/subgid /etc/subuid \
|
RUN touch /etc/subgid /etc/subuid \
|
||||||
&& chmod g=u /etc/subgid /etc/subuid /etc/passwd \
|
&& chmod g=u /etc/subgid /etc/subuid /etc/passwd \
|
||||||
@@ -16,8 +16,10 @@ RUN mkdir -p /home/build/.config/containers \
|
|||||||
|
|
||||||
USER build
|
USER build
|
||||||
WORKDIR /home/build
|
WORKDIR /home/build
|
||||||
|
ENV STORAGE_DRIVER=vfs
|
||||||
|
ENV BUILDAH_ISOLATION=chroot
|
||||||
|
|
||||||
# Add plugin binary
|
# Add plugin binaries
|
||||||
ADD release/linux/amd64/drone-docker /bin/
|
ADD release/linux/amd64/drone-docker /bin/
|
||||||
ADD release/linux/amd64/drone-acr /bin/
|
ADD release/linux/amd64/drone-acr /bin/
|
||||||
ENTRYPOINT ["/bin/drone-acr"]
|
ENTRYPOINT ["/bin/drone-acr"]
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
FROM quay.io/buildah/stable:v1.36.0
|
FROM quay.io/buildah/stable:v1.43.1
|
||||||
|
|
||||||
# Set up the working directory
|
# Set up the working directory
|
||||||
USER build
|
USER build
|
||||||
WORKDIR /home/build
|
WORKDIR /home/build
|
||||||
RUN export STORAGE_DRIVER=vfs
|
ENV STORAGE_DRIVER=vfs
|
||||||
|
|
||||||
# Add the plugin binary
|
# Add the plugin binary
|
||||||
ADD release/linux/amd64/drone-docker /bin/
|
ADD release/linux/amd64/drone-docker /bin/
|
||||||
|
|||||||
@@ -1,41 +1,10 @@
|
|||||||
FROM fedora
|
FROM quay.io/buildah/stable:v1.43.1
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
USER build
|
USER build
|
||||||
WORKDIR /home/build
|
WORKDIR /home/build
|
||||||
RUN export STORAGE_DRIVER=vfs
|
ENV STORAGE_DRIVER=vfs
|
||||||
COPY --from=0 /root/buildah/src/github.com/containers/buildah/bin/. /bin/
|
|
||||||
|
|
||||||
# Add plugin binary
|
# Add plugin binaries
|
||||||
ADD release/linux/amd64/drone-docker /bin/
|
ADD release/linux/amd64/drone-docker /bin/
|
||||||
ADD release/linux/amd64/drone-ecr /bin/
|
ADD release/linux/amd64/drone-ecr /bin/
|
||||||
ENTRYPOINT ["/bin/drone-ecr"]
|
ENTRYPOINT ["/bin/drone-ecr"]
|
||||||
|
|||||||
@@ -1,41 +1,10 @@
|
|||||||
FROM fedora
|
FROM quay.io/buildah/stable:v1.43.1
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
USER build
|
USER build
|
||||||
WORKDIR /home/build
|
WORKDIR /home/build
|
||||||
RUN export STORAGE_DRIVER=vfs
|
ENV STORAGE_DRIVER=vfs
|
||||||
COPY --from=0 /root/buildah/src/github.com/containers/buildah/bin/. /bin/
|
|
||||||
|
|
||||||
# Add plugin binary
|
# Add plugin binaries
|
||||||
ADD release/linux/amd64/drone-docker /bin/
|
ADD release/linux/amd64/drone-docker /bin/
|
||||||
ADD release/linux/amd64/drone-gcr /bin/
|
ADD release/linux/amd64/drone-gcr /bin/
|
||||||
ENTRYPOINT ["/bin/drone-gcr"]
|
ENTRYPOINT ["/bin/drone-gcr"]
|
||||||
|
|||||||
@@ -1,41 +1,10 @@
|
|||||||
FROM fedora
|
FROM quay.io/buildah/stable:v1.43.1
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
USER build
|
USER build
|
||||||
WORKDIR /home/build
|
WORKDIR /home/build
|
||||||
RUN export STORAGE_DRIVER=vfs
|
ENV STORAGE_DRIVER=vfs
|
||||||
COPY --from=0 /root/buildah/src/github.com/containers/buildah/bin/. /bin/
|
|
||||||
|
|
||||||
# Add plugin binary
|
# Add plugin binaries
|
||||||
ADD release/linux/amd64/drone-docker /bin/
|
ADD release/linux/amd64/drone-docker /bin/
|
||||||
ADD release/linux/amd64/drone-heroku /bin/
|
ADD release/linux/amd64/drone-heroku /bin/
|
||||||
ENTRYPOINT ["/bin/drone-heroku"]
|
ENTRYPOINT ["/bin/drone-heroku"]
|
||||||
|
|||||||
Reference in New Issue
Block a user