https://prefect.io logo
Title
e

Emma Rizzi

12/12/2022, 9:39 AM
Hi! I'm using Prefect 1.2.4 with docker storage and kubernetes agent I need to change the umask of the flows as they are writting to shared storage. I tried setting it in the .bashrc as I did for my users outside of flows, but apparently it is ready only for interractive sessions so not with flows! I see the recommended way is to set the umask in the entrypoint of the docker, example :
ENTRYPOINT ["./set_umask.sh"]
https://codeyarns.com/tech/2017-07-21-how-to-set-umask-for-docker-container.html#gsc.tab=0 Is there a way to override the entrypoint of the flow ? Or any other solution to set umask?
👀 1
1️⃣ 1
to anyone comming to this thread someday, I solved it using the python os library that simply has a function to change the umask and works in the prefect context 🙂 https://stackoverflow.com/questions/10291131/how-to-use-os-umask-in-python