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

Set setuid bit on bwrap

Related: https://github.com/ansible/awx/issues/5224
This commit is contained in:
Shane McDonald 2019-11-04 11:01:08 -05:00
parent 713079bd70
commit 089bafa5d4
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374

View File

@ -116,6 +116,9 @@ RUN for dir in /home/awx /var/log/tower /var/log/nginx /var/lib/nginx; \
RUN for file in /etc/passwd /var/run/nginx.pid; \
do touch $file; chmod -R g+rwx $file; chgrp -R root $file; done
# https://github.com/ansible/awx/issues/5224
RUN chmod u+s /usr/bin/bwrap
VOLUME /var/lib/nginx
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log