awx/docs/build_awx_image.md
Christian M. Adams 6f7fe8f9f9
Update image variable name for awx-operator app image docs
Signed-off-by: Christian M. Adams <chadams@redhat.com>
2021-09-07 17:07:47 -04:00

31 lines
843 B
Markdown

# Building the AWX Image
## Build & Push Image
To build a custom awx image to use with the awx-operator, use the `build_image` role:
```
$ ansible-playbook tools/ansible/build.yml -v -e awx_image=registry.example.com/awx -e awx_version=test
```
> Note: The development image (`make docker-compose-build`) will not work with the awx-operator, the UI is not built in that image, among other things (see Dockerfile.j2 for more info).
This will build an AWX image and tag it. You can then push that image to your container registry:
```
$ docker push registry.example.com/awx:test
```
## Using this image with the awx-operator
In the spec section of the `my-awx.yml` file described in the [install docs](./../INSTALL.md#deploy-awx),
specify the new custom image.
```
spec:
image: registry.example.com/awx
image_version: test
```