Skip to content

Commit 27e45f7

Browse files
committed
Merge pull request #168 from red-hat-data-services/konflux-debug
Apply Adam's Workaround
1 parent d0b357d commit 27e45f7

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Dockerfile.konflux

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,6 @@ COPY *\.bzl /ovms/
258258
COPY yarn.lock /ovms/
259259
COPY package.json /ovms/
260260

261-
# prebuild dependencies before copying sources
262-
RUN bazel build --jobs=$JOBS ${debug_bazel_flags} //:ovms_dependencies @com_google_googletest//:gtest
263-
264261
# hadolint ignore=DL3059
265262
RUN cp -v /etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt
266263

@@ -287,15 +284,12 @@ RUN bash -c "sed -i -e 's|REPLACE_PROJECT_VERSION|${PROJECT_VERSION}|g' /ovms/sr
287284
if [ "$ov_use_binary" == "0" ] ; then sed -i -e "s#REPLACE_OPENVINO_NAME#$(git --git-dir /openvino/.git log -n 1 | head -n 1 | cut -d' ' -f2 | head -c 12)#g" /ovms/src/version.hpp ; fi && \
288285
bash -c "sed -i -e 's|REPLACE_BAZEL_BUILD_FLAGS|${debug_bazel_flags}${minitrace_flags}|g' /ovms/src/version.hpp"
289286

290-
# Custom Nodes
291-
RUN bazel build --jobs=$JOBS ${debug_bazel_flags} //src:release_custom_nodes
292287

293288
# OVMS
294289
ARG OPTIMIZE_BUILDING_TESTS=0
295-
# Builds unit tests together with ovms server in one step
296-
# It speeds up CI when tests are executed outside of the image building
297-
# hadolint ignore=SC2046
298-
RUN bazel build --jobs=$JOBS ${debug_bazel_flags} ${minitrace_flags} //src:ovms $(if [ "$OPTIMIZE_BUILDING_TESTS" == "1" ] ; then echo -n //src:ovms_test; fi)
290+
RUN bazel build --jobs=$JOBS ${debug_bazel_flags} //:ovms_dependencies @com_google_googletest//:gtest && \
291+
bazel build --jobs=$JOBS ${debug_bazel_flags} //src:release_custom_nodes && \
292+
bazel build --jobs=$JOBS ${debug_bazel_flags} ${minitrace_flags} //src:ovms $(if [ "$OPTIMIZE_BUILDING_TESTS" == "1" ] ; then echo -n //src:ovms_test; fi)
299293

300294
# Tests execution
301295
COPY ci/check_coverage.bat /ovms/

0 commit comments

Comments
 (0)