diff --git a/.scripts/upload_new_statsd_exporter_version.sh b/.scripts/upload_new_statsd_exporter_version.sh new file mode 100755 index 000000000..65684114a --- /dev/null +++ b/.scripts/upload_new_statsd_exporter_version.sh @@ -0,0 +1,53 @@ +#!/usr/bin/env bash + +set -euo pipefail + +VERSION=${1:?"Missing version number argument (arg 1)"} +NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"} + +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 + +# statsd_exporter does not currently publish signatures or SBOMs +DOWNLOAD_URL="https://github.com/prometheus/statsd_exporter/archive/refs/tags/v$VERSION.tar.gz" + +echo "Downloading statsd_exporter source" +if ! curl --fail -Ls -O "$DOWNLOAD_URL"; then + echo "Failed to download from $DOWNLOAD_URL" + exit 1 +fi + +FILE_NAME="statsd_exporter-$VERSION.src.tar.gz" +mv "v$VERSION.tar.gz" "$FILE_NAME" + +echo "Uploading statsd_exporter source to Nexus" +if ! curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$FILE_NAME" 'https://repo.stackable.tech/repository/packages/statsd_exporter/'; then + echo "Failed to upload statsd_exporter source to Nexus" + exit 1 +fi + +echo "Successfully uploaded new version of statsd_exporter source ($VERSION) to Nexus" +echo "https://repo.stackable.tech/service/rest/repository/browse/packages/statsd_exporter/" diff --git a/CHANGELOG.md b/CHANGELOG.md index 18f8eb6da..8048100b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,6 @@ All notable changes to this project will be documented in this file. - hadoop: Add precompiled hadoop for later reuse in dependent images ([#1466], [#1474]). - nifi: Add version `2.9.0` ([#1463]). -- nifi: Remove `1.28.1`, deprecate `2.7.2` ([#1520]). - nifi: Backport NIFI-15801 to 2.x versions ([#1481]). - nifi: Backport NIFI-15901 to 2.x versions ([#1481]). - testing-tools: Added grpcurl utility ([#1493]). @@ -20,9 +19,12 @@ All notable changes to this project will be documented in this file. ### Changed -- hbase: Update `hbase-opa-authorizer` from `0.1.0` to `0.2.0` and then `0.3.0` ([#1446], [#1454]). +- airflow: Bump statsd_exporter to `0.29.0` ([#1522]). - ci: Bump `docker/login-action` from `v3.6.0` to `v4.1.0` and `stackabletech/actions` to `v0.14.3` to escape Node.js 20 deprecation ([#1507]). +- hbase: Update `hbase-opa-authorizer` from `0.1.0` to `0.2.0` and then `0.3.0` ([#1446], [#1454]). - stackable-base: Bump `containerdebug` to `0.4.0` and `config-utils` to `0.4.0` ([#1521]). +- statsd_exporter: Bump version from `0.28.0` to `0.29.0` ([#1522]). +- superset: Bump statsd_exporter to `0.29.0` ([#1522]). ### Fixed @@ -35,6 +37,7 @@ All notable changes to this project will be documented in this file. ### Removed +- nifi: Remove `1.28.1`, deprecate `2.7.2` ([#1520]). - opa: Remove `1.8.0` ([#1509]). [#1446]: https://github.com/stackabletech/docker-images/pull/1446 diff --git a/airflow/boil-config.toml b/airflow/boil-config.toml index 7835a1352..8bb706053 100644 --- a/airflow/boil-config.toml +++ b/airflow/boil-config.toml @@ -3,7 +3,7 @@ # Deprecated since SDP 25.11 [versions."2.9.3".local-images] -"shared/statsd-exporter" = "0.28.0" +"shared/statsd-exporter" = "0.29.0" vector = "0.55.0" stackable-devel = "1.0.0" @@ -20,7 +20,7 @@ nodejs-version = "20" # LTS [versions."3.0.6".local-images] -"shared/statsd-exporter" = "0.28.0" +"shared/statsd-exporter" = "0.29.0" vector = "0.55.0" stackable-devel = "1.0.0" @@ -56,7 +56,7 @@ nodejs-version = "20" # Supported [versions."3.1.6".local-images] -"shared/statsd-exporter" = "0.28.0" +"shared/statsd-exporter" = "0.29.0" vector = "0.55.0" stackable-devel = "1.0.0" diff --git a/shared/statsd-exporter/boil-config.toml b/shared/statsd-exporter/boil-config.toml index 408235597..47379e80f 100644 --- a/shared/statsd-exporter/boil-config.toml +++ b/shared/statsd-exporter/boil-config.toml @@ -1,5 +1,5 @@ [metadata] "oci.stackable.tech" = { namespace = "sdp" } -[versions."0.28.0".local-images] +[versions."0.29.0".local-images] stackable-base = "1.0.0" diff --git a/superset/boil-config.toml b/superset/boil-config.toml index 0d40123a9..9fc4d0368 100644 --- a/superset/boil-config.toml +++ b/superset/boil-config.toml @@ -2,7 +2,7 @@ "oci.stackable.tech" = { namespace = "sdp" } [versions."4.1.4".local-images] -"shared/statsd-exporter" = "0.28.0" +"shared/statsd-exporter" = "0.29.0" stackable-devel = "1.0.0" vector = "0.55.0" @@ -22,7 +22,7 @@ nodejs-version = "18.20.1" nvm-version = "v0.40.4" [versions."6.0.0".local-images] -"shared/statsd-exporter" = "0.28.0" +"shared/statsd-exporter" = "0.29.0" stackable-devel = "1.0.0" vector = "0.55.0"