Skip to content
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
5 changes: 4 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG BASE_IMAGE=lcas.lincoln.ac.uk/lcas/limo_platform:2

FROM ${BASE_IMAGE} as base

Check warning on line 3 in .devcontainer/Dockerfile

View workflow job for this annotation

GitHub Actions / build-docker-image

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 3 in .devcontainer/Dockerfile

View workflow job for this annotation

GitHub Actions / build-docker-image

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

# making the standard global variables available for target-specific builds
ARG TARGETARCH
Expand All @@ -8,7 +8,7 @@
USER root

# get the source tree and analyse it for its package.xml only
FROM base as sourcefilter

Check warning on line 11 in .devcontainer/Dockerfile

View workflow job for this annotation

GitHub Actions / build-docker-image

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 11 in .devcontainer/Dockerfile

View workflow job for this annotation

GitHub Actions / build-docker-image

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
RUN mkdir -p /tmp/src/
COPY ./src/*/package.xml /tmp/src/_workspace/src/_pkgs_xmls
COPY ./src/*/*/package.xml /tmp/src/_workspace/src/_pkgs_xmls
Expand All @@ -19,14 +19,17 @@
RUN find /tmp/src -type f \! -name "package.xml" -print | xargs rm -rf

# install all dependencies listed in the package.xml
FROM base as devcontainer

Check warning on line 22 in .devcontainer/Dockerfile

View workflow job for this annotation

GitHub Actions / build-docker-image

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 22 in .devcontainer/Dockerfile

View workflow job for this annotation

GitHub Actions / build-docker-image

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
# copy the reduced source tree (only package.xml) from previous stage
COPY --from=sourcefilter /tmp/src /tmp/src
RUN rosdep update --rosdistro=${ROS_DISTRO} && apt-get update
RUN . /opt/ros/lcas/install/setup.sh && rosdep install --from-paths /tmp/src --ignore-src -y && rm -rf /tmp/src && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/src
RUN apt-get update && \
. /opt/ros/lcas/install/setup.sh && rosdep install --from-paths /tmp/src --ignore-src -y && \
apt-get install -y ros-${ROS_DISTRO}-rqt-reconfigure && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/src


FROM devcontainer as compiled

Check warning on line 32 in .devcontainer/Dockerfile

View workflow job for this annotation

GitHub Actions / build-docker-image

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 32 in .devcontainer/Dockerfile

View workflow job for this annotation

GitHub Actions / build-docker-image

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

COPY ./src /opt/ros/lcas/src/workspace/src
RUN . /opt/ros/lcas/install/setup.sh && \
Expand Down