Skip to content

Commit

Permalink
use noetic rosconsole in 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Feb 20, 2022
1 parent 8012eae commit d77b0dd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ubuntu_20_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
- name: local git dependencies
run: |
cd staging
../ros_from_src/git_clone.sh
# override rosconsole in 20.04 for log4cxx compatibility
ROSCONSOLE=https://github.com/ros/rosconsole ../ros_from_src/git_clone.sh
- name: local build
run: |
Expand All @@ -34,7 +35,7 @@ jobs:
- name: docker build 20.04
run: |
cd ros_from_src
docker build --build-arg IMAGE=ubuntu:20.04 --build-arg PYTHON_MINOR_VERSION=8 . -t ros2004
docker build --build-arg IMAGE=ubuntu:20.04 --build-arg ROSCONSOLE=https://github.com/ros/rosconsole --build-arg PYTHON_MINOR_VERSION=8 . -t ros2004
- name: docker build 22.04
run: |
Expand Down
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ RUN cmake $SRC/ros/core/rosbuild -DCATKIN_BUILD_BINARY_PACKAGE=ON -DCMAKE_INSTAL
RUN make
RUN make install

RUN apt-get update
RUN apt-get install -y python3-dateutil
RUN apt-get install -y python3-docutils
RUN export PATH=$PATH:/usr/local/bin
Expand All @@ -188,9 +189,15 @@ RUN git clone https://github.com/ros/genlisp
RUN git clone https://github.com/ros/genpy
RUN git clone https://github.com/ros/std_msgs
RUN git clone https://github.com/ros/message_runtime
RUN git clone https://github.com/ros-o/rosconsole
RUN git clone https://github.com/ros-o/pluginlib

# TODO(lucasw) this doesn't work in 20.04 because of log
# --build-args ROSCONSOLE=https://github.com/ros-o/rosconsole
ARG ROSCONSOLE=https://github.com/ros-o/rosconsole
# ENV ROSCONSOLE=$ROSCONSOLE
RUN echo $ROSCONSOLE
RUN git clone $ROSCONSOLE

# runtime dependencies
# rosbuild
WORKDIR $SRC
Expand All @@ -204,6 +211,7 @@ WORKDIR $SRC/rosdistro
RUN python3 setup.py install --prefix=$DEST --record install_manifest.txt --single-version-externally-managed

WORKDIR $SRC
# can be sudo in docker, but otherwise want git clone https://github.com/lucasw/rosdep --branch disable_root_etc_ros
RUN git clone https://github.com/ros-infrastructure/rosdep
WORKDIR $SRC/rosdep
RUN python3 setup.py install --prefix=$DEST --record install_manifest.txt --single-version-externally-managed
Expand Down
4 changes: 3 additions & 1 deletion git_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ git clone https://github.com/ros/genlisp
git clone https://github.com/ros/genpy
git clone https://github.com/ros/std_msgs
git clone https://github.com/ros/message_runtime
git clone https://github.com/ros-o/rosconsole
git clone https://github.com/ros-o/pluginlib

ROSCONSOLE1=${ROSCONSOLE:-https://github.com/ros-o/rosconsole}
git clone $ROSCONSOLE1

# pure python
cd $SRC
git clone https://github.com/ros-infrastructure/catkin_pkg
Expand Down

0 comments on commit d77b0dd

Please sign in to comment.