Skip to content

Commit

Permalink
to: Dockerfile build test
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros committed Mar 30, 2024
1 parent 62eade1 commit d23b242
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 38 deletions.
39 changes: 1 addition & 38 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,44 +1,7 @@
FROM ros:humble-ros-base-jammy


RUN sudo apt update && apt install python3-pip -y && echo "" >> /root/.bashrc && pip3 install -U PlatformIO \
&& pio pkg install --global --platform "platformio/espressif32" \
&& pio pkg install --global --tool "platformio/contrib-piohome" \
&& pio pkg install --global --tool "platformio/framework-arduinoespressif32" \
&& pio pkg install --global --tool "platformio/tool-scons" \
&& pio pkg install --global --tool "platformio/tool-mkfatfs" \
&& pio pkg install --global --tool "platformio/tool-mkspiffs" \
&& pio pkg install --global --tool "platformio/tool-mklittlefs"

RUN sudo apt update && apt install ros-humble-ros-base -y

RUN sudo apt update && sudo apt install -y \
build-essential \
cmake \
git \
python3-colcon-common-extensions \
python3-flake8 \
python3-flake8-docstrings \
python3-pip \
python3-pytest \
python3-pytest-cov \
python3-rosdep \
python3-setuptools \
python3-vcstool \
wget \
libacl1-dev


RUN sudo apt install -y \
python3-flake8-blind-except \
python3-flake8-builtins \
python3-flake8-class-newline \
python3-flake8-comprehensions \
python3-flake8-deprecated \
python3-flake8-import-order \
python3-flake8-quotes \
python3-pytest-repeat \
python3-pytest-rerunfailures
RUN sudo apt update && apt install python3-pip python3-penv -y && echo "" >> /root/.bashrc && pip3 install -U PlatformIO

RUN echo "" >> /root/.bashrc && echo "source /opt/ros/humble/setup.bash" >> /root/.bashrc

Expand Down
1 change: 1 addition & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source /opt/ros/humble/setup.bash
link -s /opt/ros/humble/setup.bash /github/home/.platformio/penv/bin/activate
pio run
rm -rf .pio/libdeps/featheresp32/micro_ros_platformio
pio run

0 comments on commit d23b242

Please sign in to comment.