-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
55 lines (47 loc) · 3.06 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
FROM ansibleplaybookbundle/apb-base:latest
LABEL "com.redhat.apb.spec"=\
"LS0tCnZlcnNpb246IDEuMApuYW1lOiB2aXJ0dWFsaXphdGlvbgpkZXNjcmlwdGlvbjogS3ViZVZp\
cnQgaW5zdGFsbGVyCmJpbmRhYmxlOiBGYWxzZQphc3luYzogb3B0aW9uYWwKbWV0YWRhdGE6CiAg\
ZGlzcGxheU5hbWU6IEt1YmV2aXJ0CiAgbG9uZ0Rlc2NyaXB0aW9uOiB8CiAgICAgS3ViZVZpcnQg\
ZW5hYmxlcyB0aGUgbWlncmF0aW9uIG9mIGV4aXN0aW5nIHZpcnR1YWxpemVkIHdvcmtsb2FkcyBk\
aXJlY3RseSBpbnRvIHRoZSBkZXZlbG9wbWVudCB3b3JrZmxvd3Mgc3VwcG9ydGVkIGJ5IEt1YmVy\
bmV0ZXMuCgogICAgIFRoaXMgcHJvdmlkZXMgYSBwYXRoIHRvIG1vcmUgcmFwaWQgYXBwbGljYXRp\
b24gbW9kZXJuaXphdGlvbiBieToKICAgICAgICAgLSBTdXBwb3J0aW5nIGRldmVsb3BtZW50IG9m\
IG5ldyBtaWNyb3NlcnZpY2UgYXBwbGljYXRpb25zIGluIGNvbnRhaW5lcnMgdGhhdCBpbnRlcmFj\
dCB3aXRoIGV4aXN0aW5nIHZpcnR1YWxpemVkIGFwcGxpY2F0aW9ucy4KICAgICAgICAgLSBDb21i\
aW5pbmcgZXhpc3RpbmcgdmlydHVhbGl6ZWQgd29ya2xvYWRzIHdpdGggbmV3IGNvbnRhaW5lciB3\
b3JrbG9hZHMgb24gdGhlIHNhbWUgcGxhdGZvcm0sIHRoZXJlYnkgbWFra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Q6IDAuOS4zCiAg\
ICAgICAgZW51bTogWycwLjkuMycsICcwLjkuMCcsICcwLjguMCcsICcwLjcuMCcsICcwLjYuMCcs\
ICcwLjUuMCcsICcwLjQuMCcsICcwLjMuMCcsICcwLjIuMCcsICcwLjEuMCddCiAgICAgICAgdHlw\
ZTogZW51bQogICAgICAtIG5hbWU6IHJlZ2lzdHJ5X3VybAogICAgICAgIHRpdGxlOiBSZWdpc3Ry\
eSBVUkwKICAgICAgICBkZWZhdWx0OiAiZG9ja2VyLmlvIgogICAgICAgIHR5cGU6IHN0cmluZwog\
ICAgICAtIG5hbWU6IHJlZ2lzdHJ5X25hbWVzcGFjZQogICAgICAgIHRpdGxlOiBSZWdpc3RyeSBO\
YW1lc3BhY2UKICAgICAgICBkZWZhdWx0OiBrdWJldmlydAogICAgICAgIHR5cGU6IHN0cmluZwo="
RUN yum install -y iptables wget \
&& yum clean all
### UPSTREAM ONLY ###
COPY download-templates.sh /usr/bin/download-templates
RUN mkdir /opt/apb/kubevirt-templates /opt/apb/kubevirt-templates/cdi \
&& download-templates /opt/apb/kubevirt-templates
COPY requirements.yml /opt/ansible/requirements.yml
RUN ansible-galaxy install -r /opt/ansible/requirements.yml \
&& cp -r ./kubevirt-templates /etc/ansible/roles/kubevirt-ansible/roles/kubevirt/templates/
### UPSTREAM ONLY ###
COPY playbooks/* /opt/apb/actions/
COPY inventory /opt/apb/inventory/hosts
RUN chmod -R g=u /opt/{ansible,apb} /etc/ansible/roles
USER apb