-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathContainerfile-fedora
More file actions
31 lines (26 loc) · 1.06 KB
/
Containerfile-fedora
File metadata and controls
31 lines (26 loc) · 1.06 KB
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
ARG TERRAFORM_VERSION=v1.2
FROM quay.io/cloudnativetoolkit/cli-tools-core:${TERRAFORM_VERSION}-v2.0.0-fedora
ARG TARGETPLATFORM
ENV TF_CLI_ARGS_apply="-parallelism=6"
## AWS cli
RUN sudo dnf install -y \
python3 \
python3-pip \
&& sudo pip3 install --upgrade pip \
&& sudo pip3 install awscli \
&& sudo dnf clean all \
&& aws --version
## Azure cli
RUN sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
sudo dnf install -y https://packages.microsoft.com/config/rhel/8/packages-microsoft-prod.rpm && \
sudo dnf install -y azure-cli && \
sudo dnf clean all && \
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}