Skip to content

Commit 1150cac

Browse files
authored
chore(shared/statsd_exporter): Bump to 0.29.0 (#1522)
* chore(shared/statsd_exporter): Bump to 0.29.0 * feat: Add statsd_exporter upload script * chore: Add changelog entry * chore: Move NiFi entry to correct section
1 parent 8d5a5a8 commit 1150cac

5 files changed

Lines changed: 64 additions & 8 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
VERSION=${1:?"Missing version number argument (arg 1)"}
6+
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
7+
8+
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
9+
echo ""
10+
11+
# https://stackoverflow.com/questions/4632028/how-to-create-a-temporary-directory
12+
# Find the directory name of the script
13+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
14+
15+
# the temp directory used, within $DIR
16+
WORK_DIR=$(mktemp -d -p "$DIR")
17+
18+
# check if tmp dir was created
19+
if [[ ! "$WORK_DIR" || ! -d "$WORK_DIR" ]]; then
20+
echo "Could not create temp dir"
21+
exit 1
22+
fi
23+
24+
# deletes the temp directory
25+
function cleanup {
26+
rm -rf "$WORK_DIR"
27+
}
28+
29+
# register the cleanup function to be called on the EXIT signal
30+
trap cleanup EXIT
31+
32+
cd "$WORK_DIR" || exit
33+
34+
# statsd_exporter does not currently publish signatures or SBOMs
35+
DOWNLOAD_URL="https://github.com/prometheus/statsd_exporter/archive/refs/tags/v$VERSION.tar.gz"
36+
37+
echo "Downloading statsd_exporter source"
38+
if ! curl --fail -Ls -O "$DOWNLOAD_URL"; then
39+
echo "Failed to download from $DOWNLOAD_URL"
40+
exit 1
41+
fi
42+
43+
FILE_NAME="statsd_exporter-$VERSION.src.tar.gz"
44+
mv "v$VERSION.tar.gz" "$FILE_NAME"
45+
46+
echo "Uploading statsd_exporter source to Nexus"
47+
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
48+
echo "Failed to upload statsd_exporter source to Nexus"
49+
exit 1
50+
fi
51+
52+
echo "Successfully uploaded new version of statsd_exporter source ($VERSION) to Nexus"
53+
echo "https://repo.stackable.tech/service/rest/repository/browse/packages/statsd_exporter/"

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ All notable changes to this project will be documented in this file.
88

99
- hadoop: Add precompiled hadoop for later reuse in dependent images ([#1466], [#1474]).
1010
- nifi: Add version `2.9.0` ([#1463]).
11-
- nifi: Remove `1.28.1`, deprecate `2.7.2` ([#1520]).
1211
- nifi: Backport NIFI-15801 to 2.x versions ([#1481]).
1312
- nifi: Backport NIFI-15901 to 2.x versions ([#1481]).
1413
- testing-tools: Added grpcurl utility ([#1493]).
@@ -20,9 +19,12 @@ All notable changes to this project will be documented in this file.
2019

2120
### Changed
2221

23-
- hbase: Update `hbase-opa-authorizer` from `0.1.0` to `0.2.0` and then `0.3.0` ([#1446], [#1454]).
22+
- airflow: Bump statsd_exporter to `0.29.0` ([#1522]).
2423
- 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]).
24+
- hbase: Update `hbase-opa-authorizer` from `0.1.0` to `0.2.0` and then `0.3.0` ([#1446], [#1454]).
2525
- stackable-base: Bump `containerdebug` to `0.4.0` and `config-utils` to `0.4.0` ([#1521]).
26+
- statsd_exporter: Bump version from `0.28.0` to `0.29.0` ([#1522]).
27+
- superset: Bump statsd_exporter to `0.29.0` ([#1522]).
2628

2729
### Fixed
2830

@@ -35,6 +37,7 @@ All notable changes to this project will be documented in this file.
3537

3638
### Removed
3739

40+
- nifi: Remove `1.28.1`, deprecate `2.7.2` ([#1520]).
3841
- opa: Remove `1.8.0` ([#1509]).
3942

4043
[#1446]: https://github.com/stackabletech/docker-images/pull/1446

airflow/boil-config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Deprecated since SDP 25.11
55
[versions."2.9.3".local-images]
6-
"shared/statsd-exporter" = "0.28.0"
6+
"shared/statsd-exporter" = "0.29.0"
77
vector = "0.55.0"
88
stackable-devel = "1.0.0"
99

@@ -20,7 +20,7 @@ nodejs-version = "20"
2020

2121
# LTS
2222
[versions."3.0.6".local-images]
23-
"shared/statsd-exporter" = "0.28.0"
23+
"shared/statsd-exporter" = "0.29.0"
2424
vector = "0.55.0"
2525
stackable-devel = "1.0.0"
2626

@@ -56,7 +56,7 @@ nodejs-version = "20"
5656

5757
# Supported
5858
[versions."3.1.6".local-images]
59-
"shared/statsd-exporter" = "0.28.0"
59+
"shared/statsd-exporter" = "0.29.0"
6060
vector = "0.55.0"
6161
stackable-devel = "1.0.0"
6262

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[metadata]
22
"oci.stackable.tech" = { namespace = "sdp" }
33

4-
[versions."0.28.0".local-images]
4+
[versions."0.29.0".local-images]
55
stackable-base = "1.0.0"

superset/boil-config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"oci.stackable.tech" = { namespace = "sdp" }
33

44
[versions."4.1.4".local-images]
5-
"shared/statsd-exporter" = "0.28.0"
5+
"shared/statsd-exporter" = "0.29.0"
66
stackable-devel = "1.0.0"
77
vector = "0.55.0"
88

@@ -22,7 +22,7 @@ nodejs-version = "18.20.1"
2222
nvm-version = "v0.40.4"
2323

2424
[versions."6.0.0".local-images]
25-
"shared/statsd-exporter" = "0.28.0"
25+
"shared/statsd-exporter" = "0.29.0"
2626
stackable-devel = "1.0.0"
2727
vector = "0.55.0"
2828

0 commit comments

Comments
 (0)