File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -143,11 +143,25 @@ echo -e "if [ -f ~/.bashrc ]; then\n\tsource ~/.bashrc\nfi" >> /stackable/.profi
143
143
144
144
chown ${STACKABLE_USER_UID}:0 /stackable/.bashrc
145
145
chown ${STACKABLE_USER_UID}:0 /stackable/.profile
146
+
147
+ # All files and folders owned by root to support running as arbitrary users
148
+ # This is best practice as all container users will belong to the root group (0)
149
+ # This is not very relevant for the operator images but this makes it consistent with `docker-images`
150
+ chown -R ${STACKABLE_USER_UID}:0 /stackable
151
+ chmod -R g=u /stackable
152
+ EOF
153
+
154
+ COPY <<EOF /README.md
155
+ # Stackable Operator for {[ operator.pretty_string }]
156
+
157
+ * This image contains version ${VERSION} of the operator.
158
+ * The operator binary can be found in `/usr/local/bin`
159
+ * It is licensed under the OSL-3.0 - the full text can be found in `/licenses/LICENSE`
146
160
EOF
147
161
148
162
COPY LICENSE /licenses/LICENSE
149
163
150
- COPY --from=builder /app/* /usr/local/bin/
164
+ COPY --from=builder --chown=${STACKABLE_USER_UID}:0 /app/* /usr/local/bin/
151
165
152
166
{[% if operator.include_productconfig is undefined or operator.include_productconfig == true %}]
153
167
COPY deploy/config-spec/properties.yaml /etc/stackable/{[ operator.name }]/config-spec/properties.yaml
You can’t perform that action at this time.
0 commit comments