Skip to content

Commit

Permalink
Re-add Python2 to the various Dockerfiles (#1780)
Browse files Browse the repository at this point in the history
* Re-add Python2 to the various Dockerfiles

This fixes #1774

* Update CHANGELOG
  • Loading branch information
heapcrash committed Feb 2, 2021
1 parent 747d30a commit 2086a31
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ The table below shows which release corresponds to each branch, and what date th
- [#1742][1742] New `baremetal` os to debug binaries executed with qemu-system-$(arch)
- [#1757][1757] update cache directories
- [#1758][1758] Remove eval from cli
- [#1780][1780] Re-add Python2 to the official Dockerfile

[1261]: https://github.com/Gallopsled/pwntools/pull/1261
[1695]: https://github.com/Gallopsled/pwntools/pull/1695
Expand All @@ -74,6 +75,7 @@ The table below shows which release corresponds to each branch, and what date th
[1742]: https://github.com/Gallopsled/pwntools/pull/1742
[1757]: https://github.com/Gallopsled/pwntools/pull/1757
[1758]: https://github.com/Gallopsled/pwntools/pull/1758
[1780]: https://github.com/Gallopsled/pwntools/pull/1780

## 4.4.0 (`beta`)

Expand Down
7 changes: 7 additions & 0 deletions extra/docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@
FROM ubuntu:bionic
MAINTAINER Maintainer Gallopsled et al.

env DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
&& apt-get install -y \
build-essential \
git \
libssl-dev \
libffi-dev \
python \
python-pip \
python-dev \
python3 \
python3-pip \
python3-dev \
Expand All @@ -23,6 +28,8 @@ RUN apt-get update \
binutils-powerpc-linux-gnu \
binutils-powerpc64-linux-gnu \
binutils-sparc64-linux-gnu \
&& pip install --upgrade pip \
&& python -m pip install --upgrade pwntools \
&& pip3 install --upgrade pip \
&& python3 -m pip install --upgrade pwntools \
&& PWNLIB_NOTERM=1 pwn update \
Expand Down
1 change: 1 addition & 0 deletions extra/docker/beta/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM pwntools/pwntools:stable

USER root
RUN pip install --upgrade git+https://github.com/Gallopsled/pwntools@beta
RUN pip3 install --upgrade git+https://github.com/Gallopsled/pwntools@beta
RUN PWNLIB_NOTERM=1 pwn update
USER pwntools
1 change: 1 addition & 0 deletions extra/docker/dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM pwntools/pwntools:stable

USER root
RUN pip install --upgrade git+https://github.com/Gallopsled/pwntools@dev
RUN pip3 install --upgrade git+https://github.com/Gallopsled/pwntools@dev
RUN PWNLIB_NOTERM=1 pwn update
USER pwntools
1 change: 1 addition & 0 deletions extra/docker/stable/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM pwntools/pwntools:base

USER root
RUN pip install --upgrade git+https://github.com/Gallopsled/pwntools@stable
RUN pip3 install --upgrade git+https://github.com/Gallopsled/pwntools@stable
RUN PWNLIB_NOTERM=1 pwn update
USER pwntools

0 comments on commit 2086a31

Please sign in to comment.