diff options
author | Marcin Migdal <marcin.migdal@nokia.com> | 2018-10-30 14:08:37 +0100 |
---|---|---|
committer | Marcin Migdal <marcin.migdal@nokia.com> | 2018-10-30 14:08:49 +0100 |
commit | 7b601177ce631014122df468355d998005056a23 (patch) | |
tree | 777ccb0d3a868016a8067d855548277e134ce0da /test/mocks/pnfsimulator/simulator.sh | |
parent | 746c4824a97111b5a291071be1dcfb0b3d204c9e (diff) |
Files assembly for vsftpd_ftpes_server
Change-Id: I8cfacba4047e26fa4d679a7392ac571d298342d4
Issue-ID: INT-700
Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
Diffstat (limited to 'test/mocks/pnfsimulator/simulator.sh')
-rwxr-xr-x | test/mocks/pnfsimulator/simulator.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/mocks/pnfsimulator/simulator.sh b/test/mocks/pnfsimulator/simulator.sh index 23facce6a..6b61e6b87 100755 --- a/test/mocks/pnfsimulator/simulator.sh +++ b/test/mocks/pnfsimulator/simulator.sh @@ -46,7 +46,12 @@ function build_image(){ fi } +function set_vsftpd_file_owner() { + sudo chown root ./ftpes/vsftpd/configuration/vsftpd_ssl.conf +} + function start_netconf_server() { + set_vsftpd_file_owner docker-compose -f $1 up -d $NETOPEER_CONTAINER_NAME echo echo "NETCONF server container's logs:" @@ -62,7 +67,7 @@ function start(){ echo "Simulator containers are already up" else echo "Starting simulator containers using netconf model specified in config/netconf.env" - + set_vsftpd_file_owner archive_logs start_netconf_server $1 docker-compose -f $1 up -d $SIMULATOR_CONTAINER_NAME @@ -138,7 +143,7 @@ Logs are written to logs/pnf-simulator.log. After each "start/start-dev" old log FOR DEVELOPERS 1. Build local simulator image using "./simulator.sh build" -2. Run containers with "./simulator.sh start-debug" +2. Run containers with "./simulator.sh start-dev" If you change the source code you have to rebuild image with "./simulator.sh build" and run "./simulator.sh start/start-dev" again EndOfMessage |