Create awx group in container

This commit is contained in:
Shane McDonald 2021-01-17 13:20:39 -05:00
parent 341e1e34e3
commit c6be92cdf6
2 changed files with 5 additions and 0 deletions

View File

@ -234,6 +234,7 @@ RUN for dir in \
for file in \
/etc/subuid \
/etc/subgid \
/etc/group \
/etc/passwd \
/var/lib/awx/rsyslog/rsyslog.conf ; \
do touch $file ; chmod g+rw $file ; chgrp root $file ; done

View File

@ -7,6 +7,10 @@ root:x:0:0:root:/root:/bin/bash
awx:x:`id -u`:`id -g`:,,,:/var/lib/awx:/bin/bash
EOF
cat <<EOF >> /etc/group
awx:x:`id -u`:awx
EOF
cat <<EOF > /etc/subuid
awx:100000:50001
EOF