-
Notifications
You must be signed in to change notification settings - Fork 31
/
Dockerfile-Full
48 lines (45 loc) · 1.3 KB
/
Dockerfile-Full
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
FROM ubuntu:bionic
ENV ANSIBLE_VERSION=2.6.4
ENV TERRAFORM_VERSION=0.11.10
RUN apt-get update -y && \
apt-get install -y software-properties-common && \
apt-get install -y \
golang-go \
python \
curl \
unzip \
openssh-client && \
apt-get install -y \
python-dev \
python-pip \
git-core \
build-essential \
libssl-dev \
libffi-dev && \
pip install --upgrade setuptools cffi && \
pip install ansible==${ANSIBLE_VERSION} \
pandevice \
pan-python \
xmltodict \
awscli \
azure-cli \
paramiko \
ipaddress \
requests \
requests-toolbelt \
cryptography==2.4.2 \
jsonschema && \
pip install --upgrade pandevice \
go get golang.org/x/crypto/ssh && \
ansible-galaxy install --force PaloAltoNetworks.paloaltonetworks && \
curl https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip > terraform.zip && \
unzip terraform.zip -d /bin && \
rm -f terraform.zip && \
apt-get -y autoremove && \
apt-get -y autoclean && \
apt-get -y clean all && \
rm -rf /root/.cache/pip && \
rm -rf /root/.pip/cache && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/apt
ENTRYPOINT ["/bin/bash"]