Skip to content

Commit

Permalink
Merge pull request #58 from alexbuyval/fix_space_robots_docker
Browse files Browse the repository at this point in the history
Fix the space_robots docker building
  • Loading branch information
mkhansenbot authored Aug 16, 2023
2 parents 23bba06 + 0d923af commit 8ebdb35
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 11 additions & 1 deletion space_robots/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,20 @@ RUN sudo apt-get update -y && sudo apt-get install -y python3-rosinstall-generat
RUN mkdir -p ${DEMO_DIR}/src
WORKDIR ${DEMO_DIR}


# Install libmongoc for development
RUN sudo apt install libmongoc-dev -y

# Compile mongo cxx driver https://mongocxx.org/mongocxx-v3/installation/linux/
RUN sudo apt install libssl-dev build-essential devscripts debian-keyring fakeroot debhelper cmake libboost-dev libsasl2-dev libicu-dev libzstd-dev doxygen -y
RUN wget https://github.com/mongodb/mongo-cxx-driver/releases/download/r3.6.7/mongo-cxx-driver-r3.6.7.tar.gz
RUN tar -xzf mongo-cxx-driver-r3.6.7.tar.gz
RUN cd mongo-cxx-driver-r3.6.7/build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local && sudo cmake --build . --target EP_mnmlstc_core && cmake --build . && sudo cmake --build . --target install

# Get the source for the dependencies
# RUN vcs import src < /tmp/demo_generated_pkgs.repos
COPY --chown=${USERNAME}:${USERNAME} demo_manual_pkgs.repos /tmp/
RUN vcs import src < /tmp/demo_manual_pkgs.repos
RUN vcs import src < /tmp/demo_manual_pkgs.repos && /bin/bash -c 'source "${SPACEROS_DIR}/install/setup.bash"'

RUN sudo apt-get update -y \
&& /bin/bash -c 'source "${SPACEROS_DIR}/install/setup.bash"' \
Expand Down
9 changes: 9 additions & 0 deletions space_robots/demo_manual_pkgs.repos
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ repositories:
type: git
url: https://github.com/tonylitianyu/ros2_controllers.git
version: effort_group_position_controller_2
actuator_msgs:
type: git
url: https://github.com/rudislabs/actuator_msgs.git
version: main
ros_gz:
type: git
url: https://github.com/gazebosim/ros_gz.git
Expand All @@ -23,3 +27,8 @@ repositories:
type: git
url: https://github.com/space-ros/simulation.git
version: main
ros-humble-warehouse-ros-mongo:
type: git
url: https://github.com/ros-planning/warehouse_ros_mongo.git
version: ros2

0 comments on commit 8ebdb35

Please sign in to comment.