Skip to content

Commit

Permalink
Replace mongodb dependency with manual install
Browse files Browse the repository at this point in the history
The package "mongodb" (version 3.6) is not released anymore - since Ubuntu Jammy.
Instead, install from a proprietary package repository following the official instructions:
https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu

Unfortunately, installable versions 6.0 and 7.0 of mongodb are not compatible
with the still released C++ driver package "libmongoclient-dev".
  • Loading branch information
rhaschke committed Aug 28, 2024
1 parent 45e3906 commit 32f8fc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/industrial_ci_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
- {ROS_DISTRO: iron, ROS_REPO: main, CCOV_UPLOAD: false}
- {ROS_DISTRO: humble, ROS_REPO: main, CCOV_UPLOAD: false}
env:
BEFORE_BUILD_TARGET_WORKSPACE: |
# https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu
ici_apt_install gnupg curl
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg -o /usr/share/keyrings/mongodb-server.gpg --dearmor
echo "deb [ arch=amd64 signed-by=/usr/share/keyrings/mongodb-server.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org.list
ici_cmd ici_asroot apt-get update -qq
ici_apt_install mongodb-org
UPSTREAM_WORKSPACE: warehouse_ros_mongo.repos
CCACHE_DIR: /home/runner/.ccache
BASEDIR: .base
Expand Down
3 changes: 1 addition & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

<build_depend>libmongoclient-dev</build_depend>

<depend>mongodb</depend>
<depend>warehouse_ros</depend>
<depend>rclcpp</depend>
<depend>std_msgs</depend>
Expand All @@ -27,7 +26,7 @@
<test_depend>launch_ros</test_depend>
<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_index_cpp</test_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_cmake_copyright</test_depend>

Expand Down

0 comments on commit 32f8fc5

Please sign in to comment.