mirror of
https://github.com/Expand-sys/awx-on-k3s
synced 2025-12-15 21:42:15 +11:00
fix: replace base image to 2.12-latest
This commit is contained in:
parent
54220ad2f1
commit
c7c66011d2
2 changed files with 15 additions and 15 deletions
|
|
@ -27,28 +27,28 @@ The base image can be chosen from the tags from [http://quay.io/ansible/ansible-
|
|||
|
||||
```bash
|
||||
cd builder
|
||||
ansible-builder build --tag registry.example.com/ansible/ee:2.10-custom --container-runtime docker --verbosity 3
|
||||
ansible-builder build --tag registry.example.com/ansible/ee:2.12-custom --container-runtime docker --verbosity 3
|
||||
```
|
||||
|
||||
```bash
|
||||
$ ansible-builder build --tag registry.example.com/ansible/ee:2.10-custom --container-runtime docker --verbosity 3
|
||||
Ansible Builder is building your execution environment image, "registry.example.com/ansible/ee:2.10-custom".
|
||||
$ ansible-builder build --tag registry.example.com/ansible/ee:2.12-custom --container-runtime docker --verbosity 3
|
||||
Ansible Builder is building your execution environment image, "registry.example.com/ansible/ee:2.12-custom".
|
||||
File context/_build/requirements.yml will be created.
|
||||
File context/_build/requirements.txt will be created.
|
||||
File context/_build/bindep.txt will be created.
|
||||
File context/_build/ansible.cfg will be created.
|
||||
Rewriting Containerfile to capture collection requirements
|
||||
Running command:
|
||||
docker build -f context/Dockerfile -t registry.example.com/ansible/ee:2.10-custom context
|
||||
docker build -f context/Dockerfile -t registry.example.com/ansible/ee:2.12-custom context
|
||||
Sending build context to Docker daemon 7.68kB
|
||||
Step 1/25 : ARG EE_BASE_IMAGE=quay.io/ansible/ansible-runner:stable-2.10-devel
|
||||
Step 1/25 : ARG EE_BASE_IMAGE=quay.io/ansible/ansible-runner:stable-2.12-latest
|
||||
Step 2/25 : ARG EE_BUILDER_IMAGE=quay.io/ansible/ansible-builder:latest
|
||||
Step 3/25 : FROM $EE_BASE_IMAGE as galaxy
|
||||
...
|
||||
Removing intermediate container a083001a665a
|
||||
---> 050cf7076379
|
||||
Successfully built 050cf7076379
|
||||
Successfully tagged registry.example.com/ansible/ee:2.10-custom
|
||||
Removing intermediate container cb1d45eac7ba
|
||||
---> f6c3375db22e
|
||||
Successfully built f6c3375db22e
|
||||
Successfully tagged registry.example.com/ansible/ee:2.12-custom
|
||||
|
||||
Complete! The build context can be found at: /home/********/awx-on-k3s/builder/context
|
||||
```
|
||||
|
|
@ -56,23 +56,23 @@ Complete! The build context can be found at: /home/********/awx-on-k3s/builder/c
|
|||
```bash
|
||||
$ docker image ls
|
||||
REPOSITORY TAG IMAGE ID CREATED SIZE
|
||||
registry.example.com/ansible/ee 2.10-custom 6fb343319a80 2 minutes ago 871MB
|
||||
registry.example.com/ansible/ee 2.12-custom f6c3375db22e 4 minutes ago 748MB
|
||||
```
|
||||
|
||||
Now you can push this image to the container registry to use as Execution Environment on AWX. If you want to deploy your own private container registry, refer [additional guide on this repository](../registry).
|
||||
|
||||
```bash
|
||||
$ docker push registry.example.com/ansible/ee:2.10-custom
|
||||
$ docker push registry.example.com/ansible/ee:2.12-custom
|
||||
The push refers to repository [registry.example.com/ansible/ee]
|
||||
...
|
||||
2.10-custom: digest: sha256:0138445c58253c733f2e255b618469d9f61337901c13e3be6412984fd835ad55 size: 3880
|
||||
2.12-custom: digest: sha256:043a2bd19f4fcc5bd189f0ef0e8fb4e3b436c90e984f23f7dcf0e6b3da4443e0 size: 4515
|
||||
```
|
||||
|
||||
The `Dockerfile` generated for the build will be saved under the `context` directory.
|
||||
|
||||
```bash
|
||||
$ cat context/Dockerfile
|
||||
ARG EE_BASE_IMAGE=quay.io/ansible/ansible-runner:stable-2.10-devel
|
||||
ARG EE_BASE_IMAGE=quay.io/ansible/ansible-runner:stable-2.12-latest
|
||||
ARG EE_BUILDER_IMAGE=quay.io/ansible/ansible-builder:latest
|
||||
|
||||
FROM $EE_BASE_IMAGE as galaxy
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
version: 1
|
||||
|
||||
build_arg_defaults:
|
||||
EE_BASE_IMAGE: quay.io/ansible/ansible-runner:stable-2.10-devel
|
||||
EE_BASE_IMAGE: quay.io/ansible/ansible-runner:stable-2.12-latest
|
||||
|
||||
ansible_config: ansible.cfg
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue