Skip to content

Commit 6dc7eeb

Browse files
correct
1 parent 64ec83d commit 6dc7eeb

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

Dockerfile.redhat

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -339,14 +339,13 @@ ARG JOBS=16
339339
#RUN bazel build --jobs $JOBS ${CAPI_FLAGS} //src:ovms_shared
340340

341341
RUN mkdir -p /tmp/bazel-output && \
342-
bash -c '\
343-
set -euo pipefail && \
344-
bazel --output_base=/tmp/bazel-output \
345-
build --jobs=$JOBS ${CAPI_FLAGS} //src:ovms_shared && \
346-
LIB_PATH=$(find /tmp/bazel-output -name libovms_shared.so | head -n1) && \
347-
echo "Found built file: $LIB_PATH" && \
348-
mkdir -p /ovms_release/lib && \
349-
cp -v "$LIB_PATH" /ovms_release/lib/'
342+
bazel --output_base=/tmp/bazel-output \
343+
build --jobs=$JOBS ${CAPI_FLAGS} //src:ovms_shared && \
344+
find /tmp/bazel-output -name libovms_shared.so && \
345+
LIB_PATH=$(find /tmp/bazel-output -name libovms_shared.so | head -n1) && \
346+
echo "Found built file: $LIB_PATH" && \
347+
mkdir -p /ovms_release/lib && \
348+
cp -v "$LIB_PATH" /ovms_release/lib/
350349

351350

352351
# C api app with bazel
@@ -365,14 +364,12 @@ RUN bazel build --jobs=$JOBS ${CAPI_FLAGS} //src:capi_benchmark && \
365364

366365

367366
RUN mkdir -p /tmp/bazel-output && \
368-
bash -c '\
369-
set -euo pipefail && \
370-
bazel --output_base=/tmp/bazel-output \
371-
build --jobs=$JOBS ${CAPI_FLAGS} //src:capi_benchmark && \
372-
CAPI_BIN=$(find /tmp/bazel-output -type f -name capi_benchmark | head -n1) && \
373-
echo "Found built capi_benchmark: $CAPI_BIN" && \
374-
chmod +x "$CAPI_BIN" && \
375-
"$CAPI_BIN" --niter 2 --nstreams 1 --servable_name "dummy"'
367+
bazel --output_base=/tmp/bazel-output \
368+
build --jobs=$JOBS ${CAPI_FLAGS} //src:capi_benchmark && \
369+
CAPI_BIN=$(find /tmp/bazel-output -type f -name capi_benchmark | head -n1) && \
370+
echo "Found built capi_benchmark: $CAPI_BIN" && \
371+
chmod +x "$CAPI_BIN" && \
372+
"$CAPI_BIN" --niter 2 --nstreams 1 --servable_name "dummy"
376373

377374

378375
# C-api C/C++ app with gcc

0 commit comments

Comments
 (0)