mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Tower -> AWX Tooling Migration
* Switching version number scheme and mechanism * Refactor development tooling towards 'awx' paths and names * Purging packaging details from Makefile
This commit is contained in:
committed by
Shane McDonald
parent
cf967d244b
commit
3892e4e389
@@ -6,7 +6,7 @@ ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=postgres port=5432" all
|
||||
ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=memcached port=11211" all
|
||||
ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=${RABBITMQ_HOST} port=5672" all
|
||||
|
||||
# In case Tower in the container wants to connect to itself, use "docker exec" to attach to the container otherwise
|
||||
# In case AWX in the container wants to connect to itself, use "docker exec" to attach to the container otherwise
|
||||
# TODO: FIX
|
||||
#/etc/init.d/ssh start
|
||||
|
||||
@@ -15,30 +15,28 @@ ansible -i "127.0.0.1," -c local -v -m postgresql_user -U postgres -a "name=awx-
|
||||
ansible -i "127.0.0.1," -c local -v -m postgresql_db -U postgres -a "name=awx-dev owner=awx-dev login_user=postgres login_host=postgres" all
|
||||
|
||||
# Move to the source directory so we can bootstrap
|
||||
if [ -f "/tower_devel/manage.py" ]; then
|
||||
cd /tower_devel
|
||||
elif [ -f "/tower_devel/ansible-tower/manage.py" ]; then
|
||||
cd /tower_devel/ansible-tower
|
||||
if [ -f "/awx_devel/manage.py" ]; then
|
||||
cd /awx_devel
|
||||
else
|
||||
echo "Failed to find tower source tree, map your development tree volume"
|
||||
echo "Failed to find awx source tree, map your development tree volume"
|
||||
fi
|
||||
|
||||
cp -nR /tmp/ansible_tower.egg-info /tower_devel/ || true
|
||||
cp /tmp/ansible-tower.egg-link /venv/tower/lib/python2.7/site-packages/ansible-tower.egg-link
|
||||
ln -s /tower_devel/tools/rdb.py /venv/tower/lib/python2.7/site-packages/rdb.py || true
|
||||
yes | cp -rf /tower_devel/tools/docker-compose/supervisor.conf /supervisor.conf
|
||||
cp -nR /tmp/ansible_tower.egg-info /awx_devel/ || true
|
||||
cp /tmp/ansible-tower.egg-link /venv/awx/lib/python2.7/site-packages/ansible-tower.egg-link
|
||||
ln -s /awx_devel/tools/rdb.py /venv/awx/lib/python2.7/site-packages/rdb.py || true
|
||||
yes | cp -rf /awx_devel/tools/docker-compose/supervisor.conf /supervisor.conf
|
||||
|
||||
# Tower bootstrapping
|
||||
# AWX bootstrapping
|
||||
make version_file
|
||||
make migrate
|
||||
make init
|
||||
|
||||
mkdir -p /tower_devel/awx/public/static
|
||||
mkdir -p /tower_devel/awx/ui/static
|
||||
mkdir -p /awx_devel/awx/public/static
|
||||
mkdir -p /awx_devel/awx/ui/static
|
||||
|
||||
# Start the service
|
||||
|
||||
if [ -f "/tower_devel/tools/docker-compose/use_dev_supervisor.txt" ]; then
|
||||
if [ -f "/awx_devel/tools/docker-compose/use_dev_supervisor.txt" ]; then
|
||||
make supervisor
|
||||
else
|
||||
honcho start -f "tools/docker-compose/Procfile"
|
||||
|
||||
Reference in New Issue
Block a user