Compare commits

...

3 Commits

Author SHA1 Message Date
chris 68d7edf278 fix label
dockers/debian/pipeline/head This commit looks good Details
2022-01-29 18:33:11 +01:00
chris 702e60c0a0 fix gosu
dockers/debian/pipeline/head This commit looks good Details
2021-10-29 00:18:51 +02:00
chris 3feddb4316 bullseye
dockers/debian/pipeline/head There was a failure building this commit Details
2021-10-28 23:58:13 +02:00
3 changed files with 25 additions and 14 deletions

View File

@ -2,7 +2,8 @@ FROM debian:stable as builder
RUN set -xe;\
apt-get update &&\
apt-get install -y debootstrap &&\
debootstrap --include=apt,ca-certificates,curl --foreign --variant=minbase buster /dest &&\
mount &&\
debootstrap --include=apt,ca-certificates,curl --foreign --variant=minbase bullseye /dest &&\
sed -i 's/setup_proc//' /dest/debootstrap/suite-script
FROM scratch as bootstrapped
@ -13,7 +14,8 @@ RUN set -xe;\
rm -rf /var/lib/apt/lists/*
FROM bootstrapped as toolbuilder
ENV GOSU_VERSION="1.12"
ENV GOSU_VERSION="1.14"
ENV SUEXEC_VERSION="0.2"
ENV DUMB_INIT_VERSION="1.2.5"
RUN set -xe;\
apt-get update &&\
@ -21,7 +23,8 @@ RUN set -xe;\
git clone https://github.com/tianon/gosu.git /build &&\
cd /build &&\
git checkout $GOSU_VERSION &&\
go get || echo 0; go build
go mod download &&\
go build
RUN set -xe;\
apt-get install -y build-essential &&\
cd / &&\
@ -30,17 +33,26 @@ RUN set -xe;\
cd dumb-init-${DUMB_INIT_VERSION} &&\
make &&\
cp dumb-init /
RUN set -xe;\
apt-get install -y libc6-dev make gcc &&\
cd / &&\
curl -LO https://github.com/ncopa/su-exec/archive/refs/tags/v0.2.tar.gz &&\
tar xvaf v0.2.tar.gz &&\
cd su-exec-* &&\
make &&\
cp su-exec /
FROM bootstrapped
ARG DATE
ENV GOSU_VERSION="1.12"
ENV DUMB_INIT_VERSION="1.2.3"
COPY --from=toolbuilder /build/build /usr/local/sbin/gosu
COPY --from=toolbuilder /build/gosu /usr/local/sbin/gosu
COPY --from=toolbuilder /dumb-init /usr/local/sbin/dumb-init
COPY --from=toolbuilder /su-exec /usr/local/sbin/su-exec
COPY apt-install /bin/apt-install
COPY checkupdates /bin/checkupdates
CMD "bash"
LABEL version.debian=buster \
LABEL version.debian=bullseye \
version.gosu=$GOSU_VERSION \
version.dumb-init=$DUMB_INIT_VERSION \
build.date=$DATE

12
Jenkinsfile vendored
View File

@ -1,4 +1,4 @@
version = "10"
version = "11"
project = "debian"
repo = "zknt"
registry = "reg.zknt.org"
@ -14,15 +14,15 @@ pipeline {
script {
def customImage = docker.build(registry+'/'+repo+'/'+project, "--pull --build-arg VERSION=$version --build-arg DATE=$timeStamp .")
customImage.push(version)
customImage.push("buster")
customImage.push("bullseye")
customImage.push("stable")
def io_registry_credentials = "3deeee3d-6fce-4430-98dd-9b4db56f43f7"
withDockerRegistry([ credentialsId: io_registry_credentials ]) {
def io_registry_image = repo + '/' + project + ':' + version
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image
sh "docker push " + io_registry_image
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":buster"
sh "docker push " + io_registry_image.split(/\:/)[0] + ":buster"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":bullseye"
sh "docker push " + io_registry_image.split(/\:/)[0] + ":bullseye"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":stable"
sh "docker push " + io_registry_image.split(/\:/)[0] + ":stable"
}
@ -32,8 +32,8 @@ pipeline {
def quay_image = 'quay.io/' + repo + '/' + project + ':' + version
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image
sh "docker push " + quay_image
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":buster"
sh "docker push " + quay_image.split(/\:/)[0] + ":buster"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":bullseye"
sh "docker push " + quay_image.split(/\:/)[0] + ":bullseye"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":stable"
sh "docker push " + quay_image.split(/\:/)[0] + ":stable"
}

View File

@ -1,6 +1,5 @@
---
version: 10
version: 11
project: debian
additional_tags:
- buster
- stable
- bullseye