Sfoglia il codice sorgente

Dockerfile: create symlink for /opt/app-root/src

and point it to /usr/share/ansible/openshift-ansible

so that the file paths for this image are the same as for the
Dockerfile.rhel7 image.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Giuseppe Scrivano 8 anni fa
parent
commit
1cb46437d0
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      Dockerfile

+ 6 - 0
Dockerfile

@@ -16,6 +16,12 @@ LABEL name="openshift-ansible" \
 
 USER root
 
+# Create a symlink to /opt/app-root/src so that files under /usr/share/ansible are accessible.
+# This is required since the system-container uses by default the playbook under
+# /usr/share/ansible/openshift-ansible.  With this change we won't need to keep two different
+# configurations for the two images.
+RUN mkdir -p /usr/share/ansible/ && ln -s /opt/app-root/src /usr/share/ansible/openshift-ansible
+
 RUN INSTALL_PKGS="skopeo" && \
     yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
     rpm -V $INSTALL_PKGS && \