Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- new_script=`echo -e """echo starting
- set -e
- source /home/a17/.bashrc
- source /home/a17/.bash_a17
- /usr/local/bin/supervisord -c /home/a17/a17/supervisord.conf
- /usr/local/bin/supervisorctl -c /home/a17/a17/supervisord.conf start task_gen file_store global_planner onboard_service mock_deployment_server gazebo_bridge mavlink_bridge_sim commander
- /usr/local/bin/supervisorctl -c /home/a17/a17/supervisord.conf
- exit""" | sed 's/$/;/g'`
- echo new_script: $new_script
- docker run --rm -it \
- --net="host" \
- --name drone-sim \
- a17hq/drone-sim:latest bash -c "$new_script" && pkill docker
- #-p 50051:50051 \
- #-p 8082:8082 \
- #-p 11345:11345 \
- #docker run --rm -it \
- # -p 50051:50051 \
- # -p 8082:8082 \
- # -p 11345:11345 \
- # --name drone-sim \
- # a17hq/drone-sim:latest
- #
- #a17hq/drone-sim:latest bash -c "$new_script" && pkill docker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement