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

fix: Docker build error fix #57

Open
wants to merge 2 commits into
base: devel/2wheel_diff
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ $ cd ~/ros2_ws && colcon build --symlink-install --parallel-workers 8 && source
```bash
# in rdsim main directory
cd ~/ros2_ws/src/RDSim/docker && ./run_command.sh
# in docker container
cd ~/ros2_ws && colcon build --symlink-install --parallel-workers 8 && source install/local_setup.bash
```

## 2. Executing the RDSim with One Line
Expand Down
6 changes: 2 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
binutils \
mesa-utils \
x-window-system \
python3-pip \
python3-pip \
terminator \
gedit \
cmake \
Expand Down Expand Up @@ -88,7 +88,7 @@ RUN rosdep update

# GitHub 리포지토리 설치 스크립트 복사 및 실행
COPY install.sh /tmp/install.sh
RUN chmod +x /tmp/install.sh && /tmp/install.sh && rm /tmp/install.sh
RUN chmod +x /tmp/install.sh && /tmp/install.sh && rm /tmp/install.sh

# 컨테이너 외부와의 통신을 위한 포트 공개
# WebSocket server
Expand All @@ -97,5 +97,3 @@ EXPOSE 8080
EXPOSE 7681
# Gazebo master server
EXPOSE 11345


1 change: 0 additions & 1 deletion docker/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ sudo make install

cd ~/ros2_ws
rosdep install --ignore-src --rosdistro humble --from-paths ./src/RDSim/rdsim_submodules/navigation2 -y
colcon build --symlink-install && source install/local_setup.bash

4 changes: 2 additions & 2 deletions docker/run_command.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
docker build -t rdsim:v1.0 .
docker build --no-cache -t rdsim:v1.0 .

docker run -it \
--privileged \
Expand All @@ -12,4 +12,4 @@ docker run -it \
--gpus all \
--name rdsim \
--ipc=host \
rdsim:v1.0 bash
rdsim:v1.0 bash