-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (40 loc) · 1.7 KB
/
Dockerfile
File metadata and controls
50 lines (40 loc) · 1.7 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
39
40
41
42
43
44
45
46
47
48
49
50
FROM python:3.13
# Create Installation and Symlinks directories
WORKDIR /
RUN mkdir Tooling && mkdir ToolingBins
ENV PATH="/ToolingBins:${PATH}"
# Install Git
RUN apt-get install -y git
# Install Babylon
WORKDIR /Tooling
RUN git clone https://github.com/Cosmo-Tech/Babylon.git Babylon
WORKDIR /Tooling/Babylon
RUN git checkout 5.0.0
RUN python3 -m venv .venv
RUN .venv/bin/pip install .
WORKDIR /ToolingBins
RUN ln -s /Tooling/Babylon/.venv/bin/babylon babylon
# Install Kubectl
WORKDIR /Tooling
RUN apt-get install -y apt-transport-https ca-certificates curl gnupg && \
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.35/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg && \
chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg # allow unprivileged APT programs to read this keyring
RUN echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.35/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list && \
chmod 644 /etc/apt/sources.list.d/kubernetes.list
RUN apt-get update && \
apt-get install -y kubectl
# Install Azure CLI
WORKDIR /Tooling
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
# Install Terraform
WORKDIR /Tooling
RUN wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list
RUN apt-get update && \
apt-get install -y terraform
WORKDIR /ToolingBins
RUN ln -s /Tooling/terraform terraform
RUN mkdir /BMA
VOLUME /BMA
WORKDIR /BMA
ENTRYPOINT [ "bash" ]