Skip to content

Commit 7ec47d3

Browse files
authored
Merge pull request #191 from mwestphall/feature/kubernetes-probe-any-uid
Update gratia directory permissions in k8s probe to allow running under any uid
2 parents f67df90 + c9aa125 commit 7ec47d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kubernetes/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.n
1111
yum install -y https://repo.osg-htc.org/osg/$OSG_SERIES-main/osg-$OSG_SERIES-main-el9-release-latest.rpm && \
1212
yum install -y gratia-probe-common python3-pip
1313

14-
# Make probe runnable as non-root
15-
RUN chown -R $UID:$GID /var/lock/gratia /var/lib/gratia/data /var/lib/gratia/tmp /var/log/gratia
14+
# Make probe runnable as any non-root user by giving /tmp-like permissions to gratia system directories
15+
RUN chmod 1777 /var/lock/gratia /var/lib/gratia/data /var/lib/gratia/tmp /var/log/gratia
16+
1617
WORKDIR /gratia
1718
COPY requirements.txt /gratia
1819
RUN pip install -r requirements.txt

0 commit comments

Comments
 (0)