feat(alpine): 3.16.2

This commit is contained in:
chris 2022-10-30 20:00:02 +01:00
parent f1f6e72e6d
commit e9848b804c
Signed by: chris
GPG key ID: 75EFC7666CF51AD6
4 changed files with 81 additions and 0 deletions

34
alpine/Containerfile Normal file
View file

@ -0,0 +1,34 @@
ARG VERSION=3.16.2
FROM alpine as build
ARG VERSION
ENV VERSION $VERSION
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 --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
ENV VERSION $VERSION
COPY --from=build /dest /
ADD zknt-ca.pem /usr/share/ca-certificates/zknt-ca.pem
RUN set -xe;\
apk add --no-cache ca-certificates curl &&\
apk upgrade -a &&\
update-ca-certificates &&\
rm -rf /var/cache/apk/*
CMD ["/bin/sh"]
LABEL version.alpine=$VERSION

10
alpine/README.md Normal file
View file

@ -0,0 +1,10 @@
stock alpine
============
Basic Alpine base image, pulling Alpines minirootfs and extracting to `scratch`.
Embeds ZKNT CA.
Source repository: https://git.zknt.org/k8s/images
Public registry: https://quay.io/repository/zknt/alpine

2
alpine/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 }'

35
alpine/zknt-ca.pem Normal file
View file

@ -0,0 +1,35 @@
-----BEGIN CERTIFICATE-----
MIIGBzCCA++gAwIBAgIUCvAvdZQbjS3cB3bJFMWiO9dCtbcwDQYJKoZIhvcNAQEL
BQAwgZIxCzAJBgNVBAYTAkRFMRAwDgYDVQQIEwdIYW1idXJnMRAwDgYDVQQHEwdI
YW1idXJnMQ0wCwYDVQQKEwRaS05UMR4wHAYDVQQLExVDZXJ0aWZpY2F0ZSBBdXRo
b3JpdHkxEDAOBgNVBAMTB1pLTlQgQ0ExHjAcBgkqhkiG9w0BCQEWD3N5c2FkbUB6
a250Lm9yZzAeFw0yMDExMjYwOTQ1MDFaFw00MDExMjEwOTQ1MDFaMIGSMQswCQYD
VQQGEwJERTEQMA4GA1UECBMHSGFtYnVyZzEQMA4GA1UEBxMHSGFtYnVyZzENMAsG
A1UEChMEWktOVDEeMBwGA1UECxMVQ2VydGlmaWNhdGUgQXV0aG9yaXR5MRAwDgYD
VQQDEwdaS05UIENBMR4wHAYJKoZIhvcNAQkBFg9zeXNhZG1AemtudC5vcmcwggIi
MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDJFP7u1XaKinkO0CUmTZG9P9vk
jlz0MeFj+AZcy0N+/vpLtFNDkSlRfFKAt9ZrOkvB8P88/ki5UPm0tcFA2zTBe8jI
HpK3ief8fB3SaaqqQPxlhUmTWwW7BhnCQ3RNWs9R2D5PB8nOlftLDi+zjV6m4AzY
aR9/3P6EvyrU5xHQ5R4u6HJbXpM6JO/5SpzOy4OmpsZw9tD3OnqRJtXKqPfIzyZz
Y0EDifH+5KGdRCnplQAbI6FVjAytaS10Sg1z7dK2kb2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