-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
142 lines (111 loc) · 8.04 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
FROM ansibleplaybookbundle/apb-base
LABEL "com.redhat.apb.spec"=\
"YWdlbnRzb25seTogJmFnZW50c29ubHkKICAtIG5hbWU6IG1tc19iYXNlX3VybAogICAgdGl0bGU6\
IE9wcyBNYW5hZ2VyIFVSTAogICAgdHlwZTogc3RyaW5nCiAgICByZXF1aXJlZDogVHJ1ZQogICAg\
ZGVmYXVsdDogJ2h0dHA6Ly9qYXNvbnNtYWNib29rNTUubGFuOjgwODAnCiAgICBkaXNwbGF5X2dy\
b3VwOiBNb25nb0RCIE9wcyBNYW5hZ2VyIENvbmZpZ3VyYXRpb24KICAtIG5hbWU6IG1tc191c2Vy\
CiAgICB0aXRsZTogT3BzIE1hbmFnZXIgdXNlcgogICAgdHlwZTogc3RyaW5nCiAgICByZXF1aXJl\
ZDogVHJ1ZQogICAgZGVmYXVsdDogamFzb24ubWltaWNrQG1vbmdvZGIuY29tCiAgICBkaXNwbGF5\
X2dyb3VwOiBNb25nb0RCIE9wcyBNYW5hZ2VyIENvbmZpZ3VyYXRpb24KICAtIG5hbWU6IG1tc191\
c2VyX2FwaWtleQogICAgdGl0bGU6IFVzZXIncyBPcHMgTWFuYWdlciBBUEkga2V5CiAgICB0eXBl\
OiBzdHJpbmcKICAgIHJlcXVpcmVkOiBUcnVlCiAgICBkZWZhdWx0OiA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JlcGxp\
Y2FzZXQKICAtIG5hbWU6IGFnZW50LW9ubHkKICAgIGRlc2NyaXB0aW9uOiBEZXBsb3lzIG4tcG9k\
cyB3aXRoIG9ubHkgdGhlIGFnZW50cwogICAgZnJlZTogVHJ1ZQogICAgbWV0YWRhdGE6CiAgICAg\
IGRlc2NyaXB0aW9uOiBNb25nb0RCIEFnZW50cy1Pbmx5CiAgICAgIGxvbmdEZXNjcmlwdGlvbjog\
VGhpcyBwbGFuIGRlcGxveXMgc29tZSBudW1iZXIgb2YgcG9kcyBlYWNoIHdpdGggb25seSAxIG9m\
IGVhY2ggdHlwZSBvZiBNb25nb0RCIE9wcyBNYW5hZ2VyIGFnZW50LiBObyBhY3R1YWwgTW9uZ29E\
QiBpbnN0YW5jZXMgYXJlIHByb3Zpc2lvbmVkLiBFYWNoIGFnZW50IGlzIGFzc29jaWF0ZWQgd2l0\
aCB0aGUgZGVzaXJlZCBwcm9qZWN0LiBUaGlzIGJhc2UgcG9kIGFsbG93cyB1c2VycyB0byBjb25m\
aWd1cmUgbW9yZSBhZHZhbmNlZCBjbHVzdGVycyBkaXJlY3RseSB0aHJvdWdoIE1vbmdvREIgT3Bz\
IE1hbmFnZXIuCiAgICAgIGNvc3Q6ICQxLDAwMCwwMDBVUwogICAgcGFyYW1ldGVyczogKmFnZW50\
c29ubHkKCg=="
COPY playbooks /opt/apb/actions
COPY roles /opt/ansible/roles
COPY library /opt/ansible/library
RUN chmod -R g=u /opt/{ansible,apb}
ENV ANSIBLE_LIBRARY /opt/ansible/library
ENV ANSIBLE_ROLES_PATH /opt/ansible/roles:/etc/ansible/roles
USER apb