Commit 246afec1 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by Olivier Stasse
Browse files

[Docker] entrypoint to automatically source setup.bash

This allows
docker run --rm --net=host --runtime=nvidia -e DISPLAY -it talos-integration-tests:18.04 rostest talos_integration_tests test_kine.test
parent 10ef66ad
...@@ -44,3 +44,6 @@ RUN rosdep init \ ...@@ -44,3 +44,6 @@ RUN rosdep init \
ADD . /ws/src/talos_integration_tests ADD . /ws/src/talos_integration_tests
RUN catkin config --install \ RUN catkin config --install \
&& catkin build talos_integration_tests && catkin build talos_integration_tests
ENTRYPOINT ["/ws/src/talos_integration_tests/"]
CMD ["/bin/bash"]
...@@ -76,7 +76,6 @@ docker run --rm --net=host --runtime=nvidia -e DISPLAY -it talos-integration-tes ...@@ -76,7 +76,6 @@ docker run --rm --net=host --runtime=nvidia -e DISPLAY -it talos-integration-tes
Once in the container: Once in the container:
``` ```
source install/setup.bash
rostest talos_integration_tests test_kine.test rostest talos_integration_tests test_kine.test
rostest talos_integration_tests test_sot_talos_balance.test rostest talos_integration_tests test_sot_talos_balance.test
``` ```
set -e
source /ws/install/setup.bash
exec "$@"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment