Ruslan Aliev 597bf0ff9b Add clusterctl v0.3.x KRM function
This KRM function will contain clusterctl binary with version
0.3.x for backward compatibility while the main one will move
forward with 0.4.x releases.

Change-Id: Iba167be074c07a20701ed45c4b2ccf38ddb2185a
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Related-To: #647
Related-To: #642
Relates-To: #650
2021-10-05 12:49:05 -05:00

17 lines
781 B
Docker
Executable File

ARG PLUGINS_BUILD_IMAGE=quay.io/airshipit/alpine:3.13.5
FROM ${PLUGINS_BUILD_IMAGE} as ctls
# Inject custom root certificate authorities if needed
# Docker does not have a good conditional copy statement and requires that a source file exists
# to complete the copy function without error. Therefore the README.md file will be copied to
# the image every time even if there are no .crt files.
RUN apk update && apk add curl
COPY ./certs/* /usr/local/share/ca-certificates/
RUN update-ca-certificates
ARG CCTL_VERSION=0.3.23
RUN curl -L https://github.com/kubernetes-sigs/cluster-api/releases/download/v${CCTL_VERSION}/clusterctl-linux-amd64 -o /clusterctl
RUN chmod +x /clusterctl
FROM quay.io/airshipit/clusterctl:latest as release
COPY --from=ctls /clusterctl /usr/local/bin/