From 6057921e346c14f5a8d04398365aee8c9d001a18 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 31 Oct 2019 13:53:13 -0400 Subject: [PATCH] chmod the nginx cert/key/etc EL8 OpenSSL defaults to 0600 for the key, which will not work in the dev environment. --- tools/docker-compose/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/docker-compose/Dockerfile b/tools/docker-compose/Dockerfile index 5becc00d47..461068acee 100644 --- a/tools/docker-compose/Dockerfile +++ b/tools/docker-compose/Dockerfile @@ -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