From a8943c905d68661b79b8e8e3f86297335442e2ce Mon Sep 17 00:00:00 2001 From: Athanasios Karmas <karmas@athenarc.gr> Date: Mon, 19 Jul 2021 09:05:12 +0000 Subject: [PATCH] Update create_job.sh to run OpenShift job with specific user id --- create_job.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/create_job.sh b/create_job.sh index 13f4801b..8e6cfe85 100644 --- a/create_job.sh +++ b/create_job.sh @@ -22,9 +22,15 @@ spec: metadata: name: testjob spec: + securityContext: + supplementalGroups: [1000410000] + seLinuxOptions: + level: s0:c25,c10 containers: - name: simplejob image: docker-registry.ebrains.eu/tc/ebrains-spack-build-env:latest + securityContext: + runAsUser: 1000410000 volumeMounts: - name: sharedbin mountPath: /srv -- GitLab