-
Notifications
You must be signed in to change notification settings - Fork 7
/
Containerfile-alpine
37 lines (29 loc) · 1.1 KB
/
Containerfile-alpine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ARG TERRAFORM_VERSION=v1.2
FROM quay.io/cloudnativetoolkit/cli-tools-core:${TERRAFORM_VERSION}-v1.6.1-alpine
ARG TARGETPLATFORM
ENV TF_CLI_ARGS_apply="-parallelism=6"
## AWS cli
RUN sudo apk add --no-cache \
python3 \
py3-pip \
&& sudo pip3 install --upgrade pip \
&& sudo pip3 install awscli \
&& sudo rm -rf /var/cache/apk/* \
&& aws --version
## Azure cli
RUN sudo apk add gcc musl-dev python3-dev libffi-dev openssl-dev cargo make python3 py3-pip \
&& sudo pip3 install --upgrade pip \
&& sudo pip3 install azure-cli \
&& sudo rm -rf /var/cache/apk/* \
&& az --version
# Install the ibmcloud cli
RUN curl -fsSL https://clis.cloud.ibm.com/install/linux | sh && \
ibmcloud plugin install container-service -f && \
ibmcloud plugin install container-registry -f && \
ibmcloud plugin install observe-service -f && \
if [[ "$TARGETPLATFORM" != "linux/arm64" ]]; then ibmcloud plugin install vpc-infrastructure -f; fi && \
ibmcloud config --check-version=false && \
chmod -R g=u ${HOME}
WORKDIR ${HOME}
VOLUME /workspaces
ENTRYPOINT ["/bin/sh"]