diff --git a/installer/image_build/files/nginx.conf b/installer/image_build/files/nginx.conf index 3746e869de..2b2defd056 100644 --- a/installer/image_build/files/nginx.conf +++ b/installer/image_build/files/nginx.conf @@ -2,7 +2,6 @@ worker_processes 1; -error_log /dev/stdout warn; pid /tmp/nginx.pid; events { @@ -17,8 +16,6 @@ http { '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; - access_log /dev/stdout main; - map $http_upgrade $connection_upgrade { default upgrade; '' close; diff --git a/installer/image_build/templates/Dockerfile.j2 b/installer/image_build/templates/Dockerfile.j2 index ab3db53490..13b9f25617 100644 --- a/installer/image_build/templates/Dockerfile.j2 +++ b/installer/image_build/templates/Dockerfile.j2 @@ -55,6 +55,9 @@ RUN chmod +rx /usr/bin/launch_awx.sh && chmod +rx /usr/bin/launch_awx_task.sh && ADD settings.py /etc/tower/settings.py RUN chmod g+w /etc/passwd RUN chmod -R 777 /var/log/nginx && chmod -R 777 /var/lib/nginx +VOLUME /var/lib/nginx +RUN ln -sf /dev/stdout /var/log/nginx/access.log \ + && ln -sf /dev/stderr /var/log/nginx/error.log USER 1000 EXPOSE 8052 WORKDIR /var/lib/awx diff --git a/installer/kubernetes/templates/deployment.yml.j2 b/installer/kubernetes/templates/deployment.yml.j2 index d6f0beb19d..00db600273 100644 --- a/installer/kubernetes/templates/deployment.yml.j2 +++ b/installer/kubernetes/templates/deployment.yml.j2 @@ -15,6 +15,7 @@ spec: containers: - name: awx-web image: {{ awx_web_kubernetes_image }} + imagePullPolicy: Always ports: - containerPort: 8052 volumeMounts: @@ -22,6 +23,7 @@ spec: name: awx-application-config - name: awx-celery image: {{ awx_task_kubernetes_image }} + imagePullPolicy: Always volumeMounts: - mountPath: /etc/tower name: awx-application-config diff --git a/installer/openshift/templates/deployment.yml.j2 b/installer/openshift/templates/deployment.yml.j2 index 130a3951e2..93a9c6cb8c 100644 --- a/installer/openshift/templates/deployment.yml.j2 +++ b/installer/openshift/templates/deployment.yml.j2 @@ -15,6 +15,7 @@ spec: containers: - name: awx-web image: {{ awx_web_openshift_image }} + imagePullPolicy: Always ports: - containerPort: 8052 volumeMounts: @@ -22,6 +23,7 @@ spec: name: awx-application-config - name: awx-celery image: {{ awx_task_openshift_image }} + imagePullPolicy: Always volumeMounts: - mountPath: /etc/tower name: awx-application-config