diff options
-rw-r--r-- | test/functest/simulators/Dockerfile | 3 | ||||
-rwxr-xr-x | test/functest/simulators/build_sim_image.sh | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | test/functest/simulators/oof_dependencies_simulators.py | 0 | ||||
-rwxr-xr-x | test/functest/simulators/start_sim.sh | 4 |
4 files changed, 7 insertions, 1 deletions
diff --git a/test/functest/simulators/Dockerfile b/test/functest/simulators/Dockerfile index 7f6b49f..ca32895 100644 --- a/test/functest/simulators/Dockerfile +++ b/test/functest/simulators/Dockerfile @@ -30,5 +30,6 @@ RUN ln -s /usr/bin/python3.5 /usr/bin/python ADD requirements.txt /requirements.txt RUN pip install -r requirements.txt ADD sim /sim +ADD start_sim.sh /start_sim.sh -CMD cd /sim && python oof_dependencies_simulators.py > simulator-logs 2>&1
\ No newline at end of file +CMD ["/start_sim.sh"]
\ No newline at end of file diff --git a/test/functest/simulators/build_sim_image.sh b/test/functest/simulators/build_sim_image.sh index c035e9a..8efb273 100755 --- a/test/functest/simulators/build_sim_image.sh +++ b/test/functest/simulators/build_sim_image.sh @@ -39,6 +39,7 @@ cp -r $SIMULATORS_DIR/policy $DOCKER_DIR/sim cp $TEST_DIR/policy-local-files/*.json $DOCKER_DIR/sim/policy/response-payloads/pdp-has-vcpe-good cp $SIMULATORS_DIR/oof_dependencies_simulators.py $DOCKER_DIR/sim/oof_dependencies_simulators.py cp $OSDF_DIR/requirements.txt $DOCKER_DIR +cp -r $SIMULATORS_DIR/start_sim.sh $DOCKER_DIR/ cd $DOCKER_DIR diff --git a/test/functest/simulators/oof_dependencies_simulators.py b/test/functest/simulators/oof_dependencies_simulators.py index 2995861..2995861 100755..100644 --- a/test/functest/simulators/oof_dependencies_simulators.py +++ b/test/functest/simulators/oof_dependencies_simulators.py diff --git a/test/functest/simulators/start_sim.sh b/test/functest/simulators/start_sim.sh new file mode 100755 index 0000000..1d17d65 --- /dev/null +++ b/test/functest/simulators/start_sim.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +cd /sim +python oof_dependencies_simulators.py > simulator-logs 2>&1
\ No newline at end of file |