12 Commits

Author SHA1 Message Date
OP (oppenheimer) c62ad79f25 Update Dockerfile.linux.amd64 2025-01-21 13:04:55 +05:30
OP (oppenheimer) 8d6332db5d Update Dockerfile.linux.amd64 2025-01-21 12:58:25 +05:30
OP (oppenheimer) eb1db70c33 Update Dockerfile.linux.amd64 2025-01-21 12:51:21 +05:30
OP (oppenheimer) 5a8a28e124 Update Dockerfile.linux.amd64 2025-01-21 12:24:55 +05:30
OP (oppenheimer) 346e74f38b Update Dockerfile.linux.amd64 2025-01-21 12:16:54 +05:30
OP (oppenheimer) 4c7f48edfd Update Dockerfile.linux.amd64 2025-01-21 12:10:26 +05:30
OP (oppenheimer) 34aae448e1 Update Dockerfile.linux.amd64 2025-01-21 12:03:43 +05:30
OP (oppenheimer) 759b6ba2f6 Update Dockerfile.linux.amd64 2025-01-21 11:51:48 +05:30
OP (oppenheimer) 0043db940d Update Dockerfile.linux.amd64 2024-08-22 23:09:31 +05:30
OP (oppenheimer) c99dbd8efa Update Dockerfile.linux.amd64 2024-08-22 22:41:06 +05:30
TP Honey 018dd9ef61 Merge pull request #8 from tphoney/harness_move
(maint) move to harness.drone.io
2022-12-07 14:01:27 +00:00
TP Honey a6e0171dd5 (maint) move to harness.drone.io 2022-12-07 13:58:28 +00:00
2 changed files with 36 additions and 36 deletions
+10 -2
View File
@@ -1,6 +1,12 @@
kind: pipeline
type: docker
name: default
type: vm
platform:
os: linux
arch: amd64
pool:
use: ubuntu
steps:
- name: build
@@ -96,12 +102,14 @@ steps:
---
kind: pipeline
type: docker
type: vm
name: notifications-docker
platform:
os: linux
arch: amd64
pool:
use: ubuntu
steps:
- name: manifest-docker
+26 -34
View File
@@ -1,40 +1,32 @@
FROM fedora
FROM quay.io/buildah/stable:v1.36.0
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
USER root
# Workaround - the first install somehow leaves the golang in a bad state
RUN dnf -y install golang
RUN dnf -y install fuse-overlayfs shadow-utils && dnf clean all
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
RUN touch /etc/subgid /etc/subuid \
&& chmod g=u /etc/subgid /etc/subuid /etc/passwd \
&& echo build:10000:65536 > /etc/subuid \
&& echo build:10000:65536 > /etc/subgid
USER build
WORKDIR /home/build
RUN export STORAGE_DRIVER=vfs
# Add plugin binary
ADD release/linux/amd64/drone-docker /bin/
COPY --from=0 /root/buildah/src/github.com/containers/buildah/bin/. /bin/
# Use chroot since the default runc does not work when running rootless
ENV _BUILDAH_STARTED_IN_USERNS=""
ENV BUILDAH_ISOLATION=chroot
ENV STORAGE_DRIVER=vfs
ENV PATH=$PATH:/usr/bin/
ENTRYPOINT ["/bin/drone-docker"]
# Use overlay
RUN mkdir -p /home/build/.config/containers \
&& echo '[storage]' > /home/build/.config/containers/storage.conf \
&& echo ' driver = "overlay"' >> /home/build/.config/containers/storage.conf \
&& echo '[storage.options.overlay]' >> /home/build/.config/containers/storage.conf \
&& echo ' mount_program = "/usr/bin/fuse-overlayfs"'>> /home/build/.config/containers/storage.conf
WORKDIR /home/build
# Add the plugin binary
ADD release/linux/amd64/drone-docker /bin/
# Set the entrypoint to the plugin binary
ENTRYPOINT ["/bin/drone-docker"]