anchor.diff: -#
   # Docker-based IntelliJ IDEA Inspections using idea-cli-inspector
   #
   # NOTE:
  
positive.code: 
  
  # First install some basic tools to get them or their latest versions (wget, apt).
  #RUN apt-get clean && \
  RUN  apt-get update && \
       apt-get install -y wget sudo \
  #        curl zip openssh-client git subversion software-properties-common  \
          && \
  #    apt-get dist-upgrade -yqq && \
      apt-get autoremove --purge -y && \
      apt-get clean && \
      rm /var/lib/apt/lists/*.* && \
      rm -fr /tmp/* /var/tmp/*
  
  # Install Oracle Java PPAs
  #RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list
  #RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
  #RUN echo "deb http://ppa.launchpad.net/linuxuprising/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/linuxuprising-java.list
  #RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 73C3DB2A
  
  # Mark Oracle license accepted
  #RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
  #RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
  #RUN echo oracle-java10-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
  
  # Install Java 8, Java 10, Groovy, mongodb-client & graphviz via package repository
  RUN apt-get update && \
      apt-get install -y --no-install-recommends \
                         locales \
  #                       oracle-java8-installer \
  #                       oracle-java8-set-default \
  #                       oracle-java8-unlimited-jce-policy \
  #                       oracle-java10-installer \
                         groovy && \
      apt-get autoremove --purge -y && \
      apt-get clean && \
  #    rm -fr /var/cache/oracle-jdk* && \
      rm /var/lib/apt/lists/*.* && \
      rm -fr /tmp/* /var/tmp/*
  
  # Provide a non-privileged user for running IntelliJ
  RUN useradd -mUs /bin/bash ideainspect
  
  #
  # Install various tools into /srv
  #
  # Install IntelliJ IDEA
  ENV V_IDEA 2018.3.3
  # Set C for Community or U for Ultimate
  ENV V_IDEA_EDITION C
  ENV IDEA_CONFDIR .IdeaIC2018.3
  # For Ultimate it is: ENV IDEA_CONFDIR .IntelliJIdea2018.3
  RUN cd /srv && \
      wget -nv https://download.jetbrains.com/idea/ideaI$V_IDEA_EDITION-$V_IDEA-no-jdk.tar.gz && \
  
negative.code: # Point inspector to the new home
  # NOTE: This only takes effect for user `root`. For user ideainspect check home/ideainspect/.bashrc
  ENV IDEA_HOME /srv/idea.latest
  
  # The default locale is POSIX which breaks UTF-8 based javac files
  # NOTE:
  