Skip to content

Commit

Permalink
Merge pull request #147 from mkhansenbot/remove_rocker
Browse files Browse the repository at this point in the history
Remove rocker - fix issue #146
  • Loading branch information
mkhansenbot authored Apr 30, 2024
2 parents 0117735 + 1f85724 commit abf6552
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 39 deletions.
9 changes: 2 additions & 7 deletions moveit2/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@
# Requires:
# docker
# an X server
# rocker


ROCKER_ARGS="--devices /dev/dri/ --dev-helpers --x11 --user-override-name spaceros-user --network host"

IMG_NAME=openrobotics/moveit2

# Replace `/` with `_` to comply with docker container naming
# And append `_runtime`
CONTAINER_NAME="$(tr '/' '_' <<< "$IMG_NAME")"
ROCKER_ARGS="${ROCKER_ARGS} --name $CONTAINER_NAME"
echo "Using image <$IMG_NAME> to start container <$CONTAINER_NAME>"

# Start the container
rocker ${ROCKER_ARGS} $IMG_NAME
docker run --rm -it --name $CONTAINER_NAME --network host \
-e DISPLAY -e TERM -e QT_X11_NO_MITSHM=1 $IMG_NAME
9 changes: 2 additions & 7 deletions nav2_demo/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@
# Requires:
# docker
# an X server
# rocker


ROCKER_ARGS="--devices /dev/dri/ --dev-helpers --x11 --user-override-name spaceros-user --network host"

IMG_NAME=osrf/space_nav2_demo

# Replace `/` with `_` to comply with docker container naming
# And append `_runtime`
CONTAINER_NAME="$(tr '/' '_' <<< "$IMG_NAME")"
ROCKER_ARGS="${ROCKER_ARGS} --name $CONTAINER_NAME"
echo "Using image <$IMG_NAME> to start container <$CONTAINER_NAME>"

# Start the container
rocker ${ROCKER_ARGS} $IMG_NAME
docker run --rm -it --name $CONTAINER_NAME --network host \
-e DISPLAY -e TERM -e QT_X11_NO_MITSHM=1 $IMG_NAME
10 changes: 2 additions & 8 deletions navigation2/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@
# Requires:
# docker
# an X server
# rocker


ROCKER_ARGS="--devices /dev/dri/ --dev-helpers --x11 --user-override-name spaceros-user --network host"

IMG_NAME=osrf/space_nav2

# Replace `/` with `_` to comply with docker container naming
# And append `_runtime`
CONTAINER_NAME="$(tr '/' '_' <<< "$IMG_NAME")"
ROCKER_ARGS="${ROCKER_ARGS} --name $CONTAINER_NAME"
echo "Using image <$IMG_NAME> to start container <$CONTAINER_NAME>"

# Start the container
rocker ${ROCKER_ARGS} $IMG_NAME
docker run --rm -it --name $CONTAINER_NAME --network host \
-e DISPLAY -e TERM -e QT_X11_NO_MITSHM=1 $IMG_NAME
9 changes: 2 additions & 7 deletions space_robots/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@
# Requires:
# docker
# an X server
# rocker


ROCKER_ARGS="--devices /dev/dri/ --dev-helpers --x11 --user-override-name spaceros-user --network host"

IMG_NAME=openrobotics/space_robots_demo

# Replace `/` with `_` to comply with docker container naming
# And append `_runtime`
CONTAINER_NAME="$(tr '/' '_' <<< "$IMG_NAME")"
ROCKER_ARGS="${ROCKER_ARGS} --name $CONTAINER_NAME"
echo "Using image <$IMG_NAME> to start container <$CONTAINER_NAME>"

# Start the container
rocker ${ROCKER_ARGS} $IMG_NAME
docker run --rm -it --name $CONTAINER_NAME --network host \
-e DISPLAY -e TERM -e QT_X11_NO_MITSHM=1 $IMG_NAME
3 changes: 1 addition & 2 deletions spaceros/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Space ROS Docker Image and Earthly configuration

The Earthfile configuration in this directory facilitates builds of Space ROS from source code.
The generated container image is based on Ubuntu 22.04 (Jammy) and can be used with [`rocker`](https://github.com/osrf/rocker) to add X11 and GPU passthrough.
The generated container image is based on Ubuntu 22.04 (Jammy)

## Building the Docker Image

Expand Down Expand Up @@ -42,7 +42,6 @@ ubuntu jammy a8780b506fa4 5 days ago

The new image is named **osrf/space-ros:latest**.

The `rocker` library is required to run the built image, install it by `sudo apt-get install python3-rocker`.
There is a run.sh script provided for convenience that will run the spaceros image in a container.

```bash
Expand Down
10 changes: 2 additions & 8 deletions spaceros/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@
# Requires:
# docker
# an X server
# rocker


ROCKER_ARGS="--devices /dev/dri/ --dev-helpers --x11 --user-override-name spaceros-user --network host"

IMG_NAME=osrf/space-ros

# Replace `/` with `_` to comply with docker container naming
# And append `_runtime`
CONTAINER_NAME="$(tr '/' '_' <<< "$IMG_NAME")"
ROCKER_ARGS="${ROCKER_ARGS} --name $CONTAINER_NAME"
echo "Using image <$IMG_NAME> to start container <$CONTAINER_NAME>"

# Start the container
rocker ${ROCKER_ARGS} $IMG_NAME
docker run --rm -it --name $CONTAINER_NAME --network host \
-e DISPLAY -e TERM -e QT_X11_NO_MITSHM=1 $IMG_NAME

0 comments on commit abf6552

Please sign in to comment.