-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9365342
commit f18daa7
Showing
3 changed files
with
60 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
ARG ROS_DISTRO="humble" | ||
|
||
FROM --platform=${BUILDPLATFORM} impactaky/mc-ubuntu22.04-${TARGETARCH}-host:2.0.1 AS mimic-host | ||
Check warning on line 3 in Dockerfile.arm64 GitHub Actions / spell-check
Check warning on line 3 in Dockerfile.arm64 GitHub Actions / spell-check
|
||
FROM ros:${ROS_DISTRO} as build-stage | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV DEBCONF_NOWARNINGS=yes | ||
|
||
COPY --from=mimic-host / /mimic-cross | ||
RUN /mimic-cross/mimic-cross.deno/setup.sh | ||
|
||
RUN sudo apt-get update && sudo apt-get -y install python3-pip python3-rospkg python3-rosdep software-properties-common ccache | ||
# cspell: ignore kisak | ||
RUN add-apt-repository ppa:kisak/kisak-mesa -y | ||
RUN apt-get update && apt-get install libegl-mesa0 -y | ||
|
||
WORKDIR /home/ubuntu/Desktop/scenario_simulator_ws/src/scenario_simulator | ||
COPY . $WORKDIR | ||
|
||
WORKDIR /home/ubuntu/Desktop/scenario_simulator_ws/ | ||
RUN mkdir -p /home/ubuntu/Desktop/scenario_simulator_ws/src/scenario_simulator/external | ||
WORKDIR /home/ubuntu/Desktop/scenario_simulator_ws/src/scenario_simulator | ||
RUN vcs import external < dependency_${ROS_DISTRO}.repos | ||
WORKDIR /home/ubuntu/Desktop/scenario_simulator_ws/src | ||
RUN source /opt/ros/${ROS_DISTRO}/setup.bash && rosdep install -iy --from-paths . --rosdistro ${ROS_DISTRO} | ||
|
||
WORKDIR /home/ubuntu/Desktop/scenario_simulator_ws | ||
|
||
ENV CC="/usr/lib/ccache/gcc" | ||
ENV CXX="/usr/lib/ccache/g++" | ||
ENV CCACHE_DIR="/ccache" | ||
RUN --mount=type=cache,target=/ccache source /opt/ros/${ROS_DISTRO}/setup.bash && \ | ||
colcon build --symlink-install \ | ||
--cmake-args \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=ccache \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | ||
-DBUILD_CPP_MOCK_SCENARIOS=ON | ||
COPY ./docker-entrypoint.sh / | ||
RUN chmod a+x /docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters