Compare commits

...

19 Commits
3.11 ... 3.16

Author SHA1 Message Date
chris 4bd15bf348 3.16.3
dockers/alpine/pipeline/head This commit looks good Details
2022-11-12 13:54:59 +01:00
chris f72f5926fe 3.16.2
dockers/alpine/pipeline/head This commit looks good Details
2022-08-10 22:06:07 +02:00
chris c53b5b9486 3.16.1
dockers/alpine/pipeline/head This commit looks good Details
2022-07-20 14:41:34 +02:00
chris 975ff5403f 3.16.0
dockers/alpine/pipeline/head This commit looks good Details
2022-05-25 11:43:44 +02:00
chris 4c6cb823bd 3.15.4
dockers/alpine/pipeline/head This commit looks good Details
2022-04-05 14:01:42 +02:00
chris 1694e4212b 3.15.3
dockers/alpine/pipeline/head This commit looks good Details
2022-04-01 15:33:25 +02:00
chris 571153ae43 3.15.2
dockers/alpine/pipeline/head This commit looks good Details
2022-03-25 14:47:08 +01:00
chris 6e513337d9 3.15.1
dockers/alpine/pipeline/head This commit looks good Details
2022-03-18 11:29:30 +01:00
chris 0a44d08522 3.15.0
dockers/alpine/pipeline/head This commit looks good Details
2021-11-28 20:03:30 +01:00
chris 4fd7b40e4f 3.14.3
dockers/alpine/pipeline/head This commit looks good Details
2021-11-12 14:21:36 +01:00
chris ca1707df21 3.14.2
dockers/alpine/pipeline/head This commit looks good Details
2021-08-30 15:56:37 +02:00
chris 3778a96891 3.14.1
dockers/alpine/pipeline/head This commit looks good Details
2021-08-08 15:00:08 +02:00
chris 099ba43d2d 3.14
dockers/alpine/pipeline/head This commit looks good Details
2021-06-16 19:28:31 +02:00
chris a2639b69b2 3.13.5
dockers/alpine/pipeline/head This commit looks good Details
2021-04-21 20:21:16 +02:00
chris eab394a7e8 3.13.4
dockers/alpine/pipeline/head This commit looks good Details
2021-04-01 16:48:57 +02:00
chris ef8defeb5c 3.13.3
dockers/alpine/pipeline/head This commit looks good Details
2021-03-28 15:59:09 +02:00
chris a648a15202 3.13.1
dockers/alpine/pipeline/head This commit looks good Details
2021-01-29 14:02:17 +01:00
chris 82d031f189 temp disable gpg check
dockers/alpine/pipeline/head This commit looks good Details
2021-01-14 18:44:14 +01:00
chris 89bd5d73e1 3.13.0
dockers/alpine/pipeline/head There was a failure building this commit Details
2021-01-14 18:39:35 +01:00
5 changed files with 22 additions and 20 deletions

View File

@ -1,24 +1,29 @@
FROM alpine as build
ARG VERSION
ENV ALPINE_SERIES 3.12
ENV ALPINE_SERIES 3.16
ENV ALPINE_MIRROR https://ftp.halifax.rwth-aachen.de/alpine/v${ALPINE_SERIES}
ENV ALPINE_ARCH x86_64
WORKDIR /root
RUN set -xo pipefail; apk add --no-cache curl gnupg &&\
curl -LO ${ALPINE_MIRROR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
curl -LO ${ALPINE_MIRROR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc &&\
gpg --keyserver pool.sks-keyservers.net --recv 0482D84022F52DF1C4E7CD43293ACD0907D9495A &&\
gpg --verify alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
#curl -LO ${ALPINE_MIRROR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc &&\
#gpg --keyserver pool.sks-keyservers.net --recv 0482D84022F52DF1C4E7CD43293ACD0907D9495A &&\
#gpg --verify alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
mkdir /dest &&\
tar -C /dest -xvzf alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
sed -i "s#http://dl-cdn.alpinelinux.org/alpine/v${ALPINE_SERIES}#${ALPINE_MIRROR}#g" /dest/etc/apk/repositories
ADD scan-deps.sh /bin/scan-deps
FROM scratch
ARG VERSION
ARG DATE
COPY --from=build /dest /
RUN apk add --no-cache ca-certificates curl
RUN set -xe;\
apk add --no-cache ca-certificates curl &&\
apk upgrade -a &&\
rm -rf /var/cache/apk/*
CMD ["/bin/sh"]
LABEL version.alpine=$VERSION build.date=$DATE

17
Jenkinsfile vendored
View File

@ -1,4 +1,4 @@
version = "3.12.3"
version = "3.16.3"
project = "alpine"
repo = "zknt"
registry = "reg.zknt.org"
@ -14,17 +14,14 @@ pipeline {
script {
def customImage = docker.build(registry+'/'+repo+'/'+project, "--pull --build-arg VERSION=$version --build-arg DATE=$timeStamp .")
customImage.push(version)
customImage.push("latest")
customImage.push("3.12")
customImage.push("3.16")
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] + ":latest"
sh "docker push " + io_registry_image.split(/\:/)[0] + ":latest"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":3.12"
sh "docker push " + io_registry_image.split(/\:/)[0] + ":3.12"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":3.16"
sh "docker push " + io_registry_image.split(/\:/)[0] + ":3.16"
}
def quay_credentials= "18fb6f7e-c6bc-4d06-9bf9-08c2af6bfc1a"
@ -32,10 +29,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] + ":latest"
sh "docker push " + quay_image.split(/\:/)[0] + ":latest"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":3.12"
sh "docker push " + quay_image.split(/\:/)[0] + ":3.12"
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":3.16"
sh "docker push " + quay_image.split(/\:/)[0] + ":3.16"
}
}
}

View File

@ -3,7 +3,7 @@ stock alpine
Basic Alpine base image, pulling Alpines minirootfs and extracting to `scratch`.
Builds both `edge` and latest release (currently `3.12`) in branches.
Builds both `edge` and latest release (currently `3.14`) in branches.
Source repository: https://git.zknt.org/dockers/alpine

View File

@ -1,5 +1,5 @@
version: 3.12.3
---
version: 3.16.3
project: alpine
additional_tags:
- latest
- 3.12
- 3.16

2
scan-deps.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
scanelf --needed --nobanner --format '%n#p' --recursive $@ | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }'