kube-HPC / hkube

🐟 High Performance Computing over Kubernetes - Core Repo 🎣
http://hkube.io
MIT License
303 stars 20 forks source link

In some environments, hkube/site doesn't have permissions #1880

Open RonShvarz opened 5 months ago

RonShvarz commented 5 months ago

When the pod starts, the docker script writes some static pages, and it fails with the message : "Error: EACCES: permission denied, open '/.babel.json'.

Solution : Add environment variable - BABEL_DISABLE_CACHE=1

RonShvarz commented 4 months ago

Also, in oc, where there is no Nginx, the following yaml needs to be applied :

site-ingress.txt

RonShvarz commented 4 months ago

In site docker file, add the following: ... FROM ... USER root RUN chgrp -R 0 /hkube/sync-server && chmod -R g=u /hkube/sync-server