@@ -5,8 +5,8 @@ ENV HISTFILE=/home/pwntools/.history
55
66# Uninstall existing versions of pwntools
77USER root
8- RUN python -m pip uninstall -q -y pwntools \
9- && python3 -m pip uninstall -q -y pwntools
8+ RUN python2.7 -m pip uninstall -q -y pwntools \
9+ && python3 -m pip uninstall -q -y pwntools
1010
1111# Switch back to the pwntools user from here forward
1212USER pwntools
@@ -18,20 +18,23 @@ ENV PATH="/home/pwntools/.local/bin:${PATH}"
1818
1919# Install Pwntools to the home directory, make it an editable install
2020RUN git clone https://github.com/Gallopsled/pwntools \
21- && python -m pip install --upgrade --editable pwntools \
21+ && python2.7 -m pip install --upgrade --editable pwntools \
2222 && python3 -m pip install --upgrade --editable pwntools \
2323 && PWNLIB_NOTERM=1 pwn version
2424
2525# Requirements for running the tests
26- RUN python -m pip install --upgrade --requirement pwntools/docs/requirements.txt \
27- && python3 -m pip install --upgrade --requirement pwntools/docs/requirements.txt
26+ RUN python2.7 -m pip install --upgrade --requirement pwntools/docs/requirements.txt \
27+ && python3 -m pip install --upgrade --requirement pwntools/docs/requirements.txt
2828
2929# Python niceties for debugging
30- RUN python -m pip install -U ipython ipdb \
31- && python3 -m pip install -U ipython ipdb
30+ RUN python2.7 -m pip install -U ipython ipdb \
31+ && python3 -m pip install -U ipython ipdb
3232
3333# Dependencies from .travis.yml addons -> apt -> packages
34- RUN sudo apt-get update && sudo apt-get install -y \
34+ ARG DEBIAN_FRONTEND=noninteractive
35+ ENV TZ="UTC"
36+ RUN sudo apt-get update && sudo -E apt-get install -y \
37+ tzdata \
3538 ash \
3639 bash \
3740 bash-static \
@@ -41,7 +44,7 @@ RUN sudo apt-get update && sudo apt-get install -y \
4144 dash \
4245 gcc \
4346 gcc-multilib \
44- gdb \
47+ gdb \
4548 ksh \
4649 lib32stdc++6 \
4750 libc6-dev-i386 \
@@ -51,20 +54,17 @@ RUN sudo apt-get update && sudo apt-get install -y \
5154 socat \
5255 sshpass \
5356 vim \
54- zsh
55-
57+ zsh \
5658# Misc useful things when developing
57- RUN sudo apt-get install -y \
5859 curl \
59- ipython \
6060 ipython3 \
6161 lsb-release \
6262 ssh \
6363 unzip \
6464 wget
6565
6666# Use zsh by default
67- RUN sudo chsh -s /bin/zsh pwntools
67+ RUN sudo -E chsh -s /bin/zsh pwntools
6868
6969# Get and install prezto
7070RUN git clone --recursive https://github.com/sorin-ionescu/prezto.git .zprezto
@@ -83,4 +83,4 @@ ADD 10-import.py /home/pwntools/.ipython/profile_default/startup
8383ADD ipython_config.py /home/pwntools/.ipython/profile_default
8484
8585# Do not require password for sudo
86- RUN echo "pwntools ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/travis
86+ RUN echo "pwntools ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/travis
0 commit comments