mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 03:00:04 -03:30
fix tower-expect -> awx-expect for isolated tower builds
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
version: '3'
|
||||
services:
|
||||
# Primary Tower Development Container link
|
||||
tower:
|
||||
awx:
|
||||
environment:
|
||||
EXTRA_GROUP_QUEUES: thepentagon
|
||||
links:
|
||||
- isolated
|
||||
# Isolated Rampart Container
|
||||
isolated:
|
||||
image: gcr.io/ansible-tower-engineering/tower_isolated:${TAG}
|
||||
image: gcr.io/ansible-tower-engineering/awx_isolated:${TAG}
|
||||
hostname: isolated
|
||||
volumes:
|
||||
- "../awx/main/isolated:/tower_devel"
|
||||
- "../awx/lib:/tower_lib"
|
||||
- "../awx/main/isolated:/awx_devel"
|
||||
- "../awx/lib:/awx_lib"
|
||||
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
|
||||
privileged: true
|
||||
|
||||
@@ -17,7 +17,7 @@ ENV LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
WORKDIR /
|
||||
EXPOSE 22
|
||||
ADD tools/docker-isolated/tower-expect /usr/local/bin/tower-expect
|
||||
ADD tools/docker-isolated/awx-expect /usr/local/bin/awx-expect
|
||||
|
||||
RUN rm -f /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_rsa_key
|
||||
RUN ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_ecdsa_key
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
## Instructions on using an isolated node
|
||||
|
||||
The building of the isolated node is done in the `make docker-compose-build`
|
||||
target. Its image uses a different tag from the tools_tower container.
|
||||
target. Its image uses a different tag from the tools_awx container.
|
||||
|
||||
Given that the images are built, you can run the combined docker compose target. This uses
|
||||
the base `docker-compose.yml` with modifications found in `docker-isolated-override.yml`.
|
||||
@@ -12,7 +12,7 @@ base branch is. For example:
|
||||
make docker-isolated COMPOSE_TAG=devel
|
||||
```
|
||||
|
||||
This will automatically exchange the keys in order for the `tools_tower_1`
|
||||
This will automatically exchange the keys in order for the `tools_awx_1`
|
||||
container to access the `tools_isolated_1` container over ssh.
|
||||
After that, it will bring up all the containers like the normal docker-compose
|
||||
workflow.
|
||||
@@ -61,7 +61,7 @@ Example location of a private data directory:
|
||||
The following command would run the playbook corresponding to that job.
|
||||
|
||||
```bash
|
||||
tower-expect start /tmp/ansible_tower_29_OM6Mnx/
|
||||
awx-expect start /tmp/ansible_tower_29_OM6Mnx/
|
||||
```
|
||||
|
||||
Other tower-expect commands include `start`, `is-alive`, and `stop`.
|
||||
Other awx-expect commands include `start`, `is-alive`, and `stop`.
|
||||
|
||||
3
tools/docker-isolated/awx-expect
Executable file
3
tools/docker-isolated/awx-expect
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
. /venv/awx/bin/activate
|
||||
exec env TOWER_LIB_DIRECTORY=/awx_lib /awx_devel/run.py "$@"
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
. /venv/tower/bin/activate
|
||||
exec env TOWER_LIB_DIRECTORY=/tower_lib /tower_devel/run.py "$@"
|
||||
4
tools/scripts/awx-expect
Executable file
4
tools/scripts/awx-expect
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
AWX_LIB=`/var/lib/awx/venv/awx/bin/python -c 'import os, awx; print os.path.dirname(awx.__file__)'`
|
||||
. /var/lib/awx/venv/awx/bin/activate
|
||||
exec env TOWER_LIB_DIRECTORY=$AWX_LIB/lib /var/lib/awx/venv/awx/bin/python $AWX_LIB/main/isolated/run.pyc "$@"
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
AWX_LIB=`/var/lib/awx/venv/tower/bin/python -c 'import os, awx; print os.path.dirname(awx.__file__)'`
|
||||
. /var/lib/awx/venv/tower/bin/activate
|
||||
exec env TOWER_LIB_DIRECTORY=$AWX_LIB/lib /var/lib/awx/venv/tower/bin/python $AWX_LIB/main/isolated/run.pyc "$@"
|
||||
Reference in New Issue
Block a user