Skip to content

Commit 6032dca

Browse files
authored
Merge branch 'main' into chore/bump-nifi-pre-25.7.0
2 parents 28cf380 + 151bb97 commit 6032dca

33 files changed

+184
-156
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
1111
- airflow: Add `2.10.5` ([#1108]).
1212
- druid: check for correct permissions and ownerships in /stackable folder via
1313
`check-permissions-ownership.sh` provided in stackable-base image ([#1039]).
14+
- druid: Add `33.0.0` ([#1110]).
1415
- hadoop: check for correct permissions and ownerships in /stackable folder via
1516
`check-permissions-ownership.sh` provided in stackable-base image ([#1029]).
1617
- hbase: check for correct permissions and ownerships in /stackable folder via
@@ -41,6 +42,7 @@ All notable changes to this project will be documented in this file.
4142

4243
### Changed
4344

45+
- airflow,superset: Use `uv` to build the product ([#1116]).
4446
- ubi-rust-builder: Bump Rust toolchain to 1.85.0, cargo-cyclonedx to 0.5.7, and cargo-auditable to 0.6.6 ([#1050]).
4547
- ubi9-rust-builder: Bump base image and update protoc to `30.2` ([#1091]).
4648
- stackable-devel: Bump ubi9 base image ([#1103]).
@@ -51,10 +53,10 @@ All notable changes to this project will be documented in this file.
5153
- yq: Bump products to use `4.45.2` ([#1090]).
5254
- cyclonedx-bom: Bump airflow and superset to use `6.0.0` ([#1090]).
5355
- vector: Bump to `0.46.1` ([#1098]).
54-
- Changed default user & group IDs from 1000/1000 to 782252253/574654813 ([#916])
5556

5657
### Fixed
5758

59+
- airflow: Pin Cython version ([#1116]).
5860
- druid: reduce docker image size by removing the recursive chown/chmods in the final image ([#1039]).
5961
- hadoop: reduce docker image size by removing the recursive chown/chmods in the final image ([#1029]).
6062
- hbase: reduce docker image size by removing the recursive chown/chmods in the final image ([#1028]).
@@ -65,6 +67,7 @@ All notable changes to this project will be documented in this file.
6567
- opa: reduce docker image size by removing the recursive chown/chmods in the final image ([#1038]).
6668
- opa: Manually install Go 1.23.9 ([#1103]).
6769
- spark-k8s: reduce docker image size by removing the recursive chown/chmods in the final image ([#1042]).
70+
- superset: Pin Cython version ([#1116]).
6871
- trino: reduce docker image size by removing the recursive chown/chmods in the final image ([#1025]).
6972
- zookeeper: reduce docker image size by removing the recursive chown/chmods in the final image ([#1043]).
7073
- Fixed two hardcoded username references ([#1052]).
@@ -77,6 +80,7 @@ All notable changes to this project will be documented in this file.
7780
- Remove ubi8-rust-builder image ([#1091]).
7881
- opa: Remove `0.67.1` ([#1103]).
7982
- opa: Remove legacy bundle-builder from container build ([#1103]).
83+
- druid: Remove `30.0.0` ([#1110]).
8084
- nifi: Remove `2.2.0` ([#1114]).
8185

8286
[nifi-iceberg-bundle]: https://github.com/stackabletech/nifi-iceberg-bundle
@@ -109,7 +113,9 @@ All notable changes to this project will be documented in this file.
109113
[#1103]: https://github.com/stackabletech/docker-images/pull/1103
110114
[#1106]: https://github.com/stackabletech/docker-images/pull/1106
111115
[#1108]: https://github.com/stackabletech/docker-images/pull/1108
116+
[#1110]: https://github.com/stackabletech/docker-images/pull/1110
112117
[#1114]: https://github.com/stackabletech/docker-images/pull/1114
118+
[#1116]: https://github.com/stackabletech/docker-images/pull/1116
113119

114120
## [25.3.0] - 2025-03-21
115121

airflow/Dockerfile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ ARG TARGETARCH
3131
ARG STACKABLE_USER_UID
3232
ARG S3FS
3333
ARG CYCLONEDX_BOM
34-
35-
COPY airflow/constraints-${PRODUCT}-python${PYTHON}.txt /tmp/constraints.txt
36-
COPY --from=opa-auth-manager-builder /tmp/opa-auth-manager/dist/opa_auth_manager-0.1.0-py3-none-any.whl /tmp/
34+
ARG UV
3735

3836
# The mysql provider is currently excluded.
3937
# Requires implementation of https://github.com/apache/airflow/blob/2.2.5/scripts/docker/install_mysql.sh
@@ -62,19 +60,27 @@ RUN microdnf update && \
6260
microdnf clean all && \
6361
rm -rf /var/cache/yum
6462

63+
COPY airflow/stackable/constraints/${PRODUCT}/constraints-python${PYTHON}.txt /tmp/constraints.txt
64+
COPY airflow/stackable/constraints/${PRODUCT}/build-constraints-python${PYTHON}.txt /tmp/build-constraints.txt
65+
COPY --from=opa-auth-manager-builder /tmp/opa-auth-manager/dist/opa_auth_manager-0.1.0-py3-none-any.whl /tmp/
66+
6567
RUN <<EOF
6668
python${PYTHON} -m venv --system-site-packages /stackable/app
6769

6870
source /stackable/app/bin/activate
6971

72+
# Upgrade pip to the latest version
73+
# Also install uv to get support for build constraints
7074
pip install --no-cache-dir --upgrade pip
71-
pip install --no-cache-dir apache-airflow[${AIRFLOW_EXTRAS}]==${PRODUCT} --constraint /tmp/constraints.txt
75+
pip install --no-cache-dir uv==${UV}
76+
77+
uv pip install --no-cache-dir apache-airflow[${AIRFLOW_EXTRAS}]==${PRODUCT} --constraint /tmp/constraints.txt --build-constraints /tmp/build-constraints.txt
7278
# Needed for pandas S3 integration to e.g. write and read csv and parquet files to/from S3
73-
pip install --no-cache-dir s3fs==${S3FS} cyclonedx-bom==${CYCLONEDX_BOM}
79+
uv pip install --no-cache-dir s3fs==${S3FS} cyclonedx-bom==${CYCLONEDX_BOM}
7480
# Needed for OIDC
75-
pip install --no-cache-dir Flask_OIDC==2.2.0 Flask-OpenID==1.3.1
81+
uv pip install --no-cache-dir Flask_OIDC==2.2.0 Flask-OpenID==1.3.1
7682

77-
pip install --no-cache-dir /tmp/opa_auth_manager-0.1.0-py3-none-any.whl
83+
uv pip install --no-cache-dir /tmp/opa_auth_manager-0.1.0-py3-none-any.whl
7884

7985
# Create the SBOM for Airflow
8086
# Important: All `pip install` commands must be above this line, otherwise the SBOM will be incomplete
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cython==3.1.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cython==3.1.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cython==3.0.12

airflow/versions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"statsd_exporter": "0.28.0",
99
"tini": "0.19.0",
1010
"vector": "0.46.1",
11+
"uv": "0.7.3",
1112
},
1213
{
1314
"product": "2.10.4",
@@ -18,6 +19,7 @@
1819
"statsd_exporter": "0.28.0",
1920
"tini": "0.19.0",
2021
"vector": "0.46.1",
22+
"uv": "0.7.3",
2123
},
2224
{
2325
"product": "2.10.5",
@@ -28,5 +30,6 @@
2830
"statsd_exporter": "0.28.0",
2931
"tini": "0.19.0",
3032
"vector": "0.46.1",
33+
"uv": "0.7.3",
3134
},
3235
]

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898

9999
args = {
100100
"STACKABLE_USER_NAME": "stackable",
101-
"STACKABLE_USER_UID": "782252253", # This is a random high id to not conflict with any existing user
102-
"STACKABLE_USER_GID": "574654813", # This is a random high id to not conflict with any existing group
101+
"STACKABLE_USER_UID": "1000",
102+
"STACKABLE_USER_GID": "1000",
103103
"DELETE_CACHES": "true",
104104
}

0 commit comments

Comments
 (0)