-
Notifications
You must be signed in to change notification settings - Fork 47
/
Dockerfile_UBUNTU
34 lines (27 loc) · 1.35 KB
/
Dockerfile_UBUNTU
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
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
ENV DA_AWS_ACCESS_KEY_ID="default"
ENV DA_AWS_SECRET_ACCESS_KEY="default"
ENV AWS_DEFAULT_REGION="default"
ENV GCP_CREDS="default"
# Install required packages
RUN apt-get update \
&& apt install -y unzip wget curl vim git software-properties-common awscli jq lsb-release gnupg make default-jdk \
&& apt-add-repository --yes --update ppa:ansible/ansible \
&& apt-get install -y ansible \
&& echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - \
&& apt-get update \
&& apt-get install -y google-cloud-sdk \
&& rm -rf /var/lib/apt/lists/*
# Install Terraform
RUN wget https://releases.hashicorp.com/terraform/1.4.5/terraform_1.4.5_linux_amd64.zip \
&& unzip terraform_1.4.5_linux_amd64.zip -d /usr/local/bin \
&& rm terraform_1.4.5_linux_amd64.zip
# Install task
RUN curl -sSLf "https://github.com/go-task/task/releases/download/v3.21.0/task_linux_amd64.tar.gz" | tar -xz -C /usr/local/bin
## uncomment for use as a local client
#RUN mkdir -p /app
#COPY . /app
# Set the default command to run when the container starts
CMD ["/bin/bash"]