Skip to content

Commit

Permalink
Check to see if image already exists rather than running build_image …
Browse files Browse the repository at this point in the history
…EVERY time (#316)
  • Loading branch information
BergerKing333 authored Nov 8, 2024
1 parent fe57953 commit f3b1faa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/enter_isaac_ros_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ printf 'CONFIG_DOCKER_SEARCH_DIRS="$HOME/Lunabotics/src/isaac_ros/isaac_ros_comm
image_key="ros2_humble.realsense.deepstream.user.zed.umn.gazebo"
docker_arg="-v /usr/local/zed/resources:/usr/local/zed/resources -v $HOME/rosbags:/rosbags -v /usr/local/zed/settings:/usr/local/zed/settings"

bash ~/Lunabotics/scripts/build_image.sh
if docker images | grep -q "${image_key}"; then
echo "Image ${image_key} already exists"
else
echo "Building image ${image_key}"
bash ~/Lunabotics/scripts/build_image.sh
fi

bash ~/Lunabotics/src/isaac_ros/isaac_ros_common/scripts/run_dev.sh -d ~/Lunabotics -i "${image_key}" -a "${docker_arg}" -v -b

0 comments on commit f3b1faa

Please sign in to comment.