Skip to content

Commit 2d8123c

Browse files
authored
Merge pull request #5 from ExposuresProvider/add-user
Sterling had been having some permission issues when trying to run cam-pipeline earlier this month. I'm not sure what caused it, but adding an nru (non-root user) and changing the permissions on the PVC so that /current and /success are both owned by this user seems to have fixed it. Also, running this job as a non-root user is better from a security perspective.
2 parents 1a58115 + 214494a commit 2d8123c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@ RUN curl -O -L https://github.com/balhoff/ctd-to-owl/releases/download/v$CTD/ctd
5151
&& tar -zxf ctd-to-owl-$CTD.tgz \
5252
&& chmod +x /tools/ctd-to-owl-$CTD
5353
ENV PATH "/tools/ctd-to-owl-$CTD/bin:$PATH"
54+
55+
## Set USER to nru
56+
RUN useradd -m -u 1000 nru
57+
USER nru

0 commit comments

Comments
 (0)