-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile-v3.11
23 lines (19 loc) · 1.12 KB
/
Dockerfile-v3.11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ansible/ansible-runner:latest
MAINTAINER Ansible Playbook Bundle Community
LABEL "com.redhat.apb.runtime"="2"
ENV USER_NAME=apb \
USER_UID=1001 \
BASE_DIR=/opt/apb
ENV HOME=${BASE_DIR}
RUN curl https://copr.fedorainfracloud.org/coprs/g/ansible-service-broker/ansible-service-broker-1.3.0-openshift-3.11/repo/epel-7/group_ansible-service-broker-ansible-service-broker-1.3.0-openshift-3.11-epel-7.repo -o /etc/yum.repos.d/asb.repo
RUN rpm --import https://copr-be.cloud.fedoraproject.org/results/@ansible-service-broker/ansible-service-broker-latest/pubkey.gpg \
&& yum -y install epel-release centos-release-openshift-origin git \
&& yum -y install --setopt=tsflags=nodocs origin-clients python-openshift ansible ansible-kubernetes-modules ansible-asb-modules apb-base-scripts python2-jmespath \
&& yum clean all
RUN mkdir -p /usr/share/ansible/openshift \
/etc/ansible /opt/apb /opt/ansible \
${BASE_DIR}/{etc,.kube,.ansible/tmp} \
&& chown -R ${USER_NAME}:0 /opt/{ansible,apb} \
&& chmod -R g=u /opt/{ansible,apb} /etc/passwd
WORKDIR /opt/apb
ENTRYPOINT ["entrypoint.sh"]