Skip to content
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

Open
icrc-fdeniger opened this issue Dec 19, 2024 · 2 comments
Open

Stateless Docker Container #9720

icrc-fdeniger opened this issue Dec 19, 2024 · 2 comments
Labels
Type: Feature Add something new

Comments

@icrc-fdeniger
Copy link

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:

RUN chmod -R a+rwX /service/api/build/static/webapp

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.

@icrc-fdeniger icrc-fdeniger added the Type: Feature Add something new label Dec 19, 2024
@mrjones-plip
Copy link
Contributor

@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.

@icrc-fdeniger
Copy link
Author

it "seems" that some build process is completed at container startup. If it's the case it should done at build image phase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Add something new
Projects
None yet
Development

No branches or pull requests

2 participants