anchor.diff:  #
   #
   #
  -
  -
   ARG GALAXY_RELEASE
   ARG GALAXY_REPO
   
  
positive.code: ADD provision.yml /ansible/provision.yml
  ADD postgresql_provision.yml /ansible/postgresql_provision.yml
  
  RUN apt update && apt install --no-install-recommends -y ansible && \
      ansible-playbook /ansible/postgresql_provision.yml -vvv && \
      apt purge ansible -y && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
      rm -rf ~/.cache/ /galaxy-central/client/node_modules/ /galaxy_venv/src/
  
  RUN apt update && apt install --no-install-recommends -y ansible && \
      ansible-playbook /ansible/provision.yml -vvv \
      --extra-vars galaxy_venv_dir=$GALAXY_VIRTUAL_ENV \
      --extra-vars galaxy_log_dir=$GALAXY_LOGS_DIR \
      --extra-vars galaxy_user_name=$GALAXY_USER \
  
negative.code:     mkdir $GALAXY_ROOT
  
  RUN cp $GALAXY_HOME/.bashrc ~/
  RUN curl -L -s $GALAXY_REPO/archive/$GALAXY_RELEASE.tar.gz | tar xzf - --strip-components=1 -C $GALAXY_ROOT \
      && PATH=/tool_deps/_conda/bin/:$PATH virtualenv $GALAXY_VIRTUAL_ENV \
      && chown -R $GALAXY_USER:$GALAXY_USER $GALAXY_VIRTUAL_ENV \
      && chown -R $GALAXY_USER:$GALAXY_USER $GALAXY_ROOT \
      # Setup Galaxy configuration files.
      && mkdir -p $GALAXY_CONFIG_DIR $GALAXY_CONFIG_DIR/web \
      && chown -R $GALAXY_USER:$GALAXY_USER $GALAXY_CONFIG_DIR \
      && rm -rf /root/.cache/ /galaxy-central/client/node_modules/ /galaxy_venv/src/ /home/galaxy/.cache/ \
      && su $GALAXY_USER -c "cp $GALAXY_ROOT/config/galaxy.yml.sample $GALAXY_CONFIG_FILE"
  
  ADD ./reports_wsgi.ini.sample $GALAXY_CONFIG_DIR/reports_wsgi.ini
  ADD sample_tool_list.yaml $GALAXY_HOME/ephemeris/sample_tool_list.yaml
  