@@ -3,7 +3,7 @@ ARG VERSION
33# --------------------------------------------------------------------------------------------------
44# Builder Image
55# --------------------------------------------------------------------------------------------------
6- FROM cytopia/ansible:${VERSION}-aws as builder
6+ FROM cytopia/ansible:${VERSION}-aws AS builder
77
88# Required tools for building Python packages
99RUN set -eux \
@@ -36,11 +36,11 @@ RUN set -eux \
3636 fail; \
3737 fi \
3838 \
39- && KUBECTL_VERSION="$(curl -sS --fail https://storage.googleapis.com/kubernetes-release /release/stable.txt)" \
39+ && KUBECTL_VERSION="$(curl -L - sS --fail https://dl.k8s.io /release/stable.txt)" \
4040 && curl -sS -L --fail -o /usr/bin/kubectl \
41- https://storage.googleapis.com/kubernetes- release/release/ ${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl \
41+ " https://dl.k8s.io/ release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl" \
4242 && chmod +x /usr/bin/kubectl \
43- && kubectl version --client --short=true 2>&1 | grep -E 'v[.0-9]+'
43+ && kubectl version --client 2>&1 | grep -E 'v[.0-9]+'
4444
4545# openshift client (copied to final image)
4646RUN set -eux \
@@ -50,6 +50,9 @@ RUN set -eux \
5050 && exit 0; \
5151 fi \
5252 \
53+ # Fix openshift
54+ && ln -s /lib/libc.musl-x86_64.so.1 /usr/lib/libresolv.so.2 \
55+ \
5356 && curl -sS -L --fail -o /tmp/openshift-client-linux.tar.gz \
5457 https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz \
5558 && mkdir /tmp/openshift-client-linux/ \
@@ -63,7 +66,7 @@ RUN set -eux \
6366# --------------------------------------------------------------------------------------------------
6467# Final Image
6568# --------------------------------------------------------------------------------------------------
66- FROM cytopia/ansible:${VERSION}-aws as production
69+ FROM cytopia/ansible:${VERSION}-aws AS production
6770ARG VERSION
6871# https://github.com/opencontainers/image-spec/blob/master/annotations.md
6972#LABEL "org.opencontainers.image.created"=""
0 commit comments