Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker #246

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ros:melodic

RUN apt-get update && apt-get install -y \
curl \
x11-apps \
x11-utils \
x11-xserver-utils \
xserver-xephyr \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN curl https://sh.rustup.rs -sSf | bash -s -- -y

ENV PATH="/root/.cargo/bin:${PATH}"

RUN git clone https://github.com/openrr/urdf-viz.git /urdf-viz

WORKDIR /urdf-viz

RUN cargo install urdf-viz
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ You can install urdf-viz using [Homebrew tap on macOS and Linux](https://github.
```sh
brew install openrr/tap/urdf-viz
```
### Run with Docker
Build docker image:
```bash
docker build . -t urdf_viz_docker
```
Create container:
```bash
docker run -it --rm --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $XAUTHORITY:/tmp/.docker.xauth -e XAUTHORITY=/tmp/.docker.xauth urdf_viz_docker
```

## How to use

Expand Down
Loading