Skip to content

Commit

Permalink
python2 is removed due to its incompatibility with libssl 3 on ubuntu…
Browse files Browse the repository at this point in the history
… noble
  • Loading branch information
hugo-gomes committed Apr 30, 2024
1 parent ba28cdb commit 5956660
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
8 changes: 2 additions & 6 deletions ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ LABEL maintainer="Hive Solutions <[email protected]>"
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update &&\
apt-get install -y -q --no-install-recommends sudo bash wget git openssl unzip ca-certificates dirmngr apt-transport-https python2 python3 python3-distutils &&\
ln -s /usr/bin/python2 /usr/bin/python &&\
apt-get install -y -q --no-install-recommends sudo bash wget git openssl unzip ca-certificates dirmngr apt-transport-https python3 python3-distutils &&\
apt-get clean && rm -rf /var/lib/apt/lists/* &&\
wget "https://bootstrap.pypa.io/get-pip.py" &&\
wget "https://bootstrap.pypa.io/pip/2.7/get-pip.py" -O get-pip-2.py &&\
python3 get-pip.py --no-cache-dir --no-compile &&\
python get-pip-2.py --no-cache-dir --no-compile &&\
rm get-pip.py &&\
rm get-pip-2.py
rm get-pip.py

CMD ["/bin/bash"]
8 changes: 2 additions & 6 deletions ubuntu/Dockerfile.noble
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ LABEL maintainer="Hive Solutions <[email protected]>"
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update &&\
apt-get install -y -q --no-install-recommends sudo bash wget git openssl unzip ca-certificates dirmngr apt-transport-https python2 python3 python3-distutils &&\
ln -s /usr/bin/python2 /usr/bin/python &&\
apt-get install -y -q --no-install-recommends sudo bash wget git openssl unzip ca-certificates dirmngr apt-transport-https python3 python3-distutils &&\
apt-get clean && rm -rf /var/lib/apt/lists/* &&\
wget "https://bootstrap.pypa.io/get-pip.py" &&\
wget "https://bootstrap.pypa.io/pip/2.7/get-pip.py" -O get-pip-2.py &&\
python3 get-pip.py --no-cache-dir --no-compile &&\
python get-pip-2.py --no-cache-dir --no-compile &&\
rm get-pip.py &&\
rm get-pip-2.py
rm get-pip.py

CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion ubuntu_dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update &&\
apt-get install -y -q --no-install-recommends sudo gcc make curl pypy linux-headers-generic\
libssl-dev python2-dev python3-dev pypy-dev &&\
libssl-dev python3-dev pypy-dev &&\
apt-get clean && rm -rf /var/lib/apt/lists/*

CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion ubuntu_dev/Dockerfile.noble
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update &&\
apt-get install -y -q --no-install-recommends sudo gcc make curl pypy linux-headers-generic\
libssl-dev python2-dev python3-dev pypy-dev &&\
libssl-dev python3-dev pypy-dev &&\
apt-get clean && rm -rf /var/lib/apt/lists/*

CMD ["/bin/bash"]

0 comments on commit 5956660

Please sign in to comment.