Skip to content
Open
Show file tree
Hide file tree
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
54 changes: 54 additions & 0 deletions .scripts/upload_new_nodejs_version.sh

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, we probably want to use the image rather than storing more stuff in Nexus.

Do you mind changing that, or do you want to merge this and come back to it?
FYI, I'm unsure how exactly, but I did this with uv in d15b998 5c73c9c

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I will save this as a todo for the release retro.

Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/usr/bin/env bash

set -euo pipefail

VERSION=${1:?"Missing version number argument (arg 1)"}
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}

# Architecture names as used by the Node.js release tarballs and expected by the
# product Dockerfiles (the Dockerfiles map TARGETARCH amd64 -> x64).
ARCHITECTURES=(
x64
arm64
)

read -r -s -p "Nexus Password: " NEXUS_PASSWORD
echo ""

# https://stackoverflow.com/questions/4632028/how-to-create-a-temporary-directory
# Find the directory name of the script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# the temp directory used, within $DIR
WORK_DIR=$(mktemp -d -p "$DIR")

# check if tmp dir was created
if [[ ! "$WORK_DIR" || ! -d "$WORK_DIR" ]]; then
echo "Could not create temp dir"
exit 1
fi

# deletes the temp directory
function cleanup {
rm -rf "$WORK_DIR"
}

# register the cleanup function to be called on the EXIT signal
trap cleanup EXIT

cd "$WORK_DIR" || exit

for arch in "${ARCHITECTURES[@]}"; do
file=node-v$VERSION-linux-$arch.tar.xz

echo "Downloading $file from nodejs.org"
curl --fail -LO --progress-bar "https://nodejs.org/dist/v$VERSION/$file"

echo "Uploading $file to Nexus"
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" \
--upload-file "$file" \
'https://repo.stackable.tech/repository/packages/node/'
done

echo "Successfully uploaded new version $VERSION to Nexus"
echo "https://repo.stackable.tech/service/rest/repository/browse/packages/node/"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/alerting-dashboards-plugin"
base = "0d76fe609e325ecbf3fea72736a8c53704f871e5"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/anomaly-detection-dashboards-plugin"
base = "7520a60aba6a254c4ff7558fd39558ed8b921b5f"
25 changes: 25 additions & 0 deletions opensearch-dashboards/boil-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,28 @@ stackable-devel = "1.0.0"
nodejs-version = "20.19.6"
yarn-version = "1.22.22"
cdxgen-version = "12.0.0"

[versions."3.6.0".local-images]
stackable-devel = "1.0.0"
"opensearch-dashboards/alerting-dashboards-plugin" = "3.6.0.0"
"opensearch-dashboards/anomaly-detection-dashboards-plugin" = "3.6.0.0"
"opensearch-dashboards/dashboards-assistant" = "3.6.0.0"
"opensearch-dashboards/dashboards-flow-framework" = "3.6.0.0"
"opensearch-dashboards/dashboards-maps" = "3.6.0.0"
"opensearch-dashboards/dashboards-notifications" = "3.6.0.0"
"opensearch-dashboards/dashboards-observability" = "3.6.0.0"
"opensearch-dashboards/dashboards-query-workbench" = "3.6.0.0"
"opensearch-dashboards/dashboards-reporting" = "3.6.0.0"
"opensearch-dashboards/dashboards-search-relevance" = "3.6.0.0"
"opensearch-dashboards/index-management-dashboards-plugin" = "3.6.0.0"
"opensearch-dashboards/ml-commons-dashboards" = "3.6.0.0"
"opensearch-dashboards/query-insights-dashboards" = "3.6.0.0"
"opensearch-dashboards/security-analytics-dashboards-plugin" = "3.6.0.0"
"opensearch-dashboards/security-dashboards-plugin" = "3.6.0.0"
"opensearch-dashboards/opensearch-build" = "3.6.0"
"vector" = "0.55.0"

[versions."3.6.0".build-arguments]
nodejs-version = "22.22.0"
yarn-version = "1.22.22"
cdxgen-version = "12.0.0"
3 changes: 3 additions & 0 deletions opensearch-dashboards/dashboards-assistant/boil-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/dashboards-assistant"
base = "b0a243fc8a543bd66d1bc663a15607a197a43328"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/dashboards-flow-framework"
base = "196ef597dbb902cfbe68c372e2514034ba1fdcdf"
3 changes: 3 additions & 0 deletions opensearch-dashboards/dashboards-maps/boil-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/dashboards-maps"
base = "deb431f6fa38e1d3568a1d625b1ee7ddc74c242f"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/dashboards-notifications"
base = "17a8106bc7ef58507c573225e3d0c2afc8b50bd1"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/dashboards-observability"
base = "e3feaa11ec785b8c1716ad69edce2471db064c97"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/dashboards-query-workbench"
base = "7b97ee6810b1d6dca969df58b311237246c8f513"
3 changes: 3 additions & 0 deletions opensearch-dashboards/dashboards-reporting/boil-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/dashboards-reporting"
base = "2875d6bd674d6adcf348ae00df443afa154fa45d"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/dashboards-search-relevance"
base = "e27b21d8953ad41ccc21decdfef7985603537607"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/index-management-dashboards-plugin"
base = "9a122ceb626802bdf2fdb9d8cad0bcbfd66898cf"
3 changes: 3 additions & 0 deletions opensearch-dashboards/ml-commons-dashboards/boil-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/ml-commons-dashboards"
base = "30d37e707e7d6be66f21ee581b1852b34c7d50fd"
3 changes: 3 additions & 0 deletions opensearch-dashboards/opensearch-build/boil-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/opensearch-build"
base = "18761b2bc0e7c224ff402da1380a5c6e56330f0f"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/query-insights-dashboards"
base = "da1f321fce29baa679991137fb7830e50079ab03"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/security-analytics-dashboards-plugin"
base = "2d245ec918f6ef1a8a460968ca8927e2ca6bed43"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ stackable-devel = "1.0.0"

[versions."3.4.0.0".local-images]
stackable-devel = "1.0.0"

[versions."3.6.0.0".local-images]
stackable-devel = "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/security-dashboards-plugin"
base = "0c1699d43896e5e4facf146e21526d029c7a4ba3"
2 changes: 2 additions & 0 deletions opensearch-dashboards/stackable/patches/3.6.0/patchable.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mirror = "https://github.com/stackabletech/opensearch-dashboards"
base = "47091b2bb937be28e29cde7c3d2c3c9ee6803c27"