Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Suyannesara committed Jun 10, 2024
0 parents commit b319f09
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM osrf/ros:noetic-desktop-full

COPY ./entrypoint.sh ./
RUN chmod +x ./entrypoint.sh

ENTRYPOINT ["./entrypoint.sh"]
CMD ["bash"]
18 changes: 18 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

services:
ros-master:
image: ros-noetic-master
container_name: ros-noetic-master
build:
context: .
dockerfile: Dockerfile
stdin_open: true
tty: true
network_mode: "host"
# command: bash -c "source /opt/ros/noetic/setup.bash && roscore"
environment:
- DISPLAY=:0
- LIBGL_ALWAYS_SOFTWARE=1
- QT_X11_NO_MITSHM=1
volumes:
- "/tmp/.X11-unix:/tmp/.X11-unix:rw"
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

# setup ros2 environment
source "/opt/ros/noetic/setup.bash" --
exec "$@"

0 comments on commit b319f09

Please sign in to comment.