Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to helmfile-0.150.0, werf-1.2.184+fix, kubectl-1.26.1, helm-3.11.0, upx-4.0.1 #79

Merged
merged 1 commit into from
Jan 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
FROM alpine:3.16.3

# Working packages
ENV PACKAGES curl bash file jq vault upx git gettext
ENV PACKAGES curl bash file jq vault xz git gettext

SHELL ["/bin/ash", "-xeo", "pipefail", "-c"]

ENV UPX_VERSION 4.0.1
# hadolint ignore=DL3018
RUN apk upgrade --update-cache --no-cache && \
apk add --no-cache $PACKAGES && \
curl -sSL https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-amd64_linux.tar.xz|xzcat | tar x && \
mv upx-${UPX_VERSION}-amd64_linux/upx /usr/local/bin/upx && \
file /usr/local/bin/upx |grep statically && \
chmod +x /usr/local/bin/upx && \
rm -rf /var/cache/apk/ && \
upx -9 /usr/sbin/vault && \
:

# https://storage.googleapis.com/kubernetes-release/release/stable.txt
ENV KUBECTL_VERSION 1.26.0
ENV KUBECTL_VERSION 1.26.1
RUN curl -sSL https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \
file /usr/local/bin/kubectl|grep statically && \
chmod +x /usr/local/bin/kubectl && \
Expand All @@ -22,7 +27,7 @@ RUN curl -sSL https://storage.googleapis.com/kubernetes-release/release/v${KUBEC

# rock-solid 1.2 channel: https://raw.githubusercontent.com/werf/werf/main/trdl_channels.yaml
# WORKAROUND: https://storage.googleapis.com/werf-tuf/targets/releases/$WERF_VERSION/linux-amd64/bin/werf
ENV WERF_VERSION 1.2.184
ENV WERF_VERSION 1.2.184+fix2
ENV WERF_HELM3_MODE 1
RUN curl --resolve tuf.werf.io:443:54.38.250.137,46.148.230.218,77.223.120.232 -vsSL "https://tuf.werf.io/targets/releases/$WERF_VERSION/linux-amd64/bin/werf" -o /usr/local/bin/werf && \
file /usr/local/bin/werf |grep statically && \
Expand All @@ -31,7 +36,7 @@ RUN curl --resolve tuf.werf.io:443:54.38.250.137,46.148.230.218,77.223.120.232 -
:

# https://github.com/helm/helm/releases
ENV HELM_VERSION 3.10.3
ENV HELM_VERSION 3.11.0
ENV HELM_FILENAME helm-v${HELM_VERSION}-linux-amd64.tar.gz
RUN curl -sSL https://get.helm.sh/${HELM_FILENAME} | tar xz && \
file linux-amd64/helm |grep statically && \
Expand All @@ -57,7 +62,7 @@ RUN helm plugin install https://github.com/databus23/helm-diff --version v3.6.0
:

# https://github.com/helmfile/helmfile/releases
ENV HELMFILE_VERSION 0.149.0
ENV HELMFILE_VERSION 0.150.0
RUN curl -sSL https://github.com/helmfile/helmfile/releases/download/v${HELMFILE_VERSION}/helmfile_${HELMFILE_VERSION}_linux_amd64.tar.gz | tar xz && \
file helmfile |grep statically && \
mv helmfile /usr/local/bin/helmfile && \
Expand Down