mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 06:28:01 -03:30
fake it till you make it!
* The user awx is passed to the launch of our dev docker container. The docker system automagically creates that user for us and sets the home dir to /tmp in /etc/passwd. Many methods of detecting the user home dir don't use that. Instead, they use the HOME env var. This is a half-way solution that solves the problem of python expanding the ~ dir. * If other things break because they determine the users home dir via /etc/passwd entry then a more in-depth fix will be needed.
This commit is contained in:
parent
9cc23d5a71
commit
9236fd2a53
@ -158,4 +158,6 @@ RUN for file in /etc/passwd /etc/supervisord.conf \
|
||||
/venv/awx/lib/python3.6/site-packages/awx.egg-link /var/run/nginx.pid; \
|
||||
do touch $file; chmod -R g+rwx $file; chgrp -R root $file; done
|
||||
|
||||
ENV HOME /var/lib/awx
|
||||
|
||||
ENV PATH=/usr/local/n/versions/node/10.15.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user