1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 17:55:10 +03:00

chmod the nginx cert/key/etc

EL8 OpenSSL defaults to 0600 for the key, which will not work in the
dev environment.
This commit is contained in:
Bill Nottingham 2019-10-31 13:53:13 -04:00
parent c605705b39
commit 6057921e34

View File

@ -71,6 +71,7 @@ ADD tools/docker-compose/awx.egg-info /tmp/awx.egg-info
RUN openssl req -nodes -newkey rsa:2048 -keyout /etc/nginx/nginx.key -out /etc/nginx/nginx.csr -subj "/C=US/ST=North Carolina/L=Durham/O=Ansible/OU=AWX Development/CN=awx.localhost"
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 pip3 install supervisor