blob: c359f7e31e412dc3bf6cf494387626a8653e1d84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# 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 \
-e awx_image=registry.example.com/ansible/awx \
-e awx_image_tag=test -v
```
> 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
```
|