@@ -47,17 +47,26 @@ RUN apt-get update && \
4747 devscripts debhelper dh-make libldap2-dev libsasl2-dev && apt-get clean
4848
4949# Install fresh pip and co
50- RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6 - virtualenv==16.6 .0 pip==20.0.2 wheel setuptools cryptography; \
50+ RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6 - virtualenv==20.4 .0 pip==20.3.3 wheel setuptools cryptography; \
5151 pip3.6 install --upgrade requests[security] && rm -rf /root/.cache
5252
53- # We use our dh-virtualenv version, since it fixes shebangd lines rewrites
53+ # This line just busts Docker's cache so it re-runs the next line
54+ # The GitHub API will return different results when the branch HEAD changes
55+ # See https://stackoverflow.com/a/39278224
56+ # ADD https://api.github.com/repos/StackStorm/dh-virtualenv/git/refs/heads/stackstorm_patched version.json
57+ # RUN rm version.json
58+ #
59+ # We use our dh-virtualenv version, since it fixes shebangd lines rewrites.
60+ # The shebangd rewrites are in master branch, but that requires dependency
61+ # on debhelper 12.
62+ #
5463RUN apt-get -y install \
5564 python-virtualenv python-setuptools python-mock && \
5665 apt-get clean && \
57- git clone --branch stackstorm_patched_use_custom_pip https://github.com/StackStorm/dh-virtualenv.git /tmp/dh-virtualenv && \
66+ git clone --branch stackstorm_patched https://github.com/StackStorm/dh-virtualenv.git /tmp/dh-virtualenv && \
5867 cd /tmp/dh-virtualenv && \
5968 dpkg-buildpackage -b -uc -us && dpkg -i ../dh-virtualenv_*.deb && \
60- rm -rf /tmp/dh-virtualenv*
69+ rm -rf /tmp/dh-virtualenv*
6170RUN apt-get -y install dh-systemd && apt-get clean
6271
6372VOLUME ['/home/busybee/build' ]
0 commit comments