Skip to content

Commit

Permalink
Merge pull request #104 from StackStorm/more_upgrade_pip
Browse files Browse the repository at this point in the history
Fix bionicbuild image so we don't bundle two different pip version
  • Loading branch information
Kami authored Mar 5, 2021
2 parents 376c2d6 + 021c686 commit a70cf56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 5 additions & 7 deletions packagingbuild/bionic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,24 @@ RUN echo -e "#!/bin/sh\nexit 101\n" > /usr/sbin/policy-rc.d && \
# - SSH access for build executor.
#


# install python development
RUN apt-get update && \
apt-get -y install build-essential \
python python-virtualenv \
python3 python3-virtualenv python3-pip
python3-dev python3

RUN apt-get update && \
apt-get -y install \
devscripts debhelper dh-make libldap2-dev libsasl2-dev && apt-get clean

# Install fresh pip and co
RUN curl https://bootstrap.pypa.io/get-pip.py | python3 - virtualenv==16.6.0 pip==20.0.2 wheel setuptools cryptography; \
pip3 install --upgrade requests[security] && rm -rf /root/.cache
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6 - virtualenv==16.6.0 pip==20.0.2 wheel setuptools cryptography; \
pip3.6 install --upgrade requests[security] && rm -rf /root/.cache

# We use our dh-virtualenv version, since it fixes shebangd lines rewrites
RUN apt-get -y install \
python-setuptools python-mock && \
python-virtualenv python-setuptools python-mock && \
apt-get clean && \
git clone -b stackstorm_patched https://github.com/stackstorm/dh-virtualenv.git /tmp/dh-virtualenv && \
git clone --branch stackstorm_patched_use_custom_pip https://github.com/StackStorm/dh-virtualenv.git /tmp/dh-virtualenv && \
cd /tmp/dh-virtualenv && \
dpkg-buildpackage -b -uc -us && dpkg -i ../dh-virtualenv_*.deb && \
rm -rf /tmp/dh-virtualenv*
Expand Down
5 changes: 4 additions & 1 deletion packagingbuild/xenial/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ RUN mkdir /root/.ssh && chmod 700 /root/.ssh && \
COPY busybee* /root/.ssh/
RUN chmod 600 /root/.ssh/busybee

# Temporary workaround to work around failing apt mirror for half a day already
RUN sed -i "s#deb.debian.org#ftp.si.debian.org#g" /etc/apt/sources.list

RUN apt-get -y update && \
apt-get install -y openssh-server sudo && \
mkdir /var/run/sshd
Expand Down Expand Up @@ -57,7 +60,7 @@ RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6 - virtualenv==16.6.0 p
RUN apt-get -y install \
python-virtualenv python-setuptools python-mock && \
apt-get clean && \
git clone -b stackstorm_patched https://github.com/stackstorm/dh-virtualenv.git /tmp/dh-virtualenv && \
git clone --branch stackstorm_patched_use_custom_pip https://github.com/StackStorm/dh-virtualenv.git /tmp/dh-virtualenv && \
cd /tmp/dh-virtualenv && \
dpkg-buildpackage -b -uc -us && dpkg -i ../dh-virtualenv_*.deb && \
rm -rf /tmp/dh-virtualenv*
Expand Down

0 comments on commit a70cf56

Please sign in to comment.