I have a docker image to setup netopeer2 for netconf operations.
The final line in my docker file starts the server:
#Will start netopeer2-server with debug.
CMD ["/usr/bin/netopeer2-server", “-d”, “-v2 3”]
Now when everything is setup and running ( a cli) I want to be able, when container is running, to execute some configuration bash scripts when I need a specific configuration.
Currently these scripts are not in container/ not added to docker file but only stored in my repo.
The files are:
Both ssh.xml and tls.xml are called from respective setup scripts.
Question 1. Do I need to copy repo version into Docker?
Question 2. How do I execute the scripts?