File tree Expand file tree Collapse file tree 5 files changed +51
-3
lines changed Expand file tree Collapse file tree 5 files changed +51
-3
lines changed Original file line number Diff line number Diff line change 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+ file=keycloak-$VERSION .tar.gz
35+
36+ echo " Downloading $file from github.com"
37+ curl --fail -LO --progress-bar " https://github.com/keycloak/keycloak/releases/download/$VERSION /$file "
38+
39+ echo " Uploading $file to Nexus"
40+ curl --fail -o /dev/null --progress-bar -u " $NEXUS_USER :$NEXUS_PASSWORD " \
41+ --upload-file " $file " \
42+ ' https://repo.stackable.tech/repository/packages/keycloak/'
43+
44+ echo " Successfully uploaded new version $VERSION to Nexus"
45+ echo " https://repo.stackable.tech/service/rest/repository/browse/packages/keycloak/"
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file.
2424- spark: Add ` 4.0.1 ` ([ #1286 ] ).
2525- spark-connect-client: Add ` 4.0.1 ` ([ #1286 ] ).
2626- trino/trino-storage-connector: Add ` 477 ` ([ #1285 ] ).
27+ - testing-tools: Add ` upload_new_keycloak_version.sh ` script ([ #1289 ] ).
2728
2829### Changed
2930
@@ -38,6 +39,7 @@ All notable changes to this project will be documented in this file.
3839- opa: Deprecate ` 1.4.2 ` ([ #1279 ] ).
3940- trino-cli: Bump to 477 ([ #1285 ] ).
4041- tools: Bump dependency versions - kubectl to ` 1.34.1 ` , yq to ` 4.47.2 ` , and jq to ` 1.8.1 ` ([ #1290 ] ).
42+ - testing-tools: Update keycloak dependency to ` 26.3.5 ` and ` python:3.12-slim-bullseye ` base image ([ #1289 ] ).
4143
4244### Removed
4345
@@ -76,6 +78,7 @@ All notable changes to this project will be documented in this file.
7678[ #1284 ] : https://github.com/stackabletech/docker-images/pull/1284
7779[ #1285 ] : https://github.com/stackabletech/docker-images/pull/1285
7880[ #1286 ] : https://github.com/stackabletech/docker-images/pull/1286
81+ [ #1289 ] : https://github.com/stackabletech/docker-images/pull/1289
7982[ #1290 ] : https://github.com/stackabletech/docker-images/pull/1290
8083
8184## [ 25.7.0] - 2025-07-23
Original file line number Diff line number Diff line change 55# https://hub.docker.com/_/python/tags
66# In Docker Hub, open up the tag and look for Index Digest. Otherwise do:
77# docker pull python:3.12-slim-bullseye and see the digest that appears in the output.
8- FROM python:3.12-slim-bullseye@sha256:f6d639b794b394cbeb7a9327d5af9976f0e8d61353bcf41916984775c9bbed1a
8+ FROM python:3.12-slim-bullseye@sha256:411fa4dcfdce7e7a3057c45662beba9dcd4fa36b2e50a2bfcd6c9333e59bf0db
99
1010ARG PRODUCT_VERSION
1111ARG RELEASE_VERSION
Original file line number Diff line number Diff line change 11# Stackable testing tools image
22
3- * Based on debian/python 3.11 unlike ` tools ` which is based on UBI9 with python 3.9.
3+ * Based on debian/python 3.12 unlike ` tools ` which is based on UBI9 with python 3.9.
44* Comes with Python packages needed by the kuttl tests.
Original file line number Diff line number Diff line change 11[versions ."0 .2 .0" .build-arguments ]
2- keycloak-version = " 23.0.0 "
2+ keycloak-version = " 26.3.5 "
You can’t perform that action at this time.
0 commit comments