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 · 4 comments
Open

Stateless Docker Container #9720

icrc-fdeniger opened this issue Dec 19, 2024 · 4 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.

@mrjones-plip
Copy link
Contributor

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!

@icrc-fdeniger
Copy link
Author

thanks @mrjones-plip for your feedbacks.
The issue is that the content of the folder /service/api/build/static/webapp is modified at startup ( some js files). Normally these content should be changed and be all computed at docker build stage.

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