mirror of
https://github.com/BretFisher/shpod.git
synced 2026-02-14 13:09:50 +00:00
♻️ Update kubeseal version; don't install krew on ia32
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -64,9 +64,9 @@ RUN cp $(find bin -name kube-linter) /usr/local/bin
|
||||
|
||||
# https://github.com/bitnami-labs/sealed-secrets/releases
|
||||
FROM builder AS kubeseal
|
||||
ARG KUBESEAL_VERSION=0.16.0
|
||||
RUN helper-curl bin kubeseal \
|
||||
https://github.com/bitnami-labs/sealed-secrets/releases/download/v$KUBESEAL_VERSION/kubeseal-@KSARCH
|
||||
ARG KUBESEAL_VERSION=0.17.4
|
||||
RUN helper-curl tar kubeseal \
|
||||
https://github.com/bitnami-labs/sealed-secrets/releases/download/v$KUBESEAL_VERSION/kubeseal-$KUBESEAL_VERSION-linux-@GOARCH.tar.gz
|
||||
|
||||
# https://github.com/kubernetes-sigs/kustomize/releases
|
||||
FROM builder AS kustomize
|
||||
@@ -173,12 +173,15 @@ RUN echo k8s:x:1000: >> /etc/group \
|
||||
&& chown -R k8s:k8s /home/k8s/ \
|
||||
&& sed -i 's/#MaxAuthTries 6/MaxAuthTries 42/' /etc/ssh/sshd_config
|
||||
ARG TARGETARCH
|
||||
RUN mkdir /tmp/krew \
|
||||
RUN \
|
||||
if [ "$TARGETARCH" != "386" ]; then \
|
||||
mkdir /tmp/krew \
|
||||
&& cd /tmp/krew \
|
||||
&& curl -fsSL https://github.com/kubernetes-sigs/krew/releases/latest/download/krew-linux_$TARGETARCH.tar.gz | tar -zxf- \
|
||||
&& sudo -u k8s -H ./krew-linux_$TARGETARCH install krew \
|
||||
&& cd \
|
||||
&& rm -rf /tmp/krew
|
||||
&& rm -rf /tmp/krew \
|
||||
; fi
|
||||
COPY --chown=1000:1000 bash_profile /home/k8s/.bash_profile
|
||||
COPY --chown=1000:1000 vimrc /home/k8s/.vimrc
|
||||
COPY motd /etc/motd
|
||||
|
||||
@@ -9,26 +9,22 @@ URL=$3
|
||||
case $TARGETARCH in
|
||||
amd64)
|
||||
GOARCH=amd64
|
||||
KSARCH=linux-amd64
|
||||
UARCH=x86_64
|
||||
WTFARCH=x86_64
|
||||
;;
|
||||
arm64)
|
||||
GOARCH=arm64
|
||||
KSARCH=arm64
|
||||
UARCH=aarch64
|
||||
WTFARCH=arm64
|
||||
;;
|
||||
arm)
|
||||
GOARCH=arm
|
||||
KSARCH=arm
|
||||
UARCH=armv7
|
||||
WTFARCH=arm
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported architecture: $TARGETARCH."
|
||||
GOARCH=$TARGETARCH
|
||||
KSARCH=$TARGETARCH
|
||||
UARCH=$TARGETARCH
|
||||
WTFARCH=$TARGETARCH
|
||||
;;
|
||||
@@ -37,7 +33,6 @@ esac
|
||||
mangle() {
|
||||
echo $1 | sed \
|
||||
-e s/@GOARCH/$GOARCH/g \
|
||||
-e s/@KSARCH/$KSARCH/g \
|
||||
-e s/@UARCH/$UARCH/g \
|
||||
-e s/@WTFARCH/$WTFARCH/g \
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user