mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
* Upgrade to Operator SDK 1.16.0 * Upgrade Operator SDK to v1.22.2 & bump base image version
20 lines
593 B
Docker
20 lines
593 B
Docker
FROM quay.io/operator-framework/ansible-operator:v1.22.2
|
|
|
|
ARG DEFAULT_AWX_VERSION
|
|
ARG OPERATOR_VERSION
|
|
ENV DEFAULT_AWX_VERSION=${DEFAULT_AWX_VERSION}
|
|
ENV OPERATOR_VERSION=${OPERATOR_VERSION}
|
|
|
|
COPY requirements.yml ${HOME}/requirements.yml
|
|
RUN ansible-galaxy collection install -r ${HOME}/requirements.yml \
|
|
&& chmod -R ug+rwx ${HOME}/.ansible
|
|
|
|
COPY watches.yaml ${HOME}/watches.yaml
|
|
COPY roles/ ${HOME}/roles/
|
|
COPY playbooks/ ${HOME}/playbooks/
|
|
|
|
ENTRYPOINT ["/tini", "--", "/usr/local/bin/ansible-operator", "run", \
|
|
"--watches-file=./watches.yaml", \
|
|
"--reconcile-period=0s" \
|
|
]
|