anchor.diff:  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
  -RUN chown -R $FCREPO_UID /var/lib/tomcat/fcrepo4-data
  +RUN mkdir -p /var/lib/tomcat/fcrepo4-data/com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean.default.objectStoreDir
  +RUN mkdir -p /var/lib/tomcat/fcrepo4-data/com.arjuna.ats.arjuna.objectstore.objectStoreDir
  +RUN mkdir -p /var/lib/tomcat/fcrepo4-data/fcrepo.ispn.cache
  +RUN mkdir -p /var/lib/tomcat/fcrepo4-data/fcrepo.ispn.binary.cache
  +RUN mkdir -p /var/lib/tomcat/fcrepo4-data/index
  +RUN mkdir -p /var/lib/tomcat/fcrepo4-data/fcrepo.ispn.alternative.cache
  +RUN mkdir -p /var/lib/tomcat/fcrepo4-data/fcrepo.ispn.binary.alternative.cache
   
  -#	&& chmod g-w /var/lib/tomcat/fcrepo4-data
  +RUN chown -R $FCREPO /var/lib/tomcat/fcrepo4-data
  +#RUN chmod -R 777 /var/lib/tomcat/fcrepo4-data
   
   
   
   RUN cp fcrepo.war /usr/local/tomcat/webapps/fcrepo.war
  -RUN chown $FCREPO_UID /usr/local/tomcat/webapps/fcrepo.war
  +RUN chown $FCREPO /usr/local/tomcat/webapps/fcrepo.war
   
   
   
  
positive.code: #-----------------------
  # build and add features
  WORKDIR /usr/local/tomcat
  RUN chown -R $FCREPO_UID bin webapps temp logs work conf
    #  #&& chmod -R 300 bin webapps temp logs work conf
  
  RUN mkdir -p /usr/local/tomcat/conf/Catalina/localhost
  RUN chown -R $FCREPO_UID /usr/local/tomcat/conf/Catalina
  
  #RUN chmod -R 740 /usr/local/tomcat/conf/Catalina
  #RUN chmod -R +s /usr/local/tomcat/conf/Catalina
  
  
  
  
  
negative.code:     apt-get -y install --no-install-recommends  git  curl  vim
  
  
  RUN groupadd  $FCREPO_USER
  RUN useradd  -u $FCREPO_UID -g $FCREPO_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
  RUN sed -i '$i<Resources cachingAllowed="true" cacheMaxSize="100000" />'  /usr/local/tomcat/conf/context.xml
  
  
  
  