Skip to content
Open
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
19 changes: 9 additions & 10 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,18 @@ RUN apt install -y wget \
&& apt install -y libqt-advanced-docking-system-dev \
; fi

# Install the dependency repositories
# Use a tmpfs mount for the workspace so as not to unnecessarily copy files into the final image
# Bind mount the source directory so as not to unnecessarily copy source code into the docker image
ARG WORKSPACE_DIR=/opt/tesseract_qt
RUN --mount=type=bind,target=${WORKSPACE_DIR}/src/tesseract_qt \
ARG WORKSPACE_DIR=/tmpfs/tesseract_qt
ARG INSTALL_DIR=/opt/tesseract_qt
RUN mkdir -p ${INSTALL_DIR}

RUN --mount=type=tmpfs,target=${WORKSPACE_DIR} --mount=type=bind,target=${WORKSPACE_DIR}/src/tesseract_qt \
cd ${WORKSPACE_DIR} \
&& rosdep install \
--from-paths ${WORKSPACE_DIR}/src \
-iry

# Build the repository
# Bind mount the source directory so as not to unnecessarily copy source code into the docker image
RUN --mount=type=bind,target=${WORKSPACE_DIR}/src/tesseract_qt \
source /opt/tesseract/install/setup.bash \
-iry \
&& source /opt/tesseract_planning/install/setup.bash \
&& cd ${WORKSPACE_DIR} \
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release -DBUILD_RENDERING=OFF -DBUILD_STUDIO=OFF \
&& rm -rf build log
&& cp -r ${WORKSPACE_DIR}/install ${INSTALL_DIR}
Loading