1
- FROM ubuntu:16 .04
1
+ FROM ubuntu:18 .04
2
2
3
3
ENV DEBIAN_FRONTEND=noninteractive
4
4
@@ -20,6 +20,9 @@ RUN apt-get update && apt-get install -y build-essential \
20
20
python-dev \
21
21
python-scapy \
22
22
python-setuptools \
23
+ python-pip \
24
+ python3-pip \
25
+ python3-venv \
23
26
rsyslog \
24
27
snmp \
25
28
sshpass \
@@ -28,8 +31,6 @@ RUN apt-get update && apt-get install -y build-essential \
28
31
telnet \
29
32
vim
30
33
31
- RUN easy_install pip==20.1.1
32
-
33
34
RUN pip install cffi==1.10.0 \
34
35
"cryptography>=2.5" \
35
36
"future>=0.16.0" \
@@ -156,19 +157,15 @@ USER $user
156
157
157
158
# Install Azure CLI
158
159
WORKDIR /var/$user
159
- RUN curl -L https://aka.ms/InstallAzureCliBundled -o azure-cli_bundle.tar.gz
160
- RUN tar -xvzf azure-cli_bundle.tar.gz
161
- RUN azure-cli_bundle_*/installer
162
-
163
- # Known bug: azure keyvault cannot work behind a proxy
164
- # Temporary fix: upgrade the azure-keyvault package within az cli
165
- # TODO: if azure-cli contains newer version azure-keyvault, remove this
166
- RUN ~/lib/azure-cli/bin/python -m pip install azure-keyvault==0.3.7 -U
160
+ RUN curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
167
161
168
- # Install Virtual Environment
162
+ # Install Virtual Environments
169
163
RUN python -m virtualenv --system-site-packages env-201811
170
164
RUN env-201811/bin/pip install ansible==2.0.0.2
171
165
166
+ RUN python3 -m venv env-python3
167
+ RUN env-python3/bin/pip3 install azure-kusto-data azure-kusto-ingest defusedxml pytest
168
+
172
169
# NOTE: There is an ordering dependency for pycryptodome. Leaving this at
173
170
# the end until we figure that out.
174
171
RUN pip install pycryptodome==3.9.8
0 commit comments