Skip to content

Commit

Permalink
PE-2954 change alpine image (#90)
Browse files Browse the repository at this point in the history
* change alpine image

* update
  • Loading branch information
nianyush authored Oct 31, 2023
1 parent 95f4fae commit b06a4e5
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Earthfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
VERSION 0.6
FROM gcr.io/spectro-images-public/alpine:3.16.2
ARG TARGETOS
ARG TARGETARCH
FROM gcr.io/spectro-images-public/canvos/alpine-cert:v1.0.0

# Variables used in the builds. Update for ADVANCED use cases only
ARG OS_DISTRIBUTION
Expand Down Expand Up @@ -92,20 +94,16 @@ build-provider-images-fips:
BUILD +provider-image --K8S_VERSION=1.27.2
END

base-alpine:
FROM alpine
ARG TARGETOS
ARG TARGETARCH
BASE_ALPINE:
COMMAND
IF [ ! -z $PROXY_CERT_PATH ]
COPY sc.crt /etc/ssl/certs
RUN update-ca-certificates
END
RUN apk add curl

download-etcdctl:
FROM +base-alpine
ARG TARGETOS
ARG TARGETARCH
DO +BASE_ALPINE
RUN curl --retry 5 -Ls https://github.com/etcd-io/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-${TARGETARCH}.tar.gz | tar -xvzf - --strip-components=1 etcd-${ETCD_VERSION}-linux-${TARGETARCH}/etcdctl && \
chmod +x etcdctl
SAVE ARTIFACT etcdctl
Expand Down

0 comments on commit b06a4e5

Please sign in to comment.