AndrejOrsula / ign_moveit2_examples

C++ and Python examples of using MoveIt 2 inside Ignition Gazebo simulation environment
BSD 3-Clause "New" or "Revised" License
97 stars 20 forks source link

how to use the docker #24

Closed yunlong12 closed 1 year ago

yunlong12 commented 1 year ago

Thanks for your nice work, which is very useful to me. In your code, I can see there is something about docker, dockerfile, etc. Could you please put some info in the REAMME about how to use docker to run the examples? Thanks.

AndrejOrsula commented 1 year ago

Hello, You can use the scripts in the .docker directory. Something like this:

Build Image (optional, image is already on Docker Hub)

To build a new Docker image from Dockerfile, you can run build.bash as shown below.

.docker/build.bash ${TAG:-latest} ${BUILD_ARGS}

Run Container

To run the Docker container, you can use run.bash as shown below.

.docker/run.bash ${TAG:-latest} ${CMD}

Run Dev Container

To run the Docker container in a development mode (source code mounted as a volume), you can use devel.bash as shown below.

.docker/devel.bash ${TAG:-latest} ${CMD}
yunlong12 commented 1 year ago

Hi AndrejOrsula, thanks for your quick reply. I really appreciate that.👍