Skip to content

Commit 531af6b

Browse files
authored
fix: use Stackable Maven repository in Hadoop build (#1133)
* fix: use Stackable Maven repository * chore: changelog
1 parent 2e50694 commit 531af6b

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ All notable changes to this project will be documented in this file.
6767
- nifi: update patch allowing to bypass host header validation starting with NiFi 2.4.0 ([#1125]).
6868
- BREAKING: kcat: Stop building kcat image ([#1124]).
6969
- containerdebug updated to 0.2.0 ([#1128])
70+
- Build Hadoop as `stackable` and configure the Stackable Nexus build-repo for the `root` user ([#1133])
7071

7172
### Fixed
7273

@@ -150,6 +151,7 @@ All notable changes to this project will be documented in this file.
150151
[#1126]: https://github.com/stackabletech/docker-images/pull/1126
151152
[#1127]: https://github.com/stackabletech/docker-images/pull/1127
152153
[#1128]: https://github.com/stackabletech/docker-images/pull/1128
154+
[#1133]: https://github.com/stackabletech/docker-images/pull/1133
153155

154156
## [25.3.0] - 2025-03-21
155157

hadoop/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ chmod -x "/stackable/jmx/jmx_prometheus_javaagent-${JMX_EXPORTER}.jar"
5858
ln -s "/stackable/jmx/jmx_prometheus_javaagent-${JMX_EXPORTER}.jar" /stackable/jmx/jmx_prometheus_javaagent.jar
5959
EOF
6060

61+
USER ${STACKABLE_USER_UID}
6162
WORKDIR /build
6263
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/patches/patchable.toml /build/src/hadoop/stackable/patches/patchable.toml
6364
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/patches/${PRODUCT} /build/src/hadoop/stackable/patches/${PRODUCT}

java-devel/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ RUN microdnf update && \
6161
ENV JAVA_HOME="/usr/lib/jvm/temurin-${PRODUCT}-jdk"
6262

6363
COPY --chown=${STACKABLE_USER_UID}:0 java-devel/stackable/settings.xml /stackable/.m2/settings.xml
64+
COPY --chown=${STACKABLE_USER_UID}:0 java-devel/stackable/settings.xml /root/.m2/settings.xml
6465

6566
# Mitigation for CVE-2021-44228 (Log4Shell)
6667
# This variable is supported as of Log4j version 2.10 and

0 commit comments

Comments
 (0)