-
Notifications
You must be signed in to change notification settings - Fork 0
/
execution-environment.yml
38 lines (38 loc) · 1.1 KB
/
execution-environment.yml
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
29
30
31
32
33
34
35
36
37
38
---
version: 3
dependencies:
ansible_core:
package_pip: ansible-core==2.15.1
ansible_runner:
package_pip: ansible-runner==2.3.3
additional_build_steps:
prepend_base: |
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /tini
RUN for dir in \
/home/runner \
/home/runner/.ansible \
/home/runner/.ansible/tmp \
/runner \
/home/runner \
/runner/env \
/runner/inventory \
/runner/project \
/runner/artifacts ; \
do mkdir -m 0775 -p $dir ; chmod -R g+rwx $dir ; chgrp -R root $dir ; done && \
for file in \
/home/runner/.ansible/galaxy_token \
/etc/passwd \
/etc/group ; \
do touch $file ; chmod g+rw $file ; chgrp root $file ; done
RUN dnf install python3-pip -y \
&& dnf clean all \
&& chmod +x /tini
images:
base_image:
name: rockylinux:9
options :
container_init:
entrypoint: '["/tini", "--", "/opt/builder/bin/entrypoint", "dumb-init"]'
cmd: '["ansible-runner", "run", "/runner"]'
package_pip: 'dumb-init'
user: 'root'