-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
16 lines (16 loc) · 808 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM cytopia/ansible:2.10-infra
LABEL maintainer="Kien Nguyen-Tuan <[email protected]>"
# Enable Mitogen to boostup performance
ENV ANSIBLE_STRATEGY_PLUGINS=/usr/lib/python3.10/site-packages/ansible_mitogen/plugins/strategy
ENV ANSIBLE_STRATEGY=mitogen_linear
ENV ANSIBLE_CALLBACK_PLUGINS=/usr/lib/python3.10/site-packages/ara/plugins/callback
ENV ANSIBLE_ACTION_PLUGINS=/usr/lib/python3.10/site-packages/ara/plugins/action
ENV ANSIBLE_LOOKUP_PLUGINS=/usr/lib/python3.10/site-packages/ara/plugins/lookup
COPY etc/ansible.example.cfg /etc/ansible/ansible.cfg
COPY . /opt/ansitheus
WORKDIR /opt/ansitheus
RUN ansible-galaxy install -r requirements.yml && \
pip install -r requirements.txt
# Mitogen needs sudo command to execute
RUN apk add --no-cache sudo
ENTRYPOINT ["/opt/ansitheus/tools/ansitheus"]