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

Support read-only file system #176

Closed
jemerald opened this issue May 12, 2021 · 1 comment · Fixed by #177
Closed

Support read-only file system #176

jemerald opened this issue May 12, 2021 · 1 comment · Fixed by #177

Comments

@jemerald
Copy link
Contributor

I tried to get plantuml/plantuml-server:jetty running on OpenShift, and go the following error:

/docker-entrypoint.sh: 98: /docker-entrypoint.sh: cannot create /var/lib/jetty/jetty.start: Read-only file system

The same error can be reproduced by running docker with --read-only option:

docker run -p 8080:8080 --read-only plantuml/plantuml-server:jetty

I've found this jetty issue which gave me the hint to get things working:

First step was to build a new image:

FROM plantuml/plantuml-server:jetty
RUN /generate-jetty-start.sh
docker build -t plantuml/plantuml-server:jetty-readonly .

And then run it with

docker run -p 8080:8080 --read-only -v /tmp/jetty plantuml/plantuml-server:jetty-readonly

Would you consider include RUN /generate-jetty-start.sh in your Dockerfile.jetty and some documentation on how to run this in read-only mode?

@arnaudroques
Copy link
Contributor

Would you consider include RUN /generate-jetty-start.sh in your Dockerfile.jetty and some documentation on how to run this in read-only mode?

Yes, of course.
The easiest way would de that you submit a merge request for that.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants