Skip to content

Commit 8c5a7ea

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/opensearch
2 parents 402698b + 37432b0 commit 8c5a7ea

File tree

8 files changed

+27
-2
lines changed

8 files changed

+27
-2
lines changed

CHANGELOG.md

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

77
### Added
88

9+
- ubi9-rust-builder: Include `.tar.gz` snapshots of the operator source code in container images ([#1207])
910
- opensearch: Add Opensearch as new product with version `3.1.0` ([#1215]).
1011

12+
### Changed
13+
14+
- all: Use our build-repo to cache NPM dependencies ([#1219])
15+
16+
[#1207]: https://github.com/stackabletech/docker-images/pull/1207
17+
[#1219]: https://github.com/stackabletech/docker-images/pull/1219
1118
[#1215]: https://github.com/stackabletech/docker-images/pull/1215
1219

1320
## [25.7.0] - 2025-07-23

hadoop/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ chmod --recursive g=u /stackable/jmx /stackable/async-profiler "/stackable/hadoo
145145
# image the 'hadoop checknative' tool still fails because it can't find the 'libcrypto.so' symlink.
146146
# Therefore we create this symlink here.
147147
ln -s /usr/lib64/libcrypto.so.3 /usr/lib64/libcrypto.so
148-
EOF
149148

150-
RUN <<EOF
151149
# ----------------------------------------
152150
# Checks
153151
# This section is to run final checks to ensure the created final images

kafka/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ find . -type f -print0 | xargs -0 sed -i "s/\-stackable0\.0\.0\-dev/-stackable${
3131
tar -czf /stackable/kafka-${NEW_VERSION}-src.tar.gz .
3232

3333
# TODO: Try to install gradle via package manager (if possible) instead of fetching it from the internet
34+
# We patch Kafka to use our Nexus build repo instead
3435
# We don't specify "-x test" to skip the tests, as we might bump some Kafka internal dependencies in the future and
3536
# it's a good idea to run the tests in this case.
3637
./gradlew clean releaseTarGz

stackable-devel/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,16 @@ microdnf clean all
115115
chown ${STACKABLE_USER_UID}:0 /stackable/patchable
116116
rm -rf /patchable
117117
EOF
118+
119+
# Make sure NPM and YARN use our build mirror
120+
# In theory YARN should (I believe) fall back to the npmrc file but we want to make sure...
121+
COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.npmrc /stackable/.npmrc
122+
COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.npmrc /root/.npmrc
123+
124+
# YARN v1
125+
COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.yarnrc /stackable/.yarnrc
126+
COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.yarnrc /root/.yarnrc
127+
128+
# YARN v2++
129+
COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.yarnrc.yml /stackable/.yarnrc.yml
130+
COPY --chown=${STACKABLE_USER_UID}:0 stackable-devel/stackable/.yarnrc.yml /root/.yarnrc.yml

stackable-devel/stackable/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://build-repo.stackable.tech/repository/npm-public/

stackable-devel/stackable/.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry "https://build-repo.stackable.tech/repository/npm-public/"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npmRegistryServer: "https://build-repo.stackable.tech/repository/npm-public/"

ubi9-rust-builder/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ RUN microdnf update \
6262
openssl-devel \
6363
pkg-config \
6464
systemd-devel \
65+
# tar needed to create the source code snapshot before building the Rust code
66+
tar \
6567
unzip \
6668
&& microdnf clean all \
6769
&& rm -rf /var/cache/yum
@@ -97,6 +99,7 @@ ONBUILD COPY . /src
9799

98100
ONBUILD RUN <<EOF
99101
. "$HOME/.cargo/env"
102+
tar -czf /app/stackable-src.tar.gz .
100103
cargo auditable --quiet build --release --workspace
101104
cargo cyclonedx --all --spec-version 1.5 --describe binaries
102105

0 commit comments

Comments
 (0)