forked from micro-ROS/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM ros:foxy | ||
|
||
RUN mkdir -p uros_ws | ||
WORKDIR uros_ws | ||
RUN git clone https://github.com/micro-ROS/micro-ros-build.git src/micro-ros-build \ | ||
&& . /opt/ros/$ROS_DISTRO/setup.sh \ | ||
&& apt update \ | ||
&& apt install -y python3-pip wget\ | ||
&& apt install -y python3-pip clang-format pyflakes3 python3-mypy python3-pytest-mock gperf ros-foxy-osrf-testing-tools-cpp python3-lttng ros-foxy-mimick-vendor ros-foxy-rmw-cyclonedds-cpp python3-babeltrace \ | ||
&& rosdep update \ | ||
&& rosdep install --from-paths src --ignore-src -y \ | ||
&& colcon build \ | ||
&& . install/local_setup.sh \ | ||
&& rm -rf log/ build/ src/* \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& wget https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q2-update/+download/gcc-arm-none-eabi-5_4-2016q2-20160622-linux.tar.bz2 \ | ||
&& tar -xvf gcc-arm-none-eabi-5_4-2016q2-20160622-linux.tar.bz2 \ | ||
&& rm -rf gcc-arm-none-eabi-5_4-2016q2-20160622-linux.tar.bz2 gcc-arm-none-eabi-5_4-2016q2/share/doc \ | ||
&& wget https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2 \ | ||
&& tar -xvf gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2 \ | ||
&& rm -rf gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2 gcc-arm-none-eabi-5_4-2016q3/share/doc \ | ||
&& wget https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q1-update/+download/gcc-arm-none-eabi-4_8-2014q1-20140314-linux.tar.bz2 \ | ||
&& tar -xvf gcc-arm-none-eabi-4_8-2014q1-20140314-linux.tar.bz2 \ | ||
&& rm -rf gcc-arm-none-eabi-4_8-2014q1-20140314-linux.tar.bz2 gcc-arm-none-eabi-4_8-2014q1/share/doc \ | ||
&& wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2017q4/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2 \ | ||
&& tar -xvf gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2 \ | ||
&& rm -rf gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2 gcc-arm-none-eabi-7-2017-q4-major/share/doc | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
|
||
ENTRYPOINT ["/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
exec /project/extras/library_generation/library_generation.sh "$@" |