Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Patching Dockerfiles to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Nov 17, 2023
1 parent b792ad0 commit 24f3ade
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 42 deletions.
39 changes: 17 additions & 22 deletions docker/build-and-run/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
FROM docker.io/arm64v8/ros:humble-ros-base

WORKDIR /tmp
RUN git clone https://github.com/gsl-lite/gsl-lite && cd gsl-lite
RUN mkdir build && cd build
RUN cmake .. && make -j8
RUN sudo make install

RUN git clone https://github.com/catchorg/Catch2 && cd Catch2
RUN mkdir build && cd build
RUN cmake .. && make -j8
RUN sudo make install

RUN git clone https://github.com/fmtlib/fmt && cd fmt
RUN mkdir build && cd build
RUN cmake -DFMT_TEST=OFF ..
RUN make -j8
RUN sudo make install

RUN git clone https://github.com/mpusz/mp-units && cd mp-units
RUN mkdir build && cd build
RUN cmake -DMP_UNITS_AS_SYSTEM_HEADERS=ON -DMP_UNITS_BUILD_LA=OFF ..
RUN make -j8
RUN sudo make install

RUN git clone https://github.com/gsl-lite/gsl-lite && cd gsl-lite && \
mkdir build && cd build && \
cmake .. && make -j8 && \
sudo make install

RUN git clone https://github.com/catchorg/Catch2 && cd Catch2 && \
mkdir build && cd build && \
cmake .. && make -j8 && \
sudo make install

RUN git clone https://github.com/fmtlib/fmt && cd fmt && \
mkdir build && cd build && \
cmake -DFMT_TEST=OFF .. && \
make -j8 && \
sudo make install

RUN mkdir -p /tmp/colcon_ws/src
WORKDIR /tmp/colcon_ws/src
RUN git clone --recursive https://github.com/107-systems/viper

WORKDIR /tmp/colcon_ws
RUN . /opt/ros/humble/setup.sh && \
colcon_ws build --symlink-install
colcon build

COPY start.sh /
RUN chmod ugo+x /start.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/build-and-run/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
cd tmp/colcon_ws
cd /tmp/colcon_ws
. /opt/ros/humble/setup.sh
. install/setup.sh
ros2 launch viper viper-quad.py
33 changes: 14 additions & 19 deletions docker/devel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
FROM docker.io/arm64v8/ros:humble-ros-base

WORKDIR /tmp
RUN git clone https://github.com/gsl-lite/gsl-lite && cd gsl-lite
RUN mkdir build && cd build
RUN cmake .. && make -j8
RUN sudo make install

RUN git clone https://github.com/catchorg/Catch2 && cd Catch2
RUN mkdir build && cd build
RUN cmake .. && make -j8
RUN sudo make install
RUN git clone https://github.com/gsl-lite/gsl-lite && cd gsl-lite && \
mkdir build && cd build && \
cmake .. && make -j8 && \
sudo make install

RUN git clone https://github.com/fmtlib/fmt && cd fmt
RUN mkdir build && cd build
RUN cmake -DFMT_TEST=OFF ..
RUN make -j8
RUN sudo make install
RUN git clone https://github.com/catchorg/Catch2 && cd Catch2 && \
mkdir build && cd build && \
cmake .. && make -j8 && \
sudo make install

RUN git clone https://github.com/mpusz/mp-units && cd mp-units
RUN mkdir build && cd build
RUN cmake -DMP_UNITS_AS_SYSTEM_HEADERS=ON -DMP_UNITS_BUILD_LA=OFF ..
RUN make -j8
RUN sudo make install
RUN git clone https://github.com/fmtlib/fmt && cd fmt && \
mkdir build && cd build && \
cmake -DFMT_TEST=OFF .. && \
make -j8 && \
sudo make install

RUN mkdir -p /tmp/colcon_ws/src
WORKDIR /tmp/colcon_ws/src
RUN git clone --recursive https://github.com/107-systems/viper

WORKDIR /tmp/colcon_ws
RUN . /opt/ros/humble/setup.sh && \
colcon_ws build --symlink-install
colcon build

0 comments on commit 24f3ade

Please sign in to comment.