-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (32 loc) · 1.75 KB
/
Dockerfile
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
FROM debian:buster-slim
LABEL maintainer="CN Services <noninojulian@gmail.com>"
# Install required packages
RUN apt-get update && \
apt-get install -y curl wget python3 python3-pip lsb-release build-essential zlibc zlib1g-dev ruby ruby-dev openssl libxslt1-dev libxml2-dev libssl-dev libreadline7 libreadline-dev libyaml-dev libsqlite3-dev sqlite3 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install AWS Cli
RUN pip3 install awscli --upgrade --user
ENV PATH ~/.local/bin:$PATH ENV PATH ~/.local/bin:$PATH
# Install GCP
RUN CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO 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 add - && \
apt-get -y update && \
apt-get install -y google-cloud-sdk && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install Control Tower
# renovate: datasource=github-tags depName=EngineerBetter/control-tower
ENV CONTROL_TOWER_VERSION=0.32.0
RUN wget -O control-tower https://github.com/EngineerBetter/control-tower/releases/download/${CONTROL_TOWER_VERSION}/control-tower-linux-amd64 && \
mv control-tower /usr/local/bin && \
chmod +x /usr/local/bin/control-tower
# Install CredHub
# renovate: datasource=github-releases depName=cloudfoundry/credhub-cli
ENV CREDHUB_VERSION=2.9.39
RUN wget https://github.com/cloudfoundry/credhub-cli/releases/download/${CREDHUB_VERSION}/credhub-linux-amd64-${CREDHUB_VERSION}.tgz && \
tar -xzvf credhub-linux-amd64-${CREDHUB_VERSION}.tgz && \
rm -rf credhub-linux-amd64-${CREDHUB_VERSION}.tgz && \
mv credhub /usr/local/bin && \
chmod +x /usr/local/bin/credhub