-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stateless Docker Container #9720
Comments
@Hareet or @dianabarsan - thoughts on @icrc-fdeniger question? It was my understanding that our images either bind mount key points they need to write to or are otherwise immutable and ok to reboot with 100% data loss of the non persistent data. |
it "seems" that some build process is completed at container startup. If it's the case it should done at build image phase. |
Ah - I see what you mean now about a true read only container in k8s or OpenShift vs an ephemerally writable docker container. Do you have an audit of all the instances you've had to change? Taking a look around, I see for example this entry point creates a directory. I can also see how #9141 could relate to possibly fix this if we do some updates - thanks for making the comparison and searching for other tickets! |
thanks @mrjones-plip for your feedbacks. |
The reason why One potential change I see is that we should still generate the service-worker at runtime, but not serve it statically, and instead store it in memory (??) and have a custom API route to serve it. |
@dianabarsan - I think one of the other work-arounds we had thought of might be to bind mount all the directories in the container that get written to? For sure a work around, but this should unblock any users like @icrc-fdeniger that want fully read only containers that can't write to anywhere except to bind mounted or named volumes. (Apologies if i'm using too Docker-centric terms and not K8S-centric terms!) |
thanks @dianabarsan and @mrjones-plip |
At startup, the container modifies some files in
/service/api/build/static/webapp
.On Kubernetes/OpenShift these folder are in read only mode ( stateless container approach).
A quick and dirty solution is to add this command in the image:
Describe the solution you'd like
The image should be fully operational at startup without requiring a build phase.
This issue might be related to #9141 and could potentially be resolved using a multi-stage build process.
The text was updated successfully, but these errors were encountered: