From 00deb09ff8ab9ac4eb342b20435fb3e1e35fa58c Mon Sep 17 00:00:00 2001 From: Bad Chicken <103160002+lamecube@users.noreply.github.com> Date: Thu, 9 Mar 2023 09:35:29 -0800 Subject: [PATCH] fixed ros2 not found Basically, need to declare the shell that ros2 is registered to use. --- micro-ROS-demos/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/micro-ROS-demos/Dockerfile b/micro-ROS-demos/Dockerfile index e15f347..6ea69a4 100644 --- a/micro-ROS-demos/Dockerfile +++ b/micro-ROS-demos/Dockerfile @@ -1,5 +1,7 @@ FROM microros/base:humble +SHELL ["/bin/bash", "-c"] + WORKDIR /uros_ws RUN apt update \ @@ -13,4 +15,4 @@ RUN . /opt/ros/$ROS_DISTRO/setup.sh \ # setup entrypoint COPY ./micro-ros_entrypoint.sh / -ENTRYPOINT ["/bin/sh", "/micro-ros_entrypoint.sh"] +ENTRYPOINT "/micro-ros_entrypoint.sh"