added launch file, docker, and supervisor changes

Signed-off-by: Jessica Mack <jmack@redhat.com>
This commit is contained in:
Jessica Mack
2023-01-19 13:44:29 -05:00
committed by Hao Liu
parent d8e591cd69
commit 026b8f05d7
3 changed files with 35 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
if [ `id -u` -ge 500 ]; then
echo "awx:x:`id -u`:`id -g`:,,,:/var/lib/awx:/bin/bash" >> /tmp/passwd
cat /tmp/passwd > /etc/passwd
rm /tmp/passwd
fi
if [ -n "${AWX_KUBE_DEVEL}" ]; then
pushd /awx_devel
make awx-link
popd
export SDB_NOTIFY_HOST=$MY_POD_IP
fi
set -e
wait-for-migrations
awx-manage provision_instance
exec supervisord -c /etc/supervisord_task.conf