Skip to content

Commit f342386

Browse files
[fix] Fix 'ros_entrypoint.sh'
1 parent ef281f4 commit f342386

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

docker-compose.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "2.3"
22
services:
33
pytorch-train:
44
container_name: pytorch-train
5-
image: aisl/pytorch:latest
5+
image: aisl/pytorch-enet:latest
66
runtime: nvidia
77
build: .
88
command: >
@@ -19,7 +19,7 @@ services:
1919

2020
tensorboard:
2121
container_name: tensorboard
22-
image: aisl/pytorch:latest
22+
image: aisl/pytorch-enet:latest
2323
command: tensorboard --logdir /root/PyTorch-ENet/runs
2424
build: .
2525
ports:
@@ -41,7 +41,7 @@ services:
4141
- master
4242
build: .
4343
runtime: nvidia
44-
image: aisl/pytorch:latest
44+
image: aisl/pytorch-enet:latest
4545
command: roslaunch pytorch_enet_ros pytorch_enet_ros.launch
4646
environment:
4747
- ROS_MASTER_URI=http://pytorch-ros-master:11311
@@ -55,12 +55,10 @@ services:
5555

5656
catkin-build:
5757
container_name: catkin-build
58-
depends_on:
59-
- master
6058
build: .
6159
runtime: nvidia
62-
image: aisl/pytorch:latest
63-
entrypoint: bash -c "cd /root/catkin_ws && catkin build"
60+
image: aisl/pytorch-enet:latest
61+
command: bash -c "cd /root/catkin_ws && catkin build"
6462
environment:
6563
- ROS_MASTER_URI=http://pytorch-ros-master:11311
6664
volumes:

ros_entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ set -e
44
g_setup=/opt/ros/$ROS_DISTRO/setup.bash
55
l_setup=/root/catkin_ws/devel/setup.bash
66

7-
if [ ! -f $g_setup ]; then
7+
if [ -f $g_setup ]; then
88
source $g_setup
99
else
1010
echo "$g_setup not found"
1111
fi
1212

13-
if [ ! -f $l_setup ]; then
13+
if [ -f $l_setup ]; then
1414
source $l_setup
1515
else
1616
echo "$l_setup not found"

0 commit comments

Comments
 (0)