Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make IKOS available in the spaceros image (#99). #123

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion spaceros/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ setup:
ENV USERNAME spaceros-user
ENV HOME_DIR=/home/${USERNAME}
ENV SPACEROS_DIR=${HOME_DIR}/spaceros
ARG IKOS_DIR=${HOME_DIR}/ikos
ENV ROSDISTRO=humble

# Create a spaceros user
Expand Down Expand Up @@ -144,6 +143,28 @@ rosdep:
RUN sudo rosdep init && rosdep update
RUN rosdep install --from-paths src --ignore-src --rosdistro rolling -y --skip-keys "console_bridge fastcdr fastrtps rti-connext-dds-5.3.1 urdfdom_headers rmw_connextdds ros_testing rmw_connextdds rmw_fastrtps_cpp rmw_fastrtps_dynamic_cpp composition demo_nodes_py lifecycle rosidl_typesupport_fastrtps_cpp rosidl_typesupport_fastrtps_c ikos"

RUN sudo apt-get install --yes \
gcc g++ cmake libgmp-dev libboost-dev libboost-filesystem-dev \
libboost-thread-dev libboost-test-dev \
libsqlite3-dev libtbb-dev libz-dev libedit-dev \
python3 python3-pip python3-venv \
llvm-14 llvm-14-dev llvm-14-tools clang-14

WORKDIR $SPACEROS_DIR
RUN git clone -b v3.2 --depth 1 https://github.com/NASA-SW-VnV/ikos.git
ivanperez-keera marked this conversation as resolved.
Show resolved Hide resolved
WORKDIR $SPACEROS_DIR/ikos
RUN mkdir build
WORKDIR $SPACEROS_DIR/ikos/build
RUN cmake \
-DCMAKE_INSTALL_PREFIX="/opt/ikos" \
-DCMAKE_BUILD_TYPE="Debug" \
-DLLVM_CONFIG_EXECUTABLE="/usr/lib/llvm-14/bin/llvm-config" \
..
RUN make
RUN sudo make install
WORKDIR $SPACEROS_DIR
RUN sudo rm -rf ikos/

build:
FROM +rosdep
RUN colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON --no-warn-unused-cli
Expand Down
Loading