Honeynode Docker refactoring for Java11 03/89203/1
authorChristophe Betoule <christophe.betoule@orange.com>
Mon, 16 Mar 2020 11:59:11 +0000 (12:59 +0100)
committerChristophe Betoule <christophe.betoule@orange.com>
Tue, 21 Apr 2020 07:56:59 +0000 (09:56 +0200)
commitbb7f16871732a9ff8e482a235b847c3e822534ae
treec1c0d3defd437662535600481c295b65ebf01e08
parent6b00a5f5ffaf5995ad368ac9d23de900491d488d
Honeynode Docker refactoring for Java11

Upgrade Docker image generation process to use new Java11 simulators.
Both OpenROADM versions 1.2.1 and 2.2.1 simulators are now using a
same docker image and the same scripts.

This brings the following improvements:
- create a multi-stage docker file to isolate build and run processes
- decrease image size
- use an applicative user in Dockerfile rather than root
- add healthcheck
- expose both netconf and restconf ports
- use the docker option --name to set the name of the container
- rootless container and sudo management for docker command
- centralize most scripts parameters in dockercmd_profile.sh

JIRA: TRNSPRTPCE-239
Signed-off-by: Christophe Betoule <christophe.betoule@orange.com>
Co-authored-by: Emmanuelle Delfour <emmanuelle.delfour@orange.com>
Co-authored-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I86b47cac0f795c2ac9d1615efa703d8ca87b34e5
tests/Xtesting/DockerSims/Dockerfile [new file with mode: 0644]
tests/Xtesting/DockerSims/Dockerfile.orig.21 [deleted file]
tests/Xtesting/DockerSims/Dockerfile.orig.221 [deleted file]
tests/Xtesting/DockerSims/build_sims.sh [new file with mode: 0755]
tests/Xtesting/DockerSims/dockercmd_profile.sh [new file with mode: 0755]
tests/Xtesting/DockerSims/generate_sims21.sh [deleted file]
tests/Xtesting/DockerSims/generate_sims221.sh [deleted file]
tests/Xtesting/DockerSims/start_sims.sh [new file with mode: 0755]
tests/Xtesting/DockerSims/start_sims21.sh [deleted file]
tests/Xtesting/DockerSims/start_sims221.sh [deleted file]
tests/Xtesting/DockerSims/stop_sims.sh [new file with mode: 0755]