Initial EE integration

This commit is contained in:
Shane McDonald
2020-07-31 09:43:46 -04:00
parent 297fecba3a
commit 06d7a61ca1
7 changed files with 68 additions and 13 deletions

View File

@@ -33,6 +33,7 @@ services:
- "../../docker-compose/_sources/local_settings.py:/etc/tower/conf.d/local_settings.py"
- "../../docker-compose/_sources/SECRET_KEY:/etc/tower/SECRET_KEY"
- "redis_socket:/var/run/redis/:rw"
- "/sys/fs/cgroup:/sys/fs/cgroup"
privileged: true
tty: true
# A useful container that simply passes through log messages to the console

View File

@@ -2,13 +2,23 @@
if [ `id -u` -ge 500 ] || [ -z "${CURRENT_UID}" ]; then
cat << EOF > /tmp/passwd
cat << EOF > /etc/passwd
root:x:0:0:root:/root:/bin/bash
awx:x:`id -u`:`id -g`:,,,:/tmp:/bin/bash
awx:x:`id -u`:`id -g`:,,,:/var/lib/awx:/bin/bash
EOF
cat <<EOF > /etc/subuid
awx:100000:50001
EOF
cat <<EOF > /etc/subgid
awx:100000:50001
EOF
cat /tmp/passwd > /etc/passwd
rm /tmp/passwd
fi
# Required to get rootless podman working after
# writing out the sub*id files above
podman system migrate
exec $@