Skip to content

Commit 0d3f6fe

Browse files
committed
Merge branch 'dev'
2 parents 47d74a9 + e3bd334 commit 0d3f6fe

7 files changed

Lines changed: 20 additions & 14 deletions

File tree

build_matrix_config/dev/.env.build_matrix.dev

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#NBS_MATRIX_ROS_DISTRO=('none')
1212
#NBS_MATRIX_ROS_PKG=('none')
1313

14-
#NBS_COMPOSE_DIR=dockerized-norlab-images/core-images/base-images/ros2-install
15-
##NBS_EXECUTE_BUILD_MATRIX_OVER_COMPOSE_FILE=${NBS_COMPOSE_DIR}/docker-compose.ros2.build.yaml
14+
NBS_COMPOSE_DIR=dockerized-norlab-images/core-images/base-images/ros2-install
15+
NBS_EXECUTE_BUILD_MATRIX_OVER_COMPOSE_FILE=${NBS_COMPOSE_DIR}/docker-compose.ros2.build.yaml
1616
#NBS_EXECUTE_BUILD_MATRIX_OVER_COMPOSE_FILE=${NBS_COMPOSE_DIR}/docker-compose.ros2-vaul.build.yaml
1717

1818
#NBS_COMPOSE_DIR=dockerized-norlab-images/core-images/dependencies
@@ -26,8 +26,8 @@
2626
#NBS_COMPOSE_DIR=dockerized-norlab-images/core-images/pkg-perception
2727
#NBS_EXECUTE_BUILD_MATRIX_OVER_COMPOSE_FILE=${NBS_COMPOSE_DIR}/docker-compose.dn-perception.build.yaml
2828

29-
NBS_COMPOSE_DIR=dockerized-norlab-images/core-images/dn-project
30-
NBS_EXECUTE_BUILD_MATRIX_OVER_COMPOSE_FILE=${NBS_COMPOSE_DIR}/docker-compose.dn-project.build.yaml
29+
#NBS_COMPOSE_DIR=dockerized-norlab-images/core-images/dn-project
30+
#NBS_EXECUTE_BUILD_MATRIX_OVER_COMPOSE_FILE=${NBS_COMPOSE_DIR}/docker-compose.dn-project.build.yaml
3131

3232
#
3333
# Build Dockerized-NorLab for the following base images

build_matrix_config/dev/.env.build_matrix.main.dev

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ NBS_MATRIX_ROS_DISTRO=('foxy')
5959

6060
NBS_MATRIX_ROS_PKG=()
6161
NBS_MATRIX_ROS_PKG+=('ros-core')
62-
#NBS_MATRIX_ROS_PKG+=('ros-base')
62+
NBS_MATRIX_ROS_PKG+=('ros-base')
63+
#NBS_MATRIX_ROS_PKG+=('desktop')
6364
#NBS_MATRIX_ROS_PKG+=('ros1-bridge')
6465

6566
#

dockerized-norlab-images/container-tools/dn_info.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ function dn::show_container_runtime_information() {
6565
n2st::set_which_python3_version
6666
DN_PYTHON3_VERSION=${PYTHON3_VERSION?err}
6767

68+
# (Priority) ToDo: replace `DN_IMAGE_ARCHITECTURE` by `DN_HOST` wich is declare in DN-project
69+
# and set in docker compose files
6870
n2st::set_which_architecture_and_os
6971
DN_IMAGE_ARCHITECTURE=${IMAGE_ARCH_AND_OS:?err}
7072

dockerized-norlab-images/core-images/base-images/ros2-install/Dockerfile.ros2

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ RUN echo "sourcing /opt/ros/${ROS_DISTRO}/setup.bash" \
207207
&& source /opt/ros/${ROS_DISTRO}/setup.bash \
208208
&& apt-get update --fix-missing \
209209
&& rosdep init \
210-
&& rosdep update
211-
212-
# && rosdep fix-permissions
210+
&& rosdep update --rosdistro "${ROS_DISTRO}" \
211+
&& rosdep fix-permissions \
212+
|| exit 1
213213

214214
RUN colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml \
215215
&& colcon mixin update \
@@ -226,7 +226,8 @@ RUN echo "sourcing /opt/ros/${ROS_DISTRO}/setup.bash" \
226226
--from-path ./src \
227227
--rosdistro ${ROS_DISTRO} \
228228
-y \
229-
&& colcon version-check
229+
&& colcon version-check \
230+
|| exit 1
230231

231232
ARG TARGETPLATFORM
232233
ARG BUILDPLATFORM
@@ -247,7 +248,8 @@ RUN COLCON_FLAGS=() \
247248
&& echo -e "COLCON_FLAGS=("${COLCON_FLAGS[*]}")" \
248249
&& echo "sourcing /opt/ros/${ROS_DISTRO}/setup.bash" \
249250
&& source /opt/ros/${ROS_DISTRO}/setup.bash \
250-
&& colcon build ${COLCON_FLAGS[@]}
251+
&& colcon build ${COLCON_FLAGS[@]} \
252+
|| exit 1
251253

252254
# ===Remove dustynv entrypoint from .bashrc. ======================================================
253255
# Note: Source ROS in the dn_entrypoint.init.bash instead"
@@ -276,7 +278,8 @@ RUN echo "sourcing /opt/ros/${ROS_DISTRO}/setup.bash" \
276278
&& echo COLCON_PREFIX_PATH=${COLCON_PREFIX_PATH:?'Build argument needs to be set and non-empty.'} \
277279
&& python -c "import rclpy" \
278280
&& ros2 pkg list \
279-
&& colcon --log-level error test-result --all --verbose
281+
&& colcon --log-level error test-result --all --verbose \
282+
|| exit 1
280283

281284
RUN if [[ ${ROS_PKG} =~ "desktop".* ]] && [[ -n $(pip list | grep cv2) ]]; then \
282285
python3 -c "import cv2; print( f'Opencv version: {cv2.__version__}' )" ; \

dockerized-norlab-images/core-images/dependencies/Dockerfile.ros2-dn-custom

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ RUN <<EOF
8080
# source ${DN_DEV_WORKSPACE}/install/setup.bash
8181

8282
apt-get update --fix-missing
83-
rosdep update --rosdistro ${ROS_DISTRO} --include-eol-distros
83+
rosdep update --rosdistro ${ROS_DISTRO}
8484
rosdep fix-permissions
8585
rosdep install \
8686
--ignore-packages-from-source \

dockerized-norlab-images/core-images/dn-project/project-deploy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ EOF
9696
# ....Project spoecific ROS setup..................................................................
9797
WORKDIR ${DN_DEV_WORKSPACE}
9898
RUN <<EOF
99-
rosdep update --rosdistro ${ROS_DISTRO} --include-eol-distros
99+
rosdep update --rosdistro ${ROS_DISTRO}
100100
rosdep fix-permissions
101101
rosdep install \
102102
--ignore-packages-from-source \

dockerized-norlab-images/core-images/pkg-perception/dn-perception-norlab-stack/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ RUN echo "sourcing /opt/ros/${ROS_DISTRO}/setup.bash" \
6868
&& echo "sourcing ${DN_DEV_WORKSPACE}/install/setup.bash" \
6969
&& source ${DN_DEV_WORKSPACE}/install/setup.bash \
7070
&& apt-get update --fix-missing \
71-
&& rosdep update --rosdistro ${ROS_DISTRO} --include-eol-distros \
71+
&& rosdep update --rosdistro ${ROS_DISTRO} \
7272
&& rosdep fix-permissions \
7373
&& rosdep install \
7474
--ignore-packages-from-source \

0 commit comments

Comments
 (0)