Honeynode Docker refactoring for Java11 38/88438/17
authorChristophe Betoule <christophe.betoule@orange.com>
Mon, 16 Mar 2020 11:59:11 +0000 (12:59 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 27 Mar 2020 16:13:17 +0000 (16:13 +0000)
commitd21a6662e656d938d14e1ff5cb5fc8e5c543d73f
tree48f43959aa859803719db872d939a54c27a54afb
parent3c357162736288e5865ed5575b7572922c461789
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]