|
|
Get the docker image
|
|
|
--------------------
|
|
|
|
|
|
The following command can be used to get the docker image:
|
|
|
|
|
|
```bash
|
|
|
docker pull gitlab.liu.se:5000/tdde05_ros2/docker_images/tdde05-air-image:latest
|
|
|
```
|
|
|
|
|
|
Run the docker image (Linux)
|
|
|
----------------------------
|
|
|
|
|
|
Install docker, for instance on Debian/Ubuntu:
|
|
|
|
|
|
```
|
|
|
apt install docker.io
|
|
|
```
|
|
|
|
|
|
The following command can be used to start the docker image:
|
|
|
|
|
|
```bash
|
|
|
xhost +
|
|
|
docker run --privileged --network host -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=${DISPLAY} -h ${HOSTNAME} -v ${HOME}/.Xauthority:/home/air/.Xauthority -v ${PWD}/TDDE05:/home/air/TDDE05 --rm -it gitlab.liu.se:5000/tdde05_ros2/docker_images/tdde05-air-image:latest bash
|
|
|
```
|
|
|
|
|
|
It will mount the `TDDE05` directory from the current directory in the docker image. You should be able to download your source code in `TDDE05`. Be aware that any file from outside of `TDDE05` will disappear when you terminate docker.
|
|
|
|
|
|
|
|
|
|
|
|
Run the docker image (Windows)
|
|
|
------------------------------
|
|
|
|
|
|
*UNTESTED* As a non-windows user, I have very limited experience with the system and will only refer to untested link as guide.
|
|
|
|
|
|
* [Install docker](https://docs.docker.com/desktop/install/windows-install/)
|
|
|
* Install a X11 server, for instance [vcxsrv](https://sourceforge.net/projects/vcxsrv/) or [Cygwin/X](https://x.cygwin.com/)
|
|
|
|
|
|
Run as:
|
|
|
|
|
|
```bash
|
|
|
docker run --privileged --network host -e DISPLAY=REPLACE_WITH_YOUR_IP:0.0 -v $pwd/TDDE05:/home/air/TDDE05 --rm -it gitlab.liu.se:5000/tdde05_ros2/docker_images/tdde05-air-image:latest bash
|
|
|
```
|
|
|
|
|
|
And `REPLACE_WITH_YOUR_IP` with your actual IP.
|
|
|
|
|
|
|
|
|
Run the ocker image (macOS)
|
|
|
------------------------------
|
|
|
|
|
|
*UNTESTED* As a non-macOS user, I have very limited experience with the system and will only refer to untested link as guide.
|
|
|
|
|
|
* [Install docker](https://docs.docker.com/desktop/install/mac-install/)
|
|
|
* [Install XQuartz](https://www.xquartz.org/)
|
|
|
|
|
|
|
|
|
The following command can be used to start the docker image:
|
|
|
|
|
|
```bash
|
|
|
xhost +
|
|
|
export HOSTNAME=`hostname`*
|
|
|
docker run --privileged --network host -e DISPLAY=${HOSTNAME}:0.0 -h ${HOSTNAME} -v ${PWD}/TDDE05:/home/air/TDDE05 --rm -it gitlab.liu.se:5000/tdde05_ros2/docker_images/tdde05-air-image:latest bash
|
|
|
``` |
|
|
\ No newline at end of file |