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
53 changes: 53 additions & 0 deletions .scripts/upload_new_statsd_exporter_version.sh
Original file line number Diff line number Diff line change
@@ -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/"
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]).
Expand All @@ -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

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions airflow/boil-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"

Expand Down Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion shared/statsd-exporter/boil-config.toml
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions superset/boil-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"

Expand Down