forked from ansibleplaybookbundle/kubevirt-apb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (47 loc) · 2.99 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
FROM ansibleplaybookbundle/apb-base:latest
LABEL "com.redhat.apb.spec"=\
"LS0tCnZlcnNpb246IDEuMApuYW1lOiB2aXJ0dWFsaXphdGlvbgpkZXNjcmlwdGlvbjogS3ViZVZp\
cnQgaW5zdGFsbGVyCmJpbmRhYmxlOiBGYWxzZQphc3luYzogb3B0aW9uYWwKbWV0YWRhdGE6CiAg\
ZGlzcGxheU5hbWU6IEt1YmV2aXJ0CiAgbG9uZ0Rlc2NyaXB0aW9uOiB8CiAgICAgS3ViZVZpcnQg\
ZW5hYmxlcyB0aGUgbWlncmF0aW9uIG9mIGV4aXN0aW5nIHZpcnR1YWxpemVkIHdvcmtsb2FkcyBk\
aXJlY3RseSBpbnRvIHRoZSBkZXZlbG9wbWVudCB3b3JrZmxvd3Mgc3VwcG9ydGVkIGJ5IEt1YmVy\
bmV0ZXMuCgogICAgIFRoaXMgcHJvdmlkZXMgYSBwYXRoIHRvIG1vcmUgcmFwaWQgYXBwbGljYXRp\
b24gbW9kZXJuaXphdGlvbiBieToKICAgICAgICAgLSBTdXBwb3J0aW5nIGRldmVsb3BtZW50IG9m\
IG5ldyBtaWNyb3NlcnZpY2UgYXBwbGljYXRpb25zIGluIGNvbnRhaW5lcnMgdGhhdCBpbnRlcmFj\
dCB3aXRoIGV4aXN0aW5nIHZpcnR1YWxpemVkIGFwcGxpY2F0aW9ucy4KICAgICAgICAgLSBDb21i\
aW5pbmcgZXhpc3RpbmcgdmlydHVhbGl6ZWQgd29ya2xvYWRzIHdpdGggbmV3IGNvbnRhaW5lciB3\
b3JrbG9hZHMgb24gdGhlIHNhbWUgcGxhdGZv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vbgogICAgICAgIGRlZmF1bHQ6IDAuNy4wCiAg\
ICAgICAgZW51bTogWycwLjcuMCcsICcwLjYuMCcsICcwLjUuMCcsICcwLjQuMCcsICcwLjMuMCcs\
ICcwLjIuMCcsICcwLjEuMCddCiAgICAgICAgdHlwZTogZW51bQogICAgICAtIG5hbWU6IHJlZ2lz\
dHJ5X3VybAogICAgICAgIHRpdGxlOiBSZWdpc3RyeSBVUkwKICAgICAgICBkZWZhdWx0OiAiZG9j\
a2VyLmlvIgogICAgICAgIHR5cGU6IHN0cmluZwogICAgICAtIG5hbWU6IHJlZ2lzdHJ5X25hbWVz\
cGFjZQogICAgICAgIHRpdGxlOiBSZWdpc3RyeSBOYW1lc3BhY2UKICAgICAgICBkZWZhdWx0OiBr\
dWJldmlydAogICAgICAgIHR5cGU6IHN0cmluZwo="
RUN yum install -y iptables wget \
&& yum clean all
### UPSTREAM ONLY ###
COPY requirements.yml /opt/ansible/requirements.yml
COPY download-templates.sh /usr/bin/download-templates
RUN mkdir /opt/apb/kubevirt-templates \
&& download-templates /opt/apb/kubevirt-templates
RUN ansible-galaxy install -r /opt/ansible/requirements.yml \
&& cp -r /opt/apb/kubevirt-templates /etc/ansible/roles/kubevirt-ansible/roles/kubevirt/templates/
### UPSTREAM ONLY ###
COPY playbooks/* /opt/apb/actions/
COPY inventory /etc/ansible/hosts
RUN chmod -R g=u /opt/{ansible,apb} /etc/ansible/roles
USER apb