jhipster-registry: JHipster registry docker image doesn't work on OpenShift
Overview of the issue
JHipster registry docker image (on DockerHub) needs to have root access. It need to write in /target directory for logs. This directory is not created in the dockerfile
Motivation for or Use Case
I need to maintain an override of image : `FROM jhipster/jhipster-registry:v3.1.2
RUN mkdir /target && chmod g+rwx /target
`
It’s a bad pratice that docker image needs to be root…
Reproduce the error
Just deploy hipster/jhipster-registry on minishift
You’ll get a “Could not write to /target/…” error
Related issues
Suggest a Fix
Just add RUN mkdir /target && chmod g+rwx /target
In the https://hub.docker.com/r/jhipster/jhipster-registry/~/dockerfile/
JHipster Registry Version(s)
latest : v3.1.2
Browsers and Operating System
- Checking this box is mandatory (this is just to show you read everything)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- Create /target directory and give rights to it Fix #189 allow openshift to run the image as non root. — committed to hufon/jhipster-registry by deleted user 7 years ago
I confirm it works! Thanks!