-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile.nopip
More file actions
30 lines (24 loc) · 1.23 KB
/
Dockerfile.nopip
File metadata and controls
30 lines (24 loc) · 1.23 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
# syntax=docker/dockerfile:experimental
FROM opensuse/tumbleweed:latest
## AZURE
# way suggested on https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=zypper
RUN zypper ref && zypper up -y && \
zypper install -y tar gzip unzip curl python310 openssh ansible ansible-core python3-ansible-compat aws-cli && \
rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
zypper addrepo --name 'Azure CLI' --check https://packages.microsoft.com/yumrepos/azure-cli azure-cli && \
zypper install --from azure-cli -y azure-cli && \
zypper clean --all
WORKDIR /root
## GCP
RUN curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-387.0.0-linux-x86_64.tar.gz | \
tar zpxf - && \
google-cloud-sdk/install.sh --quiet --usage-reporting false --command-completion true && \
echo 'source /root/google-cloud-sdk/completion.bash.inc' >> ~/.bashrc && \
echo 'source ~/google-cloud-sdk/path.bash.inc' >> ~/.bashrc
## Terraform
RUN curl https://releases.hashicorp.com/terraform/1.3.6/terraform_1.3.6_linux_amd64.zip -o terraform.zip && \
unzip terraform.zip -d /usr/local/bin && \
terraform -install-autocomplete && \
rm terraform.zip
RUN mkdir /src
WORKDIR /src