Skip to content

Commit c7a7f9d

Browse files
committed
Merge remote-tracking branch 'origin/candidate-9.8.x' into candidate-9.10.x
Signed-off-by: Gordon Smith <[email protected]> # Conflicts: # helm/hpcc/Chart.yaml # helm/hpcc/templates/_helpers.tpl # version.cmake
2 parents ac45750 + 06662cf commit c7a7f9d

File tree

12 files changed

+1611
-887
lines changed

12 files changed

+1611
-887
lines changed

dockerfiles/image.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ finalize_platform_core_image() {
123123
fi
124124

125125
docker tag hpccsystems/platform-core:$GIT_BRANCH-$MODE-$crc incr-core:$MODE
126+
127+
# Create additional name tag if specified
128+
if [ -n "$NAME_TAG" ]; then
129+
echo "--- Creating additional tag: $NAME_TAG ---"
130+
docker tag hpccsystems/platform-core:$GIT_BRANCH-$MODE-$crc hpccsystems/platform-core:$NAME_TAG
131+
fi
126132
}
127133

128134
finalize_platform_core_image_from_folder() {
@@ -143,6 +149,13 @@ finalize_platform_core_image_from_folder() {
143149
docker commit $CONTAINER hpccsystems/platform-core:build
144150
echo "--- Remove '$CONTAINER' container ---"
145151
docker rm -f $CONTAINER
152+
153+
# Create additional name tag if specified
154+
if [ -n "$NAME_TAG" ]; then
155+
echo "--- Creating additional tag: $NAME_TAG ---"
156+
docker tag hpccsystems/platform-core:build hpccsystems/platform-core:$NAME_TAG
157+
fi
158+
146159
echo "docker run --entrypoint /bin/bash -it platform-core:build"
147160
echo "platform-core:build"
148161
}
@@ -168,6 +181,12 @@ finalize_platform_core_image_from_deb() {
168181
docker exec --user root $CONTAINER /bin/bash -c "eclcc -pch"
169182
docker commit $CONTAINER hpccsystems/platform-core:$filename
170183
docker rm -f $CONTAINER
184+
185+
# Create additional name tag if specified
186+
if [ -n "$NAME_TAG" ]; then
187+
echo "--- Creating additional tag: $NAME_TAG ---"
188+
docker tag hpccsystems/platform-core:$filename hpccsystems/platform-core:$NAME_TAG
189+
fi
171190
}
172191

173192
clean() {
@@ -389,6 +408,7 @@ status() {
389408
echo "RELEASE_BASE_IMAGE: $RELEASE_BASE_IMAGE"
390409
echo "HPCC_BUILD: $HPCC_BUILD"
391410
echo "ARCH: $ARCH"
411+
echo "NAME_TAG: $NAME_TAG"
392412
}
393413

394414
# Print usage information
@@ -406,6 +426,7 @@ usage() {
406426
echo " will preserve build state per branch"
407427
echo " -r, --reconfigure reconfigure CMake before building"
408428
echo " -a, --architecture override default architecture (x64 or arm64)"
429+
echo " -n, --name-tag create an additional tag with the specified name for the final image"
409430
}
410431

411432
# Set default values
@@ -417,6 +438,7 @@ BUILD_OS="ubuntu-22.04"
417438
RELEASE_BASE_IMAGE="ubuntu:22.04" # Matches vcpkg base image (does not need to be an exact match)
418439
TAG_BUILD=0
419440
ARCH=""
441+
NAME_TAG=""
420442

421443
# Parse command line arguments
422444
while [[ $# -gt 0 ]]
@@ -464,6 +486,11 @@ case $key in
464486
shift # past argument
465487
shift # past value
466488
;;
489+
-n|--name-tag)
490+
NAME_TAG="$2"
491+
shift # past argument
492+
shift # past value
493+
;;
467494
-h|--help)
468495
usage
469496
exit 0

esp/files/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,13 @@
1616

1717
project( web_files )
1818

19-
Install ( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION componentfiles COMPONENT Runtime USE_SOURCE_PERMISSIONS PATTERN "CMakeLists.txt" EXCLUDE )
19+
Install ( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
20+
DESTINATION componentfiles
21+
COMPONENT Runtime
22+
USE_SOURCE_PERMISSIONS
23+
PATTERN "CMakeLists.txt" EXCLUDE
24+
PATTERN "yui/build/swfstore/swfstore.swf" EXCLUDE
25+
PATTERN "yui/build/charts/assets/charts.swf" EXCLUDE
26+
PATTERN "yui/build/uploader/assets/uploader.swf" EXCLUDE
27+
PATTERN "yui/build/connection/connection.swf" EXCLUDE
28+
)

0 commit comments

Comments
 (0)