Skip to content

Commit

Permalink
Merge pull request ansible#5043 from EStork09/devel
Browse files Browse the repository at this point in the history
Added custom_venv_dir to local docker install,

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
  • Loading branch information
softwarefactory-project-zuul[bot] authored Oct 27, 2019
2 parents 4ed4d85 + 0c0e172 commit 5ab0968
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@ Before starting the build process, review the [inventory](./installer/inventory)

> When using docker-compose, the `docker-compose.yml` file will be created there (default `/tmp/awxcompose`).
*custom_venv_dir*

> Adds the custom venv environments from the local host to be passed into the containers at install.
*ca_trust_dir*

> If you're using a non trusted CA, provide a path where the untrusted Certs are stored on your Host.
Expand Down
3 changes: 3 additions & 0 deletions installer/inventory
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ secret_key=awxsecret
# it manages from the docker host, you can set this to turn it into a volume for the container.
#project_data_dir=/var/lib/awx/projects

# AWX custom virtual environment folder. Only usable for local isntall.
#custom_venv_dir=/opt/my-envs/

# CA Trust directory. If you need to provide custom CA certificates, supplying
# this variable causes this directory on the host to be bind mounted over
# /etc/pki/ca-trust in the awx_task and awx_web containers.
Expand Down
6 changes: 6 additions & 0 deletions installer/roles/local_docker/templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ services:
{% if project_data_dir is defined %}
- "{{ project_data_dir +':/var/lib/awx/projects:rw' }}"
{% endif %}
{% if custom_venv_dir is defined %}
- "{{ custom_venv_dir +':'+ custom_venv_dir +':rw' }}"
{% endif %}
{% if ca_trust_dir is defined %}
- "{{ ca_trust_dir +':/etc/pki/ca-trust/source/anchors:ro' }}"
{% endif %}
Expand Down Expand Up @@ -75,6 +78,9 @@ services:
{% if project_data_dir is defined %}
- "{{ project_data_dir +':/var/lib/awx/projects:rw' }}"
{% endif %}
{% if custom_venv_dir is defined %}
- "{{ custom_venv_dir +':'+ custom_venv_dir +':rw' }}"
{% endif %}
{% if ca_trust_dir is defined %}
- "{{ ca_trust_dir +':/etc/pki/ca-trust/source/anchors:ro' }}"
{% endif %}
Expand Down

0 comments on commit 5ab0968

Please sign in to comment.