anchor.diff:  RUN apt-get update && \
       apt-get -y install --no-install-recommends  git  curl
   
  +
  +
   RUN groupadd -r $FCREPO_USER && \
     useradd -r -u $FCREPO_UID -g $FCREPO_USER $FCREPO_USER
   
  +# USER $FCREPO_USER
  +
  +RUN sed -i '$i<role rolename="fedoraUser"/>$i<role rolename="fedoraAdmin"/>$i<role rolename="manager-gui"/>$i<user username="testuser" password="password1" roles="fedoraUser"/>$i<user username="adminuser" password="password2" roles="fedoraUser"/>$i<user username="fedoraAdmin" password="fedoraAdmin" roles="fedoraAdmin"/>$i<user username="fedora4" password="fedora4" roles="manager-gui"/>'  $CATALINA_HOME/conf/tomcat-users.xml
  +
  +# todo ensure jetty/fedora is not running under root
   
   
  -# todo ensure jetty/fedora is not running under root
  +#--------------
  +# install maven
  +
  +# todo uncomment and remove the current curl (apache archive is down for maintenance)
  +#RUN curl -fsSL http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf - -C /usr/share \
  +#    && mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \
  +#    && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
  +
  +RUN curl -fsSL http://mirror.dkd.de/apache/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf - -C /usr/share \
  +    && mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \
  +    && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
   
   
   #----------------
   # Install Fedora4
   
   WORKDIR /tmp
  -RUN mkdir -p /var/lib/jetty/webapps
  -RUN curl -fSL https://github.com/fcrepo4/fcrepo4/releases/download/fcrepo-$FEDORA_TAG/fcrepo-webapp-$FEDORA_VERSION.war -o fcrepo.war \
  -	&& cp fcrepo.war /usr/local/jetty/webapps/fcrepo.war
  +RUN curl -fSL https://github.com/fcrepo4/fcrepo4/releases/download/fcrepo-$FEDORA_TAG/fcrepo-webapp-$FEDORA_VERSION.war -o fcrepo.war
  +RUN mkdir -p /var/lib/tomcat/fcrepo4-data \
  +#	&& chown -hR $FCREPO_USER:$FCREPO_USER /var/lib/tomcat/fcrepo4-data \
  +#	&& chmod g-w /var/lib/tomcat/fcrepo4-data \
  +	&& cp fcrepo.war /usr/local/tomcat/webapps/fcrepo.war
  +#   && chown -hR $FCREPO_USER:$FCREPO_USER /usr/local/tomcat/webapps/fcrepo.war
   
   
   #---------------------
  
positive.code: COPY scripts/fedora_camel_toolbox.sh /fcrepo_config/
  COPY scripts/runall.sh /fcrepo_config/
  
  
  
  #------------
  # start jetty
  CMD [ "sh", "/fcrepo_config/runall.sh"]
  
  
  
  #WORKDIR /fcrepo4/fcrepo-webapp/target/
  #CMD ["mvn", "jetty:run"]
  
negative.code: 
  ENV JRE_HOME         /usr
  
  ENV FEDORA_VERSION 4.4.0
  ENV FEDORA_TAG 4.4.0
  
  ENV FCREPO_USER docker
  ENV FCREPO_UID 8080
  
  ENV KARAF_VERSION 4.0.1
  
  ENV MAVEN_OPTS  "-Xmx1024m" -XX:MaxMetaspaceSize=1024m"
  ENV MAVEN_VERSION 3.3.9
  ENV MAVEN_HOME /usr/share/maven
  ENV PATH "$PATH:$MAVEN_HOME/bin"
  
  # Install Tomcat 7.
  ENV CATALINA_HOME /usr/local/tomcat
  ENV PATH $CATALINA_HOME/bin:$PATH
  
  
  # ---------------------
  