anchor.diff:  # combining stuff from:
   # https://github.com/colebrumley/docker-rundeck
   # https://github.com/William-Yeh/docker-ansible
  +
  +ENV RDECK_BASE=/opt/rundeck
  +ENV RDECK_JAR=${RDECK_BASE}/rundeck-launcher.jar
  +ENV PATH=${PATH}:${RDECK_BASE}/tools/bin
  +ENV MANPATH=${MANPATH}:${RDECK_BASE}/docs/man
  +ENV RDECK_ADMIN_PASS=rdtest2017
  +ENV PROJECT_BASE=${RDECK_BASE}/projects/Test-Project
  +ENV ANSIBLE_HOST_KEY_CHECKING=false
  +ENV RDECK_HOST=localhost
  +ENV RDECK_PORT=4440
   
   # install Ansible
   # check newest version: https://pypi.python.org/pypi/ansible
  
positive.code: 
  # install Rundeck via launcher
  # check newest version: http://rundeck.org/downloads.html
  ENV RDECK_BASE=/opt/rundeck
  ENV RDECK_JAR=${RDECK_BASE}/rundeck-launcher.jar
  ENV PATH=${PATH}:${RDECK_BASE}/tools/bin
  ENV MANPATH=${MANPATH}:${RDECK_BASE}/docs/man
  ENV RDECK_ADMIN_PASS=rdtest2017
  RUN mkdir -p ${RDECK_BASE} && \
    mkdir ${RDECK_BASE}/libext && \
    curl -SLo ${RDECK_JAR} http://dl.bintray.com/rundeck/rundeck-maven/rundeck-launcher-2.10.2.jar
  
negative.code: COPY build/libs/ansible-plugin-*.jar ${RDECK_BASE}/libext/
  
  # create project
  RUN mkdir -p ${PROJECT_BASE}/acls && \
    mkdir -p ${PROJECT_BASE}/etc
  COPY docker/project.properties ${PROJECT_BASE}/etc/
  
  CMD /run.sh
  