Skip to content

Commit cbbfd03

Browse files
fix(database): match oracle UID to this repo's tools namespace SCC range
The restricted SCC runs the pod as the first UID of the namespace's uid-range annotation (1004950000/10000 here); the previous default was nr-waste-plus's namespace value, so the entrypoint could not write under /opt/oracle.
1 parent 936d617 commit cbbfd03

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

database/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ FROM gvenzl/oracle-free:23.9-slim-faststart
1010
# database/openshift.deploy.yml. Look the value up per namespace with:
1111
# oc get ns <plate>-tools -o jsonpath='{.metadata.annotations.openshift\.io/sa\.scc\.uid-range}'
1212
# (Same approach as nr-waste-plus legacydb.)
13-
ARG OPENSHIFT_UID=1010470000
13+
# This repo's tools namespace range is 1004950000/10000.
14+
ARG OPENSHIFT_UID=1004950000
1415
USER root
1516
RUN usermod -u ${OPENSHIFT_UID} oracle
1617
USER oracle

0 commit comments

Comments
 (0)