Skip to content

Commit 1e5f085

Browse files
Make uid/gid configurable & change group of files - part 3 (#897)
* Make uid/gid configurable & change group of files This is a follow-up for #849 and includes: - The missing bits for Hive - Kafka * More tools now migrated but not tested yet: - Kafka Testing Tools - KCat - NiFi - Omid * - OPA - Spark (WIP) * Adds Spark and a changelog entry * - statsd_exporter - superset * - superset - tools * Adds Trino * Update CHANGELOG * Add Trino CLI * Add Vector * Add note * Update tools/Dockerfile Co-authored-by: Nick <[email protected]> * Update superset/Dockerfile Co-authored-by: Nick <[email protected]> * Update tools/Dockerfile Co-authored-by: Nick <[email protected]> * Update trino-cli/Dockerfile Co-authored-by: Nick <[email protected]> * Update trino-cli/Dockerfile Co-authored-by: Nick <[email protected]> * Update superset/Dockerfile Co-authored-by: Nick <[email protected]> * Fix CHANGELOG --------- Co-authored-by: Nick <[email protected]>
1 parent dff82c6 commit 1e5f085

File tree

20 files changed

+253
-80
lines changed

20 files changed

+253
-80
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ All notable changes to this project will be documented in this file.
3232
- Enable [Docker build checks](https://docs.docker.com/build/checks/) ([#872]).
3333
- java: migrate to temurin jdk/jre ([#894]).
3434
- tools: bump kubectl to `1.31.1` and jq to `1.7.1` ([#896]).
35-
- Make username, user id, group id configurable, use numeric ids everywhere, change group of all files to 0 ([#849], [#890]).
35+
- Make username, user id, group id configurable, use numeric ids everywhere, change group of all files to 0 ([#849], [#890], [#897]).
3636
- ci: Bump `stackabletech/actions` to 0.0.7 ([#901], [#903]).
3737

3838
### Removed
@@ -87,6 +87,7 @@ All notable changes to this project will be documented in this file.
8787
[#890]: https://github.com/stackabletech/docker-images/pull/890
8888
[#894]: https://github.com/stackabletech/docker-images/pull/894
8989
[#896]: https://github.com/stackabletech/docker-images/pull/896
90+
[#897]: https://github.com/stackabletech/docker-images/pull/897
9091
[#898]: https://github.com/stackabletech/docker-images/pull/898
9192
[#901]: https://github.com/stackabletech/docker-images/pull/901
9293
[#903]: https://github.com/stackabletech/docker-images/pull/903

airflow/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ chown -R ${STACKABLE_USER_UID}:0 /stackable
135135
chmod -R g=u /stackable
136136
EOF
137137

138+
# ----------------------------------------
139+
# Attention: We are changing the group of all files in /stackable directly above
140+
# If you do any file based actions (copying / creating etc.) below this comment you
141+
# absolutely need to make sure that the correct permissions are applied!
142+
# chown ${STACKABLE_USER_UID}:0
143+
# ----------------------------------------
144+
138145
USER ${STACKABLE_USER_UID}
139146
WORKDIR /stackable
140147

druid/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ chown -R ${STACKABLE_USER_UID}:0 /stackable
126126
chmod -R g=u /stackable
127127
EOF
128128

129+
# ----------------------------------------
130+
# Attention: We are changing the group of all files in /stackable directly above
131+
# If you do any file based actions (copying / creating etc.) below this comment you
132+
# absolutely need to make sure that the correct permissions are applied!
133+
# chown ${STACKABLE_USER_UID}:0
134+
# ----------------------------------------
135+
129136
USER ${STACKABLE_USER_UID}
130137
ENV PATH="${PATH}":/stackable/druid/bin
131138

hadoop/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ EOF
177177

178178
COPY hadoop/licenses /licenses
179179

180+
# ----------------------------------------
181+
# Attention: We are changing the group of all files in /stackable directly above
182+
# If you do any file based actions (copying / creating etc.) below this comment you
183+
# absolutely need to make sure that the correct permissions are applied!
184+
# chown ${STACKABLE_USER_UID}:0
185+
# ----------------------------------------
186+
180187
USER ${STACKABLE_USER_UID}
181188

182189
ENV HOME=/stackable

hbase/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,13 @@ chown -R ${STACKABLE_USER_UID}:0 /stackable
362362
chmod -R g=u /stackable
363363
EOF
364364

365+
# ----------------------------------------
366+
# Attention: We are changing the group of all files in /stackable directly above
367+
# If you do any file based actions (copying / creating etc.) below this comment you
368+
# absolutely need to make sure that the correct permissions are applied!
369+
# chown ${STACKABLE_USER_UID}:0
370+
# ----------------------------------------
371+
365372
USER ${STACKABLE_USER_UID}
366373
ENV HBASE_CONF_DIR=/stackable/hbase/conf
367374
ENV HOME=/stackable

hello-world/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ chown -R ${STACKABLE_USER_UID}:0 /stackable
2828
chmod -R g=u /stackable
2929
EOF
3030

31+
# ----------------------------------------
32+
# Attention: We are changing the group of all files in /stackable directly above
33+
# If you do any file based actions (copying / creating etc.) below this comment you
34+
# absolutely need to make sure that the correct permissions are applied!
35+
# chown ${STACKABLE_USER_UID}:0
36+
# ----------------------------------------
37+
3138
USER ${STACKABLE_USER_UID}
3239
WORKDIR /stackable
3340

hive/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ EOF
142142
COPY --chown=${STACKABLE_USER_UID}:0 --from=hive-builder /stackable/jmx /stackable/jmx
143143
COPY hive/licenses /licenses
144144

145+
# ----------------------------------------
146+
# Attention: We are changing the group of all files in /stackable directly above
147+
# If you do any file based actions (copying / creating etc.) below this comment you
148+
# absolutely need to make sure that the correct permissions are applied!
149+
# chown ${STACKABLE_USER_UID}:0
150+
# ----------------------------------------
151+
145152
USER ${STACKABLE_USER_UID}
146153

147154
ENV HADOOP_HOME=/stackable/hadoop

kafka/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ chown -R ${STACKABLE_USER_UID}:0 /stackable
102102
chmod -R g=u /stackable
103103
EOF
104104

105+
# ----------------------------------------
106+
# Attention: We are changing the group of all files in /stackable directly above
107+
# If you do any file based actions (copying / creating etc.) below this comment you
108+
# absolutely need to make sure that the correct permissions are applied!
109+
# chown ${STACKABLE_USER_UID}:0
110+
# ----------------------------------------
111+
105112
USER ${STACKABLE_USER_UID}
106113

107114
ENV PATH="${PATH}:/stackable/bin:/stackable/kafka/bin"

nifi/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ chown -R ${STACKABLE_USER_UID}:0 /stackable
129129
chmod -R g=u /stackable
130130
EOF
131131

132+
# ----------------------------------------
133+
# Attention: We are changing the group of all files in /stackable directly above
134+
# If you do any file based actions (copying / creating etc.) below this comment you
135+
# absolutely need to make sure that the correct permissions are applied!
136+
# chown ${STACKABLE_USER_UID}:0
137+
# ----------------------------------------
138+
132139
USER ${STACKABLE_USER_UID}
133140

134141
ENV HOME=/stackable

omid/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ chown -R ${STACKABLE_USER_UID}:0 /stackable
101101
chmod -R g=u /stackable
102102
EOF
103103

104+
# ----------------------------------------
105+
# Attention: We are changing the group of all files in /stackable directly above
106+
# If you do any file based actions (copying / creating etc.) below this comment you
107+
# absolutely need to make sure that the correct permissions are applied!
108+
# chown ${STACKABLE_USER_UID}:0
109+
# ----------------------------------------
110+
104111
USER ${STACKABLE_USER_UID}
105112
WORKDIR /stackable/omid-tso-server
106113

0 commit comments

Comments
 (0)