diff --git a/Dockerfile.ros.galactic b/Dockerfile.ros.galactic index e7c38030d..54c2eaed3 100644 --- a/Dockerfile.ros.galactic +++ b/Dockerfile.ros.galactic @@ -32,6 +32,7 @@ RUN apt-get update && \ gnupg2 \ lsb-release \ ca-certificates \ + python3-pip \ && rm -rf /var/lib/apt/lists/* \ && apt-get clean @@ -39,6 +40,35 @@ RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null +# +# upgrade cmake - https://stackoverflow.com/a/56690743 +# this is needed to build some of the ROS2 packages +# +#RUN apt-get update && \ +# apt-get install -y --no-install-recommends \ +# software-properties-common \ +# apt-transport-https \ +# ca-certificates \ +# gnupg \ +# lsb-release \ +# && rm -rf /var/lib/apt/lists/* \ +# && apt-get clean + +#RUN wget -qO - https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - && \ +# apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" && \ +# apt-get update && \ +# apt-get install -y --no-install-recommends --only-upgrade \ +# cmake \ +# && rm -rf /var/lib/apt/lists/* \ +# && apt-get clean + +# workaround for https://github.com/dusty-nv/jetson-containers/issues/181 +RUN apt purge -y cmake && \ + pip3 install cmake==3.23.3 --upgrade --verbose + +RUN cmake --version + + # # install development packages # @@ -103,30 +133,6 @@ RUN apt-get purge -y '*opencv*' || echo "previous OpenCV installation not found" cp -r /usr/lib/python${PYTHON3_VERSION}/dist-packages/cv2 /usr/local/lib/python${PYTHON3_VERSION}/dist-packages/cv2 -# -# upgrade cmake - https://stackoverflow.com/a/56690743 -# this is needed to build some of the ROS2 packages -# -RUN apt-get update && \ - apt-get install -y --no-install-recommends \ - software-properties-common \ - apt-transport-https \ - ca-certificates \ - gnupg \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN wget -qO - https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - && \ - apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" && \ - apt-get update && \ - apt-get install -y --no-install-recommends --only-upgrade \ - cmake \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -RUN cmake --version - - # # download/build ROS from source #