-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathContainerfile-fedora
More file actions
46 lines (35 loc) · 1020 Bytes
/
Containerfile-fedora
File metadata and controls
46 lines (35 loc) · 1020 Bytes
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
38
39
40
41
42
43
44
45
46
ARG TERRAFORM_VERSION=v1.9
FROM quay.io/cloudnativetoolkit/cli-tools-core:${TERRAFORM_VERSION}-v2.0.3-fedora
ARG TARGETPLATFORM
ENV TF_CLI_ARGS_apply="-parallelism=6"
USER root
## AWS cli
RUN dnf install -y \
awscli && \
dnf clean all
## Azure cli
RUN dnf install -y \
python3 \
pip3 \
gcc \
musl-devel \
python3-devel \
libffi-devel \
openssl-devel \
cargo \
make && \
dnf clean all && \
pip3 install --upgrade --break-system-packages pip
USER devops
# Azure cli
RUN pip3 install --break-system-packages azure-cli
# Install the ibmcloud cli
USER root
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 vpc-infrastructure -f && \
ibmcloud config --check-version=false && \
chown -R devops ${HOME}/.bluemix && \
chmod -R g=u ${HOME}/.bluemix
USER devops