Skip to content

Commit

Permalink
Revert remove python2 on agent-deploy image (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz authored Jan 18, 2025
1 parent c079e78 commit 3b43fd2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions agent-deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
libgmp-dev \
libssl-dev \
procps \
python-boto \
python-deltarpm \
python2.7-dev \
shellcheck \
make \
zlib1g-dev \
Expand Down Expand Up @@ -70,6 +73,15 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
# Use gnupg1 instead of gnupg2, our scripts and rpm-s3 are currently not compatible with gnupg2
RUN mv /usr/bin/gpg /usr/bin/gpg2 && ln -s /usr/bin/gpg1 /usr/bin/gpg

# Python 2 deps
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py \
&& python2 get-pip.py

RUN python2 -m pip install \
awscli==1.18.140 \
boto3==1.14.7 \
pexpect==3.2

# Python install
ENV PYENV_ROOT="/.pyenv"
ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
Expand Down

0 comments on commit 3b43fd2

Please sign in to comment.