anchor.diff:  ENV PW=default
   
   RUN groupadd -g ${GID} gluster && \
  -  useradd -p ${PW} -u ${UID} -g ${GID} gluster
  +  useradd -p ${PW} -u ${UID} -g ${GID} -d /home/zap -m -s /bin/bash gluster
   
   VOLUME /mnt/ifs_storage
   
  
positive.code: 
  
  
  RUN useradd -d /home/zap -m -s /bin/bash zap
  RUN echo zap:zap | chpasswd
  RUN mkdir /zap && chown zap:zap /zap
  
  WORKDIR /zap
  
  #Change to the zap user so things get done as the right person (apart from copy)
  USER zap
  
  RUN mkdir /home/zap/.vnc
  
  
negative.code: #Copy doesn't respect USER directives so we need to chown and to do that we need to be root
  USER root
  
  RUN chown gluster:gluster /zap/* && \
  	chown gluster:gluster /zap/webswing/webswing.config && \
  	chown gluster:gluster /zap/webswing/webswing.properties && \
  	chown gluster:gluster -R /home/zap/.ZAP/
  
  #Change back to zap at the end
  USER gluster
  
  HEALTHCHECK --retries=5 --interval=5s CMD zap-cli status
  
  
  WORKDIR /robot-tests
  
  ENTRYPOINT ["./set-umask0002.sh"]
  