-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
73 lines (69 loc) · 4.91 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
62
63
64
65
66
67
68
69
70
71
72
73
FROM ansibleplaybookbundle/apb-base
LABEL "com.redhat.apb.spec"=\
"dmVyc2lvbjogMS4wCm5hbWU6IHN0cmltemktYXBiCmRlc2NyaXB0aW9uOiBBcGFjaGUgS2Fma2Eg\
Mi4wLjAgb24gS3ViZXJuZXRlcyBhbmQgT3BlblNoaWZ0CmJpbmRhYmxlOiBGYWxzZQphc3luYzog\
b3B0aW9uYWwKbWV0YWRhdGE6CiAgZGlzcGxheU5hbWU6IFN0cmltemkgKEFQQikKICBpbWFnZVVy\
bDogImh0dHBzOi8vYXZhdGFyczIuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3UvMzQ3Njc0Mjg/cz0y\
MDAmdj00IgogIGRvY3VtZW50YXRpb25Vcmw6ICJodHRwOi8vc3RyaW16aS5pby9kb2NzL21hc3Rl\
ci8iCiAgcHJvdmlkZXJEaXNwbGF5TmFtZTogIlJlZCBIYXQsIEluYy4iCiAgZGVwZW5kZW5jaWVz\
OgogICAgLSAiZG9ja2VyLmlvL3N0cmltemkvdG9waWMtb3BlcmF0b3I6MC43LjAiCiAgICAtICJk\
b2NrZXIuaW8vc3RyaW16aS9lbnRpdHktb3BlcmF0b3Itc3R1bm5lbDowLjcuMCIKICAgIC0gImRv\
Y2tlci5pby9zdHJpbXppL3VzZXItb3BlcmF0b3I6MC43LjAiCiAgICAtICJkb2NrZXIuaW8vc3Ry\
aW16aS9jbHVzdGVyLW9wZXJhdG9yOjAuNy4wIgogICAgLSAiZG9ja2VyLmlvL3N0cmltemkva2Fm\
a2E6MC43LjAiCiAgICAtICJkb2NrZXIuaW8vc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HMgYWZ0ZXIgdGhlIGNv\
bnRhaW5lciBoYXMgc3RhcnRlZCBiZWZvcmUgaGVhbHRoY2hlY2sgcHJvYmVzIGFyZSBpbml0aWF0\
ZWQKICAgICAgcmVxdWlyZWQ6IHRydWUKICAgICAgZGVmYXVsdDogMTUKICAgICAgdHlwZTogaW50\
CiAgICAtIG5hbWU6IEtBRktBX0hFQUxUSENIRUNLX1RJTUVPVVQKICAgICAgdGl0bGU6IEthZmth\
IGhlYWx0aGNoZWNrIHRpbWVvdXQKICAgICAgZGVzY3JpcHRpb246IE51bWJlciBvZiBzZWNvbmRz\
IGFmdGVyIHdoaWNoIHRoZSBwcm9iZSB0aW1lcyBvdXQKICAgICAgcmVxdWlyZWQ6IHRydWUKICAg\
ICAgZGVmYXVsdDogNQogICAgICB0eXBlOiBpbnQKICAgIC0gbmFtZTogS0FGS0FfREVGQVVMVF9S\
RVBMSUNBVElPTl9GQUNUT1IKICAgICAgdGl0bGU6IERlZmF1bHQgcmVwbGljYXRpb24gZmFjdG9y\
CiAgICAgIGRlc2NyaXB0aW9uOiBEZWZhdWx0IHJlcGxpY2F0aW9uIGZhY3RvciBmb3IgbmV3bHkg\
Y3JlYXRlZCB0b3BpY3MKICAgICAgcmVxdWlyZWQ6IHRydWUKICAgICAgZGVmYXVsdDogMQogICAg\
ICB0eXBlOiBpbnQK"
COPY playbooks /opt/apb/actions
COPY roles /opt/ansible/roles
RUN chmod -R g=u /opt/{ansible,apb}
USER apb