Skip to content

Commit

Permalink
remove assemble script
Browse files Browse the repository at this point in the history
  • Loading branch information
juanvallejo committed Jul 13, 2017
1 parent 47977c5 commit e7407e5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 48 deletions.
6 changes: 1 addition & 5 deletions images/installer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ ENV PLAYBOOK_FILE=playbooks/byo/openshift_facts.yml \

# playbook2image's assemble script expects the source to be available in
# /tmp/src (as per the source-to-image specs) so we import it there
ADD . /tmp/src

# Running the 'assemble' script will install
# dependencies specified in requirements.txt
RUN /usr/bin/assemble
ADD . ${APP_HOME}

WORKDIR ${APP_HOME}
ENTRYPOINT [ "/usr/bin/entrypoint" ]
Expand Down
4 changes: 0 additions & 4 deletions images/installer/Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ LABEL name="openshift3/ose-ansible" \
architecture="x86_64"

# Playbooks, roles and their dependencies are installed from packages.
# Unlike in Dockerfile, we don't invoke the 'assemble' script here
USER root
RUN INSTALL_PKGS="atomic-openshift-utils atomic-openshift-clients python-boto skopeo openssl java-1.8.0-openjdk-headless httpd-tools" && \
yum repolist > /dev/null && \
Expand Down Expand Up @@ -49,9 +48,6 @@ ENV USER_NAME=default \
# The playbook to be run is specified via the PLAYBOOK_FILE env var.
# This sets a default of openshift_facts.yml as it's an informative playbook
# that can help test that everything is set properly (inventory, sshkeys).
# As the playbooks are installed via packages instead of being copied to
# $APP_HOME by the 'assemble' script, we set the WORK_DIR env var to the
# location of openshift-ansible.
ENV PLAYBOOK_FILE=playbooks/byo/openshift_facts.yml \
ANSIBLE_CONFIG=/usr/share/atomic-openshift-utils/ansible.cfg \
WORK_DIR=/usr/share/ansible/openshift-ansible \
Expand Down
34 changes: 0 additions & 34 deletions images/installer/bin/assemble

This file was deleted.

10 changes: 5 additions & 5 deletions images/installer/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ if [[ -v INVENTORY_FILE ]]; then
# contains a dynamic inventory and we use it directly.
# Otherwise we make a copy so that ALLOW_ANSIBLE_CONNECTION_LOCAL below
# does not attempt to modify the original
if [[ -x ${INVENTORY_FILE} ]]; then
INVENTORY="${INVENTORY_FILE}"
else
cp ${INVENTORY_FILE} ${INVENTORY}
fi
#if [[ -x ${INVENTORY_FILE} ]]; then
# INVENTORY="${INVENTORY_FILE}"
#else
cp ${INVENTORY_FILE} ${INVENTORY}
#fi
elif [[ -v INVENTORY_URL ]]; then
curl -o ${INVENTORY} ${INVENTORY_URL}
elif [[ -v DYNAMIC_SCRIPT_URL ]]; then
Expand Down

0 comments on commit e7407e5

Please sign in to comment.