I'm following instructions from this site about building a spring-boot docker container. They are using CentOS.
In their dockerfile, they call the alternative command several times. I would like to understand the purpose of these statements.
note: run is a docker command. I am interested in the alternative command passed to run
RUN alternatives --install /usr/bin/java jar /usr/java/latest/bin/java 200000
RUN alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 200000
RUN alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 200000
From what I can tell they are modifying symbolic links. Is that correct and, more importantly, why?
Thnx
Matt