-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: Remove
alpine-3.15
suffix from docker tags
This decouples the application from the distro, and keeps the distro transparent to the user. Since all variants use the same distro, their docker tags should not need a distro suffix.
- Loading branch information
1 parent
269b417
commit 7742d91
Showing
64 changed files
with
1,925 additions
and
483 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ $( | |
} | ||
}) -join '' | ||
) | ||
All variants are based on ``alpine``. | ||
"@ | ||
|
||
|
57 changes: 57 additions & 0 deletions
57
variants/1.14.10-envsubst-git-jq-kustomize-sops-ssh/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM alpine:3.15 | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
# When $TARGETPLATFORM is linux/arm/v7, strip out the '/v6' or '/v7' from it | ||
RUN BIN_URL=https://storage.googleapis.com/kubernetes-release/release/v1.14.10/bin/$( echo $TARGETPLATFORM | sed 's@/v[67]$@@' )/kubectl \ | ||
&& SHA512=$( wget -qO- "$BIN_URL.sha512" ) \ | ||
&& wget -qO- "$BIN_URL" > /usr/local/bin/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl \ | ||
&& sha512sum /usr/local/bin/kubectl | grep "^$SHA512 " \ | ||
&& kubectl version --client | ||
|
||
# From: https://github.com/nginxinc/docker-nginx/blob/1.17.0/stable/alpine/Dockerfile | ||
# Bring in gettext so we can get `envsubst`, then throw | ||
# the rest away. To do this, we need to install `gettext` | ||
# then move `envsubst` out of the way so `gettext` can | ||
# be deleted completely, then move `envsubst` back. | ||
RUN apk add --no-cache --virtual .gettext gettext \ | ||
&& mv /usr/bin/envsubst /tmp/ \ | ||
\ | ||
&& runDeps="$( \ | ||
scanelf --needed --nobanner /tmp/envsubst \ | ||
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | ||
| sort -u \ | ||
| xargs -r apk info --installed \ | ||
| sort -u \ | ||
)" \ | ||
&& apk add --no-cache $runDeps \ | ||
&& apk del .gettext \ | ||
&& mv /tmp/envsubst /usr/local/bin/ | ||
|
||
RUN apk add --no-cache git | ||
|
||
RUN apk add --no-cache jq | ||
|
||
RUN apk add --no-cache curl \ | ||
&& curl -L https://github.com/kubernetes-sigs/kustomize/releases/download/v2.0.3/kustomize_2.0.3_linux_amd64 -o /usr/local/bin/kustomize \ | ||
&& chmod +x /usr/local/bin/kustomize \ | ||
&& apk del curl | ||
|
||
RUN set -eux; \ | ||
wget -qO- https://github.com/mozilla/sops/releases/download/v3.7.1/sops-v3.7.1.linux > /usr/local/bin/sops; \ | ||
chmod +x /usr/local/bin/sops; \ | ||
sha256sum /usr/local/bin/sops | grep '^185348fd77fc160d5bdf3cd20ecbc796163504fd3df196d7cb29000773657b74 '; \ | ||
sops --version | ||
|
||
RUN apk add --no-cache gnupg | ||
|
||
RUN apk add --no-cache openssh-client | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x /docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
10 changes: 10 additions & 0 deletions
10
variants/1.14.10-envsubst-git-jq-kustomize-sops-ssh/docker-entrypoint.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- kubectl "$@" | ||
elif [ $# -gt 0 ] && kubectl "$1" --help > /dev/null 2>&1; then | ||
set -- kubectl "$@" | ||
fi | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM alpine:3.15 | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
# When $TARGETPLATFORM is linux/arm/v7, strip out the '/v6' or '/v7' from it | ||
RUN BIN_URL=https://storage.googleapis.com/kubernetes-release/release/v1.14.10/bin/$( echo $TARGETPLATFORM | sed 's@/v[67]$@@' )/kubectl \ | ||
&& SHA512=$( wget -qO- "$BIN_URL.sha512" ) \ | ||
&& wget -qO- "$BIN_URL" > /usr/local/bin/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl \ | ||
&& sha512sum /usr/local/bin/kubectl | grep "^$SHA512 " \ | ||
&& kubectl version --client | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x /docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- kubectl "$@" | ||
elif [ $# -gt 0 ] && kubectl "$1" --help > /dev/null 2>&1; then | ||
set -- kubectl "$@" | ||
fi | ||
|
||
exec "$@" |
57 changes: 57 additions & 0 deletions
57
variants/1.15.12-envsubst-git-jq-kustomize-sops-ssh/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM alpine:3.15 | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
# When $TARGETPLATFORM is linux/arm/v7, strip out the '/v6' or '/v7' from it | ||
RUN BIN_URL=https://storage.googleapis.com/kubernetes-release/release/v1.15.12/bin/$( echo $TARGETPLATFORM | sed 's@/v[67]$@@' )/kubectl \ | ||
&& SHA512=$( wget -qO- "$BIN_URL.sha512" ) \ | ||
&& wget -qO- "$BIN_URL" > /usr/local/bin/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl \ | ||
&& sha512sum /usr/local/bin/kubectl | grep "^$SHA512 " \ | ||
&& kubectl version --client | ||
|
||
# From: https://github.com/nginxinc/docker-nginx/blob/1.17.0/stable/alpine/Dockerfile | ||
# Bring in gettext so we can get `envsubst`, then throw | ||
# the rest away. To do this, we need to install `gettext` | ||
# then move `envsubst` out of the way so `gettext` can | ||
# be deleted completely, then move `envsubst` back. | ||
RUN apk add --no-cache --virtual .gettext gettext \ | ||
&& mv /usr/bin/envsubst /tmp/ \ | ||
\ | ||
&& runDeps="$( \ | ||
scanelf --needed --nobanner /tmp/envsubst \ | ||
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | ||
| sort -u \ | ||
| xargs -r apk info --installed \ | ||
| sort -u \ | ||
)" \ | ||
&& apk add --no-cache $runDeps \ | ||
&& apk del .gettext \ | ||
&& mv /tmp/envsubst /usr/local/bin/ | ||
|
||
RUN apk add --no-cache git | ||
|
||
RUN apk add --no-cache jq | ||
|
||
RUN apk add --no-cache curl \ | ||
&& curl -L https://github.com/kubernetes-sigs/kustomize/releases/download/v2.0.3/kustomize_2.0.3_linux_amd64 -o /usr/local/bin/kustomize \ | ||
&& chmod +x /usr/local/bin/kustomize \ | ||
&& apk del curl | ||
|
||
RUN set -eux; \ | ||
wget -qO- https://github.com/mozilla/sops/releases/download/v3.7.1/sops-v3.7.1.linux > /usr/local/bin/sops; \ | ||
chmod +x /usr/local/bin/sops; \ | ||
sha256sum /usr/local/bin/sops | grep '^185348fd77fc160d5bdf3cd20ecbc796163504fd3df196d7cb29000773657b74 '; \ | ||
sops --version | ||
|
||
RUN apk add --no-cache gnupg | ||
|
||
RUN apk add --no-cache openssh-client | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x /docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
10 changes: 10 additions & 0 deletions
10
variants/1.15.12-envsubst-git-jq-kustomize-sops-ssh/docker-entrypoint.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- kubectl "$@" | ||
elif [ $# -gt 0 ] && kubectl "$1" --help > /dev/null 2>&1; then | ||
set -- kubectl "$@" | ||
fi | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM alpine:3.15 | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
# When $TARGETPLATFORM is linux/arm/v7, strip out the '/v6' or '/v7' from it | ||
RUN BIN_URL=https://storage.googleapis.com/kubernetes-release/release/v1.15.12/bin/$( echo $TARGETPLATFORM | sed 's@/v[67]$@@' )/kubectl \ | ||
&& SHA512=$( wget -qO- "$BIN_URL.sha512" ) \ | ||
&& wget -qO- "$BIN_URL" > /usr/local/bin/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl \ | ||
&& sha512sum /usr/local/bin/kubectl | grep "^$SHA512 " \ | ||
&& kubectl version --client | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x /docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- kubectl "$@" | ||
elif [ $# -gt 0 ] && kubectl "$1" --help > /dev/null 2>&1; then | ||
set -- kubectl "$@" | ||
fi | ||
|
||
exec "$@" |
57 changes: 57 additions & 0 deletions
57
variants/1.16.15-envsubst-git-jq-kustomize-sops-ssh/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM alpine:3.15 | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
# When $TARGETPLATFORM is linux/arm/v7, strip out the '/v6' or '/v7' from it | ||
RUN BIN_URL=https://storage.googleapis.com/kubernetes-release/release/v1.16.15/bin/$( echo $TARGETPLATFORM | sed 's@/v[67]$@@' )/kubectl \ | ||
&& SHA512=$( wget -qO- "$BIN_URL.sha512" ) \ | ||
&& wget -qO- "$BIN_URL" > /usr/local/bin/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl \ | ||
&& sha512sum /usr/local/bin/kubectl | grep "^$SHA512 " \ | ||
&& kubectl version --client | ||
|
||
# From: https://github.com/nginxinc/docker-nginx/blob/1.17.0/stable/alpine/Dockerfile | ||
# Bring in gettext so we can get `envsubst`, then throw | ||
# the rest away. To do this, we need to install `gettext` | ||
# then move `envsubst` out of the way so `gettext` can | ||
# be deleted completely, then move `envsubst` back. | ||
RUN apk add --no-cache --virtual .gettext gettext \ | ||
&& mv /usr/bin/envsubst /tmp/ \ | ||
\ | ||
&& runDeps="$( \ | ||
scanelf --needed --nobanner /tmp/envsubst \ | ||
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | ||
| sort -u \ | ||
| xargs -r apk info --installed \ | ||
| sort -u \ | ||
)" \ | ||
&& apk add --no-cache $runDeps \ | ||
&& apk del .gettext \ | ||
&& mv /tmp/envsubst /usr/local/bin/ | ||
|
||
RUN apk add --no-cache git | ||
|
||
RUN apk add --no-cache jq | ||
|
||
RUN apk add --no-cache curl \ | ||
&& curl -L https://github.com/kubernetes-sigs/kustomize/releases/download/v2.0.3/kustomize_2.0.3_linux_amd64 -o /usr/local/bin/kustomize \ | ||
&& chmod +x /usr/local/bin/kustomize \ | ||
&& apk del curl | ||
|
||
RUN set -eux; \ | ||
wget -qO- https://github.com/mozilla/sops/releases/download/v3.7.1/sops-v3.7.1.linux > /usr/local/bin/sops; \ | ||
chmod +x /usr/local/bin/sops; \ | ||
sha256sum /usr/local/bin/sops | grep '^185348fd77fc160d5bdf3cd20ecbc796163504fd3df196d7cb29000773657b74 '; \ | ||
sops --version | ||
|
||
RUN apk add --no-cache gnupg | ||
|
||
RUN apk add --no-cache openssh-client | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x /docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
10 changes: 10 additions & 0 deletions
10
variants/1.16.15-envsubst-git-jq-kustomize-sops-ssh/docker-entrypoint.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- kubectl "$@" | ||
elif [ $# -gt 0 ] && kubectl "$1" --help > /dev/null 2>&1; then | ||
set -- kubectl "$@" | ||
fi | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM alpine:3.15 | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
# When $TARGETPLATFORM is linux/arm/v7, strip out the '/v6' or '/v7' from it | ||
RUN BIN_URL=https://storage.googleapis.com/kubernetes-release/release/v1.16.15/bin/$( echo $TARGETPLATFORM | sed 's@/v[67]$@@' )/kubectl \ | ||
&& SHA512=$( wget -qO- "$BIN_URL.sha512" ) \ | ||
&& wget -qO- "$BIN_URL" > /usr/local/bin/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl \ | ||
&& sha512sum /usr/local/bin/kubectl | grep "^$SHA512 " \ | ||
&& kubectl version --client | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x /docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- kubectl "$@" | ||
elif [ $# -gt 0 ] && kubectl "$1" --help > /dev/null 2>&1; then | ||
set -- kubectl "$@" | ||
fi | ||
|
||
exec "$@" |
Oops, something went wrong.