mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
- removes local_docker installer and points community users to our development environment (make docker-compose) - provides a migration path from Local Docker Compose installations --> the dev environment - the dev env can now be configured to use an external database - consolidated the Local Docker and dev env docker-compose.yml files into one template file, used by the dockerfile role - added a 'sources' role to template out config files - the postgres data dir is no longer a bind-mount, it is a docker volume - the redis socket is not longer a bind-mount, it is a docker volume - the local_settings.py.docker-compose file no longer needs to be copied over in the dev env - Create tmp rsyslog.conf in rsyslog volume to avoid cross-linking. Previously, the tmp code-generated rsyslog.conf was being written to /tmp (by default). As a result, we were attempting to shutil.move() across volumes. - move k8s image build and push roles under tools/ansible - See tools/docker-compose/README.md for usage of these changes
29 lines
763 B
Bash
Executable File
29 lines
763 B
Bash
Executable File
#!/bin/bash
|
|
set +x
|
|
|
|
# Wait for the databases to come up
|
|
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 "path=/var/run/redis/redis.sock" all
|
|
|
|
# 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
|
|
|
|
# Move to the source directory so we can bootstrap
|
|
if [ -f "/awx_devel/manage.py" ]; then
|
|
cd /awx_devel
|
|
else
|
|
echo "Failed to find awx source tree, map your development tree volume"
|
|
fi
|
|
|
|
make awx-link
|
|
|
|
# AWX bootstrapping
|
|
make version_file
|
|
make migrate
|
|
make init
|
|
|
|
mkdir -p /awx_devel/awx/public/static
|
|
mkdir -p /awx_devel/awx/ui/static
|
|
mkdir -p /awx_devel/awx/ui_next/build/static
|