anchor.diff:      ca-certificates \
       curl \
       gnupg2 \
  +    zip \
       software-properties-common
   RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
   RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
  
positive.code: # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  # 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  # ---------------------------------------------------------------------------
  FROM jenkins/ssh-slave:latest-jdk11
  
  #    ____  ____  ____      ____  _   __        _
  #   |_  _||_  _||_  _|    |_  _|(_) [  |  _   (_)
  
negative.code: 
  WORKDIR /root
  
  # Install a recent version of Java. We need >= 8u191-b12. See https://dev.xwiki.org/xwiki/bin/view/Community/Building/
  # Since jenkins/ssh-slave depends on Debian Stretch, which has only 8u181 as the latest version we need to remove it
  # and use another mechanism to install a recent Java. We use Sdkman.
  RUN apt purge openjdk-8-jdk -y && \
    apt autoremove -y && \
    curl -s "https://get.sdkman.io" | bash
  RUN /bin/bash -l -c 'source "/root/.sdkman/bin/sdkman-init.sh"'
  RUN /bin/bash -l -c 'sdk install java 8.0.202-amzn'
  
  # ci.xwiki.org expects java to be available at /home/hudsonagent/java8
  RUN mkdir -p /home/hudsonagent
  RUN ln -fs /root/.sdkman/candidates/java/current/bin/java /home/hudsonagent/java8
  RUN ln -fs /home/hudsonagent/java8 /home/hudsonagent/java
  
  # Copy VNC config files
  COPY vnc/.Xauthority .Xauthority
  COPY vnc/.vnc .vnc
  
  