Example repository to build AAP (Ansible Automation Platform) EE (Execution Environment) using ansible-builder and docker.
- AAP version: 2.4
- PowerMax Collection: 3.1.0, defined in files/requirements.yml
- Python packages: PyU4V <= 10.1.0.2
- Unisphere version: 10.1.0.0
- Base image: registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:1.0.0-887
- ansible-builder: 3.1.0 (https://pypi.org/project/ansible-builder/)
-
Build EE image
ansible-builder build -v3 -t pmax-ee:1.0 --container-runtime docker
Please note that pmax-ee is image name and 1.0 is the tag for the image which is being built. -
Check image ID
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
pmax-ee 1.0 2bf39eb5ebd0 42 seconds ago 1.59GB
-
Tag image for image container registry (in this case, it is GitHub Container Registry, aka ghcr)
docker tag 2bf39eb5ebd0 ghcr.io/<GitHub account>/pmax-ee:1.0
-
Push image to CR
docker push ghcr.io/jzhang2018/pmax-ee:1.0
To use EE in AAP, create an Execution Environment using the above image path: ghcr.io/<GitHub account>/pmax-ee:1.0
.