Skip to content

Commit 55efaf2

Browse files
committed
Merge remote-tracking branch 'origin/main' into chore/revert-uid-gid
2 parents bae340f + bd6b3a6 commit 55efaf2

25 files changed

+1074
-326
lines changed

.github/workflows/build_hello-world.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.scripts/update_readme_badges.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@ for BUILD_WORKFLOW_FILE in .github/workflows/build_*.yaml; do
5454
echo >> "$BADGES_TMP"
5555
fi
5656
done
57-
# This needs to add the remaning empty columns of the last row in the table
58-
# This is a hack to fix the status quo and make markdownlint happy.
59-
for _ in $(seq 0 $((COLS - 1))); do
60-
echo -n "| " >> "$BADGES_TMP"
61-
done
62-
echo "|" >> "$BADGES_TMP"
57+
58+
# Add remaining empty columns to complete the last row if needed
59+
# "if needed" is the first if here: It'll only run when we're NOT on the last column (0 indexed)
60+
if [ ${CURRENT_COLUMN} -ne $((COLS - 1)) ]; then
61+
for _ in $(seq $((CURRENT_COLUMN + 1)) $((COLS - 1))); do
62+
echo -n "| " >> "$BADGES_TMP"
63+
done
64+
echo "|" >> "$BADGES_TMP"
65+
fi
6366
echo -n "<!-- end:badges -->" >> "$BADGES_TMP"
6467

