https://github.com/alancoding/awx-ee-test
AWX execution environment personal test, replaced by https://github.com/ansible/awx-ee
https://github.com/alancoding/awx-ee-test
Last synced: about 2 months ago
JSON representation
AWX execution environment personal test, replaced by https://github.com/ansible/awx-ee
- Host: GitHub
- URL: https://github.com/alancoding/awx-ee-test
- Owner: AlanCoding
- License: mit
- Created: 2020-08-24T18:32:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T17:00:36.000Z (almost 5 years ago)
- Last Synced: 2025-04-30T22:15:25.494Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# awx-ee-test
AWX execution environment personal testCommand from testing locally:
```
ansible-builder build -f input/execution-environment.yml --container-runtime=docker -c build_context --tag quay.io/alancoding/awx-ee:latest
```Then attempting to put on build trigger with:
https://quay.io/repository/alancoding/awx-ee
This should demonstrate that once a build-context is produced, `ansible-builder`
will not be necessary because the build context and be reused.
The `build_context` folder here was programatically produced from the `-c`
option passed to `ansible-builder build`.Content in the `input` folder are from the folder `tests/data/awx` in ansible-builder.
### Rebuilding
Say you do not have `ansible-builder` installed, nor do you want it.
You just want to build an image from what I already have.```
docker build --rm=true -f build_context/Dockerfile --build-arg TAG=2.9 -t quay.io/alancoding/awx-ee:2.9 build_context
```This will build a version with Ansible 2.9.
You may want to substitute your own quay.io account for alancoding.### Using, testing
Okay, so now that an image has been built, let's make sure we pull that from
quay.io (not using a local copy) and test its function inside of ansible-runner.```
docker rmi quay.io/alancoding/awx-ee
```I duplicated some more test content in the `runner` folder.
```
ansible-runner run --playbook awx.yml runner -v
```note specifically the contents of `runner/env/settings`, and how
it points to `quay.io/alancoding/awx-ee`, and will download the `latest` tag
when you run it.