-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathexecution-environment.yml
More file actions
executable file
·26 lines (20 loc) · 1.68 KB
/
execution-environment.yml
File metadata and controls
executable file
·26 lines (20 loc) · 1.68 KB
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
## This file is used to build your execution environment container image with Ansible
## You can otherwise use the upstream image at quay.io/kenmoini/openshift-ztp-ee:latest
## Create Containerfile stuffs: `ansible-builder create`
## Build the EE: `ansible-builder build -t quay.io/yourname/yourimage:tag` - then podman push it
version: 1
build_arg_defaults:
ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: "-v"
# Uncomment the following line to build on a supported RHEL 8 image
# EE_BASE_IMAGE: "registry.redhat.io/ansible-automation-platform-21/ee-supported-rhel8"
# ansible_config: 'ansible.cfg'
dependencies:
galaxy: collections/requirements.yml
python: requirements.txt
system: bindep.txt
additional_build_steps:
prepend: |
RUN dnf update -y && dnf clean all && ansible --version
append:
- RUN curl -L https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz | tar -xvzf - -C /usr/local/bin/ oc kubectl && chmod 755 /usr/local/bin/oc && chmod 755 /usr/local/bin/kubectl && curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- RUN /usr/local/bin/helm repo add emberstack https://emberstack.github.io/helm-charts && /usr/local/bin/helm repo add kong https://charts.konghq.com && /usr/local/bin/helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx && /usr/local/bin/helm repo add jetstack https://charts.jetstack.io && /usr/local/bin/helm repo add hashicorp https://helm.releases.hashicorp.com && /usr/local/bin/helm repo add sealed-secrets https://bitnami-labs.github.io/sealed-secrets && /usr/local/bin/helm repo add external-secrets https://charts.external-secrets.io && /usr/local/bin/helm repo update