Open antoinetran opened 7 months ago
Workaround in nats helm chart. Write a values.yaml:
natsBox:
container:
merge:
resources: {}
# OpenShift: no root means cd /root gives permission denied
workingDir: /tmp
Although I am using nats helm chart, this is for me a bug in nats-box image itself. Which is why this issue is in this repository.
What version were you using?
nats helm chart 1.1.10
What environment was the server running in?
Kubernetes OpenShift
Is this defect reproducible?
Yes
In OpenShift environment with no root policy. When deploying nats helm chart:
In a simpler way, with just docker:
Given the capability you are leveraging, describe your expectation?
The working dir set in Dockerfile https://github.com/nats-io/nats-box/blob/main/Dockerfile#L54 should not be /root, because in production environment, images are launched as non root. Instead, the working dir should be agnostic of that, by example by setting it to /tmp.
Given the expectation, what is the defect you are observing?
Deployment of nats-box in error. Logs says permission denied for /root.