-
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.
Merge pull request #32 from theohbrothers/feature/add-v1.25-variant
Feature: Add v1.25 variant
- Loading branch information
Showing
5 changed files
with
324 additions
and
4 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
$local:VARIANTS_PACKAGE_VERSIONS = @( | ||
'v1.25.1' | ||
'v1.24.5' | ||
'v1.23.11' | ||
'v1.22.14' | ||
|
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,14 @@ | ||
FROM alpine:3.8 | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
# 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.25.1/bin/$( echo $TARGETPLATFORM | sed 's@/v[67]$@@' )/kubectl \ | ||
&& SHA512=$( wget -qO- "$BIN_URL.sha512" ) \ | ||
&& [ -n "$SHA512" ] \ | ||
&& wget -qO- "$BIN_URL" > /usr/local/bin/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl \ | ||
&& sha512sum /usr/local/bin/kubectl | grep "$SHA512" | ||
|
||
CMD [ "/usr/local/bin/kubectl" ] |
49 changes: 49 additions & 0 deletions
49
variants/v1.25.1-envsubst-git-jq-kustomize-sops-ssh-alpine-3.8/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,49 @@ | ||
FROM alpine:3.8 | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
# 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.25.1/bin/$( echo $TARGETPLATFORM | sed 's@/v[67]$@@' )/kubectl \ | ||
&& SHA512=$( wget -qO- "$BIN_URL.sha512" ) \ | ||
&& [ -n "$SHA512" ] \ | ||
&& wget -qO- "$BIN_URL" > /usr/local/bin/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl \ | ||
&& sha512sum /usr/local/bin/kubectl | grep "$SHA512" | ||
|
||
# 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 | ||
|
||
# Note: sops does not provide binaries for other arch other than linux/i386 and linux/amd64. So sops might not work on other architectures. | ||
RUN 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 | ||
|
||
RUN apk add --no-cache gnupg | ||
|
||
RUN apk add --no-cache openssh-client | ||
|
||
CMD [ "/usr/local/bin/kubectl" ] |