Skip to content
Snippets Groups Projects
Commit 9796f0ca authored by TIm Kluge's avatar TIm Kluge
Browse files

ref #1: Use container build args for UID and GID, move build to run script, update README

parent 21b9ab91
No related branches found
No related tags found
1 merge request!1Add DOCKERFILE
FROM osrf/ros:melodic-desktop-full-bionic
ENV uid 1000
ENV gid 1000
ARG uid=1000
ARG gid=1000
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
......
......@@ -48,11 +48,7 @@ See the [README.md of the submodule](../../../../sample_applications/-/blob/mast
To run via docker on any up-to-date linux system:
- **Either** clone this repo and its submodules (recommended for fresh installations):
- Clone this repo and its submodules (recommended for fresh installations):
- as a guest: `git clone --recurse-submodules https://git-st.inf.tu-dresden.de/ceti/ros/panda_gazebo_workspace.git panda_gazebo_workspace`
- as a project member with a registered ssh key: `git clone --recurse-submodules git@git-st.inf.tu-dresden.de:ceti/ros/panda_gazebo_workspace.git panda_gazebo_workspace`
- `docker build . -t ceti-panda-gazebo-workspace`
- `./docker-run.sh roslaunch sample_applications sample_simple_simulation.launch`
Note that this expects your `uid` and `gid` to be `1000`. This is generally the case if your user is the primary user on your system. Otherwise, please change
the values at the top of the `Dockerfile`.
\ No newline at end of file
- Run `./docker-run.sh roslaunch sample_applications sample_simple_simulation.launch` to build and run a docker image tagged with `ceti-panda-gazebo-workspace`
\ No newline at end of file
......@@ -2,6 +2,10 @@
# http://wiki.ros.org/docker/Tutorials/GUI
docker build . -t ceti-panda-gazebo-workspace \
--build-arg UID=$UID \
--build-arg GID=$GID
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
touch $XAUTH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment