pin virtualenv < 20 for ansible venv builds

virtualenv version 20 just got released and broken a bunch of stuff
(like the --system-site-packages flag)
This commit is contained in:
Ryan Petrello 2020-02-10 16:31:34 -05:00
parent f4f4a7caec
commit ad5d0b92db
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ RUN openssl req -nodes -newkey rsa:2048 -keyout /etc/nginx/nginx.key -out /etc/n
RUN openssl x509 -req -days 365 -in /etc/nginx/nginx.csr -signkey /etc/nginx/nginx.key -out /etc/nginx/nginx.crt
RUN chmod 640 /etc/nginx/nginx.{csr,key,crt}
RUN python3 -m ensurepip && pip3 install virtualenv flake8
RUN python3 -m ensurepip && pip3 install "virtualenv < 20" flake8
RUN pip3 install supervisor
ADD Makefile /tmp/Makefile

View File

@ -2,7 +2,7 @@ ARG TAG=latest
FROM ansible/awx_devel:${TAG}
RUN yum install -y gcc python36-devel
RUN python3 -m ensurepip && pip3 install virtualenv ansible-runner
RUN python3 -m ensurepip && pip3 install "virtualenv < 20" ansible-runner
RUN yum remove -y gcc python36-devel && rm -rf /var/cache/yum
RUN rm -f /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_rsa_key