6568
# Print the image and link shortcuts. Eg:

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file.
1717
`check-permissions-ownership.sh` provided in stackable-base image ([#1029]).
1818
- hbase: check for correct permissions and ownerships in /stackable folder via
1919
`check-permissions-ownership.sh` provided in stackable-base image ([#1028]).
20+
- hbase: provide patches to implement listener endpoints ([#1159]).
2021
- hive: check for correct permissions and ownerships in /stackable folder via
2122
`check-permissions-ownership.sh` provided in stackable-base image ([#1040]).
2223
- spark-connect-client: A new image for Spark connect tests and demos ([#1034])
@@ -91,6 +92,10 @@ All notable changes to this project will be documented in this file.
9192
- opa: Enable custom versions ([#1170]).
9293
- use custom product versions for Hadoop, HBase, Phoenix, hbase-operator-tools, Druid, Hive and Spark ([#1173]).
9394
- hbase: Bump dependencies to the latest patch level for HBase `2.6.1` and `2.6.2` ([#1185]).
95+
- ubi-rust-builder: Bump Rust toolchain to 1.87.0, cargo-auditable to 0.7.0 and protoc to 31.1 ([#1197]).
96+
- stackable-base, stackable-devel, ubi-rust-builder: Update `ubi-minimal` base image ([#1197]).
97+
- testing-tools: Update `python` 3.12-slim-bullseye base image ([#1197]).
98+
- Change default user & group IDs from 1000/1000 to 1000/0 ([#1193]).
9499

95100
### Fixed
96101

@@ -198,6 +203,7 @@ All notable changes to this project will be documented in this file.
198203
[#1151]: https://github.com/stackabletech/docker-images/pull/1151
199204
[#1152]: https://github.com/stackabletech/docker-images/pull/1152
200205
[#1156]: https://github.com/stackabletech/docker-images/pull/1156
206+
[#1159]: https://github.com/stackabletech/docker-images/pull/1159
201207
[#1163]: https://github.com/stackabletech/docker-images/pull/1163
202208
[#1165]: https://github.com/stackabletech/docker-images/pull/1165
203209
[#1168]: https://github.com/stackabletech/docker-images/pull/1168
@@ -213,6 +219,8 @@ All notable changes to this project will be documented in this file.
213219
[#1185]: https://github.com/stackabletech/docker-images/pull/1185
214220
[#1188]: https://github.com/stackabletech/docker-images/pull/1188
215221
[#1189]: https://github.com/stackabletech/docker-images/pull/1189
222+
[#1193]: https://github.com/stackabletech/docker-images/pull/1193
223+
[#1197]: https://github.com/stackabletech/docker-images/pull/1197
216224

217225
## [25.3.0] - 2025-03-21
218226

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ This repository contains Dockerfiles and scripts to build base images for use wi
66
| | | | |
77
| -: | -: | -: | -: |
88
| [![Build Airflow]][build_airflow.yaml] | [![Build Druid]][build_druid.yaml] | [![Build Hadoop]][build_hadoop.yaml] | [![Build HBase]][build_hbase.yaml] |
9-
| [![Build Hello-World]][build_hello-world.yaml] | [![Build Hive]][build_hive.yaml] | [![Build Java Base]][build_java-base.yaml] | [![Build Java Development]][build_java-devel.yaml] |
10-
| [![Build Kafka Testing Tools]][build_kafka-testing-tools.yaml] | [![Build Kafka]][build_kafka.yaml] | [![Build Krb5]][build_krb5.yaml] | [![Build NiFi]][build_nifi.yaml] |
11-
| [![Build Omid]][build_omid.yaml] | [![Build OPA]][build_opa.yaml] | [![Build Spark Connect Client]][build_spark-connect-client.yaml] | [![Build Spark K8s]][build_spark-k8s.yaml] |
12-
| [![Build Stackable Base]][build_stackable-base.yaml] | [![Build Superset]][build_superset.yaml] | [![Build Testing Tools]][build_testing-tools.yaml] | [![Build Tools]][build_tools.yaml] |
13-
| [![Build Trino CLI]][build_trino-cli.yaml] | [![Build Trino]][build_trino.yaml] | [![Build Vector]][build_vector.yaml] | [![Build ZooKeeper]][build_zookeeper.yaml] |
14-
| | | | |
9+
| [![Build Hive]][build_hive.yaml] | [![Build Java Base]][build_java-base.yaml] | [![Build Java Development]][build_java-devel.yaml] | [![Build Kafka Testing Tools]][build_kafka-testing-tools.yaml] |
10+
| [![Build Kafka]][build_kafka.yaml] | [![Build Krb5]][build_krb5.yaml] | [![Build NiFi]][build_nifi.yaml] | [![Build Omid]][build_omid.yaml] |
11+
| [![Build OPA]][build_opa.yaml] | [![Build Spark Connect Client]][build_spark-connect-client.yaml] | [![Build Spark K8s]][build_spark-k8s.yaml] | [![Build Stackable Base]][build_stackable-base.yaml] |
12+
| [![Build Superset]][build_superset.yaml] | [![Build Testing Tools]][build_testing-tools.yaml] | [![Build Tools]][build_tools.yaml] | [![Build Trino CLI]][build_trino-cli.yaml] |
13+
| [![Build Trino]][build_trino.yaml] | [![Build Vector]][build_vector.yaml] | [![Build ZooKeeper]][build_zookeeper.yaml] | |
1514
<!-- end:badges -->
1615

1716
## Prerequisites
@@ -222,8 +221,6 @@ ENTRYPOINT ["/stackable-zookeeper-operator"]
222221
[build_hadoop.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hadoop.yaml
223222
[Build HBase]: https://github.com/stackabletech/docker-images/actions/workflows/build_hbase.yaml/badge.svg
224223
[build_hbase.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hbase.yaml
225-
[Build Hello-World]: https://github.com/stackabletech/docker-images/actions/workflows/build_hello-world.yaml/badge.svg
226-
[build_hello-world.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hello-world.yaml
227224
[Build Hive]: https://github.com/stackabletech/docker-images/actions/workflows/build_hive.yaml/badge.svg
228225
[build_hive.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hive.yaml
229226
[Build Java Base]: https://github.com/stackabletech/docker-images/actions/workflows/build_java-base.yaml/badge.svg

conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
hbase_phoenix = importlib.import_module("hbase.phoenix.versions")
1919
hbase_opa_authorizer = importlib.import_module("hbase.hbase-opa-authorizer.versions")
2020
hbase_operator_tools = importlib.import_module("hbase.hbase-operator-tools.versions")
21-
hello_world = importlib.import_module("hello-world.versions")
2221
hive = importlib.import_module("hive.versions")
2322
java_base = importlib.import_module("java-base.versions")
2423
java_devel = importlib.import_module("java-devel.versions")
@@ -54,7 +53,6 @@
5453
{"name": "hbase/phoenix", "versions": hbase_phoenix.versions},
5554
{"name": "hbase/hbase-opa-authorizer", "versions": hbase_opa_authorizer.versions},
5655
{"name": "hbase/hbase-operator-tools", "versions": hbase_operator_tools.versions},
57-
{"name": "hello-world", "versions": hello_world.versions},
5856
{"name": "hive", "versions": hive.versions},
5957
{"name": "java-base", "versions": java_base.versions},
6058
{"name": "java-devel", "versions": java_devel.versions},

druid/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ COPY --chown=${STACKABLE_USER_UID}:0 druid/stackable/patches/${PRODUCT} /stackab
4141

4242
COPY --from=hadoop-builder --chown=${STACKABLE_USER_UID}:0 /stackable/patched-libs /stackable/patched-libs
4343
# Cache mounts are owned by root by default
44-
# We need to explicitly give the uid to use which is hardcoded to "1000" in stackable-base
44+
# We need to explicitly give the uid to use.
4545
# The cache id has to include the product version that we are building because otherwise
4646
# docker encounters race conditions when building multiple versions in parallel, as all
4747
# builder containers will share the same cache and the `rm -rf` commands will fail

hbase/hbase/stackable/bin/hbase-entrypoint.sh

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ set -euo pipefail
1111

1212
# master, regionserver, rest
1313
HBASE_ROLE_NAME="$1"
14-
# k8s service name for this role+group combo
15-
# <svc-name>.<namespace>.svc.cluster.local
16-
HBASE_ROLE_SERVICE_NAME="$2"
1714
# 16010 for master, 16020 for regionservers etc.
18-
HBASE_ROLE_SERVICE_PORT="$3"
15+
HBASE_ROLE_SERVICE_PORT="$2"
16+
# master, regionserver, rest_http, rest_https
17+
HBASE_PORT_NAME="$3"
18+
# ui-http or ui-https
19+
HBASE_UI_PORT_NAME="$4"
1920

20-
HBASE_ROLE_SERVICE_HOST="${HOSTNAME}.${HBASE_ROLE_SERVICE_NAME}"
21+
# Needed for regionmover service and for hbase-site.xml (see below)
22+
HBASE_SERVICE_HOST=$(cat /stackable/listener/default-address/address)
2123

22-
REGION_MOVER_OPTS="--regionserverhost ${HBASE_ROLE_SERVICE_HOST}:${HBASE_ROLE_SERVICE_PORT} --operation unload ${REGION_MOVER_OPTS}"
24+
REGION_MOVER_OPTS="--regionserverhost ${HBASE_SERVICE_HOST}:${HBASE_ROLE_SERVICE_PORT} --operation unload ${REGION_MOVER_OPTS}"
2325

2426
prepare_signal_handlers() {
2527
unset term_child_pid
@@ -64,6 +66,7 @@ cp /stackable/tmp/hdfs/core-site.xml /stackable/conf
6466
cp /stackable/tmp/hbase/* /stackable/conf
6567
cp /stackable/tmp/log_config/log4j* /stackable/conf
6668

69+
# Kerberos
6770
if [ -f /stackable/kerberos/krb5.conf ]; then
6871
KERBEROS_REALM=$(grep -oP 'default_realm = \K.*' /stackable/kerberos/krb5.conf)
6972
export KERBEROS_REALM
@@ -72,6 +75,16 @@ if [ -f /stackable/kerberos/krb5.conf ]; then
7275
sed -i -e s/\$\{env\.KERBEROS_REALM\}/"${KERBEROS_REALM}"/g /stackable/conf/hdfs-site.xml
7376
fi
7477

78+
# Service endpoints
79+
HBASE_SERVICE_PORT=$(cat /stackable/listener/default-address/ports/"${HBASE_PORT_NAME}")
80+
HBASE_INFO_PORT=$(cat /stackable/listener/default-address/ports/"${HBASE_UI_PORT_NAME}")
81+
HBASE_LISTENER_ENDPOINT="$HBASE_SERVICE_HOST:$HBASE_INFO_PORT"
82+
83+
sed -i -e s/\$\{HBASE_SERVICE_HOST\}/"${HBASE_SERVICE_HOST}"/g /stackable/conf/hbase-site.xml
84+
sed -i -e s/\$\{HBASE_SERVICE_PORT\}/"${HBASE_SERVICE_PORT}"/g /stackable/conf/hbase-site.xml
85+
sed -i -e s/\$\{HBASE_LISTENER_ENDPOINT\}/"${HBASE_LISTENER_ENDPOINT}"/g /stackable/conf/hbase-site.xml
86+
sed -i -e s/\$\{HBASE_INFO_PORT\}/"${HBASE_INFO_PORT}"/g /stackable/conf/hbase-site.xml
87+
7588
rm -f "${STACKABLE_LOG_DIR}/_vector/shutdown"
7689
prepare_signal_handlers
7790
/stackable/containerdebug --output="${STACKABLE_LOG_DIR}/containerdebug-state.json" --loop &

0 commit comments

Comments
 (0)