-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
93 lines (79 loc) · 3.01 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FROM ubuntu:23.04
LABEL maintainer="https://github.com/ahplummer"
ENV tf_version=1.1.2
ENV vault_version=1.9.2
ARG DEBIAN_FRONTEND=noninteractive
# Do normal installs
RUN apt-get update && apt-get install -y \
apt-transport-https \
debconf-utils \
gnupg2 \
python3-pip \
groff \
git \
libpq-dev \
python3 \
libssl-dev \
build-essential \
libffi-dev \
wget \
curl \
unzip \
jq \
apt-transport-https \
ca-certificates \
gnupg \
golang-go \
tmux \
zsh \
vim \
nano \
ansible \
postgresql-client \
mysql-client
#Python related
RUN pip3 install --upgrade cffi --break-system-packages
RUN pip3 install cryptography --break-system-packages
RUN pip3 install awscli --upgrade --break-system-packages
RUN pip3 install virtualenv --break-system-packages
#Terraform
RUN wget https://releases.hashicorp.com/terraform/${tf_version}/terraform_${tf_version}_linux_amd64.zip
RUN unzip terraform_${tf_version}_linux_amd64.zip
RUN mv terraform /usr/local/bin/
#Azure CLI
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
#GCloud CLI
RUN 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 -y && apt-get install google-cloud-sdk -y
#SpaceVIM
RUN curl -sLf https://spacevim.org/install.sh | bash
#Oh-My-Zsh
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
#Kubectl
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
RUN chmod +x kubectl
RUN mv kubectl /usr/local/bin/
#Helm
RUN curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
#Cloud Foundry
RUN wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
RUN echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
RUN apt-get update && apt-get install -y cf7-cli
RUN apt-get install -y unixodbc
#MSSQL tooling
RUN curl -s -N https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
# install SQL Server drivers and tools
RUN apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools
RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
RUN /bin/bash -c "source ~/.bashrc"
RUN apt-get -y install locales
RUN locale-gen en_US.UTF-8
RUN update-locale LANG=en_US.UTF-8
RUN ln -s /opt/mssql-tools/bin/sqlcmd /usr/bin/sqlcmd
#install Vault
RUN wget https://releases.hashicorp.com/vault/${vault_version}/vault_${vault_version}_linux_amd64.zip \
&& unzip vault_${vault_version}_linux_amd64.zip
RUN mv vault /usr/bin/vault
RUN mkdir /host
ENV PATH="/host:${PATH}"
WORKDIR /host