mirror of
https://github.com/ansible/awx.git
synced 2026-05-05 16:37:37 -02:30
Fix container boots on AppArmor protected systems
Link https://github.com/ansible/awx/issues/1297 Signed-off-by: Shane McDonald <me@shanemcd.com>
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
worker_processes 1;
|
worker_processes 1;
|
||||||
|
|
||||||
error_log /dev/stdout warn;
|
|
||||||
pid /tmp/nginx.pid;
|
pid /tmp/nginx.pid;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
@@ -17,8 +16,6 @@ http {
|
|||||||
'$status $body_bytes_sent "$http_referer" '
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
access_log /dev/stdout main;
|
|
||||||
|
|
||||||
map $http_upgrade $connection_upgrade {
|
map $http_upgrade $connection_upgrade {
|
||||||
default upgrade;
|
default upgrade;
|
||||||
'' close;
|
'' close;
|
||||||
|
|||||||
@@ -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
|
ADD settings.py /etc/tower/settings.py
|
||||||
RUN chmod g+w /etc/passwd
|
RUN chmod g+w /etc/passwd
|
||||||
RUN chmod -R 777 /var/log/nginx && chmod -R 777 /var/lib/nginx
|
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
|
USER 1000
|
||||||
EXPOSE 8052
|
EXPOSE 8052
|
||||||
WORKDIR /var/lib/awx
|
WORKDIR /var/lib/awx
|
||||||
|
|||||||
Reference in New Issue
Block a user