6 Commits

Author SHA1 Message Date
OP (oppenheimer) 576fa63696 Merge pull request #11 from drone-plugins/CI-13848
CI-13848 - Fix "`GLIBC_2.34' not found" in buildah-docker
2024-08-22 23:18:02 +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
TP Honey 8ad8465153 fix docs link 2022-05-31 12:00:36 +01:00
3 changed files with 18 additions and 38 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
+1 -1
View File
@@ -8,7 +8,7 @@
[![Go Doc](https://godoc.org/github.com/drone-plugins/drone-buildah?status.svg)](http://godoc.org/github.com/drone-plugins/drone-buildah)
[![Go Report](https://goreportcard.com/badge/github.com/drone-plugins/drone-buildah)](https://goreportcard.com/report/github.com/drone-plugins/drone-buildah)
Drone plugin uses buildah to build and publish Docker images to a container registry. For the usage information and a listing of the available options please take a look at [the docs](http://plugins.drone.io/drone-plugins/drone-buildah/).
Drone plugin uses buildah to build and publish Docker images to a container registry. For the usage information and a listing of the available options please take a look at [the docs](https://plugins.drone.io/plugins/buildah).
## Build
+7 -35
View File
@@ -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 release/linux/amd64/drone-docker /bin/
COPY --from=0 /root/buildah/src/github.com/containers/buildah/bin/. /bin/
ENTRYPOINT ["/bin/drone-docker"]
# Add the plugin binary
ADD release/linux/amd64/drone-docker /bin/
# Set the entrypoint to the plugin binary
ENTRYPOINT ["/bin/drone-docker"]