forked from shrapk2/devops-container
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (38 loc) · 1.6 KB
/
Dockerfile
File metadata and controls
38 lines (38 loc) · 1.6 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
32
33
34
35
36
37
38
FROM fedora:33
MAINTAINER shrapk2
ENV TERRAFORM_VERS='0.14.3'
ENV VAULT_VERS='1.6.1'
ENV TERRAGRUNT_VERS='0.26.7'
ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0
RUN dnf install -y ansible jq nano awscli wget curl unzip git python3-botocore python3-boto3 rsync java-1.8.0-openjdk-devel \
## Azure
&& rpm --import https://packages.microsoft.com/keys/microsoft.asc \
&& echo $'[azure-cli] \n\
name=Azure CLI \n\
baseurl=https://packages.microsoft.com/yumrepos/azure-cli \n\
enabled=1 \n\
gpgcheck=1 \n\
gpgkey=https://packages.microsoft.com/keys/microsoft.asc' > /etc/yum.repos.d/azure-cli.repo \
&& cat /etc/yum.repos.d/azure-cli.repo \
&& yum install -y azure-cli \
## Hashicorp Terraform
&& wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERS}/terraform_${TERRAFORM_VERS}_linux_amd64.zip \
&& unzip terraform*.zip \
&& mv terraform /usr/bin/ \
&& rm -f terraform*.zip \
## Hashicorp Vault \
&& wget https://releases.hashicorp.com/vault/${VAULT_VERS}/vault_${VAULT_VERS}_linux_amd64.zip \
&& unzip vault*.zip \
&& mv vault /usr/bin/ \
&& rm -f vault*.zip \
#Gruntworks Terragrunt
&& wget https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERS}/terragrunt_linux_amd64 \
&& mv terragrunt_linux_amd64 /usr/bin/terragrunt \
#Helm
&& yum install -y openssl \
&& curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 \
&& chmod 700 get_helm.sh \
&& ./get_helm.sh \
## Ensure we can execute the binaries
&& chmod +x /usr/bin/terra* /usr/bin/vault \
&& dnf install -y vim