Skip to content

Commit

Permalink
fix image name
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonR99 committed Dec 6, 2023
1 parent 046dc01 commit a7e2acf
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:

- name: Build and push Docker image
run: |
IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/your-image-name:latest
IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/gazebo:latest
docker build -t $IMAGE_NAME .
docker push $IMAGE_NAME
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# env file
.env
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CAPRA Gazebo
# Docker Gazebo

This package contains a working dockerfile/instruction on how to install gazebo using dart 6.13 require for the tracks plugin.

Expand All @@ -13,16 +13,22 @@ More details on the issue can be found here: https://github.com/gazebosim/gz-sim

## Docker

A cloud image will be available in the next version of the software, but currently, you need to build it. This process can take from 30 min to 1h.
A cloud image will be available in the next version of the software, but currently, you need to build it. This process can take from 30 min to 1h. To save time, you can use the online image available on github.

### Build the image
### Run the image

*You migth need to change the ROS_DOMAIN_ID to make it work with your system.

```bash
docker compose build
docker compose up
```

### Run the image
### Build the image

If you want to modify the image and build it locally, you can use the following command :

```bash
docker compose up
docker compose build
```


8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
version: '3'
services:
gazebo:
image: ghcr.io/clubcapra/gazebo:latest
build:
context: .
dockerfile: Dockerfile
environment:
- DISPLAY
- QT_X11_NO_MITSHM
- XAUTHORITY
- ROS_DOMAIN_ID=0
env_file:
- .env
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- /tmp/.Xauthority:/tmp/.Xauthority:rw
Expand Down
7 changes: 7 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# X11 forwarding
DISPLAY=host.docker.internal:0.0
QT_X11_NO_MITSHM=1
XAUTHORITY=/tmp/.Xauthority

# ROS2 domain to avoid conflicts with other containers
ROS_DOMAIN_ID=0

0 comments on commit a7e2acf

Please sign in to comment.