-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
61 lines (50 loc) · 3.41 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ansibleplaybookbundle/apb-base
LABEL "com.redhat.apb.spec"=\
"dmVyc2lvbjogMS4wCm5hbWU6IGRhdGEtc3luYy1hcGIKZGVzY3JpcHRpb246IEluc3RhbGxzIHRo\
ZSBBZXJvZ2VhciBEYXRhIFN5bmMgU2VydmljZQpiaW5kYWJsZTogVHJ1ZQphc3luYzogb3B0aW9u\
YWwKdGFnczoKICAtIG1vYmlsZS1zZXJ2aWNlCiAgLSBtb2JpbGUtY2xpZW50LWVuYWJsZWQKbWV0\
YWRhdGE6CiAgZGlzcGxheU5hbWU6IERhdGEgU3luYwogIGNvbnNvbGUub3BlbnNoaWZ0LmlvL2lj\
b25DbGFzczogZmEgZmEtcmVmcmVzaAogIGRvY3VtZW50YXRpb25Vcmw6ICJodHRwczovL2RvY3Mu\
YWVyb2dlYXIub3JnL2V4dGVybmFsL2FwYi9kYXRhLXN5bmMuaHRtbCIKICBwcm92aWRlckRpc3Bs\
YXlOYW1lOiAiUmVkIEhhdCwgSW5jLiIKICBzZGstZG9jcy1hbmRyb2lkOiAiaHR0cHM6Ly9kb2Nz\
LmFlcm9nZWFyLm9yZy9leHRlcm5hbC9hcGIvc3luYy9hbmRyb2lkLmh0bWwiCiAgIyBzZGstZG9j\
cy1jb3Jkb3ZhOiAiaHR0cHM6Ly9kb2NzLmFlcm9nZWFyLm9yZy9leHRlcm5hbC9hcGIvbWV0cmlj\
cy9jb3Jkb3ZhLmh0bWwiCiAgc2RrLWRvY3MtaW9zOiAiaHR0cHM6Ly9kb2NzLmFlcm9nZWFyLm9y\
Zy9leHRlcm5hbC9hcGIvc3luYy9pb3MuaHRtbCIKICA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RAogICAgICAgIHJlcXVp\
cmVkOiBUcnVlCiAgICAgICAgdGl0bGU6IE1vYmlsZSBDbGllbnQgSUQKICAgICAgICB0eXBlOiBz\
dHJpbmcKICAgICAgICAK"
COPY playbooks /opt/apb/actions
COPY roles /opt/ansible/roles
COPY vars /opt/ansible/vars
RUN yum install epel-release -y && yum install jq -y
RUN ansible-galaxy install -r /opt/apb/actions/requirements.yml -p /opt/ansible/roles
RUN chmod -R g=u /opt/{ansible,apb}
USER apb