-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
28 lines (26 loc) · 1.16 KB
/
Dockerfile
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
FROM quay.io/operator-framework/ansible-operator:v1.31.0
ENV ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3
USER root
RUN dnf install -y openssl python3-pyyaml jq podman
USER ${USER_ID}
RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
RUN chmod 700 get_helm.sh
RUN ./get_helm.sh
RUN curl -fsSL -o /usr/local/bin/amqp-publish https://github.com/selency/amqp-publish/releases/download/v1.0.0/amqp-publish.linux-amd64
RUN chmod +x /usr/local/bin/amqp-publish
COPY requirements.yml ${HOME}/requirements.yml
RUN pip3 install --upgrade pip
RUN pip3 install --upgrade paho-mqtt kubernetes openshift jmespath pika
RUN ansible-galaxy collection install -r ${HOME}/requirements.yml \
&& chmod -R ug+rwx ${HOME}/.ansible
RUN mkdir /opt/ansible/bin
RUN curl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -o /usr/local/bin/kubectl
RUN chmod a+x /usr/local/bin/kubectl
COPY watches.yaml ${HOME}/watches.yaml
COPY roles/ ${HOME}/roles/
COPY playbooks/ ${HOME}/playbooks/
COPY kustomize/ ${HOME}/kustomize/
COPY *.yaml ${HOME}/
COPY *.sh ${HOME}/
COPY bin/* /usr/local/bin/
RUN chmod -R a+rw .