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

Update container to support random uid on openshift clusters (regression) #9

Closed
chrisjsimpson opened this issue Oct 2, 2022 · 0 comments · Fixed by #10
Closed

Update container to support random uid on openshift clusters (regression) #9

chrisjsimpson opened this issue Oct 2, 2022 · 0 comments · Fixed by #10

Comments

@chrisjsimpson
Copy link

Is your feature request related to a problem? Please describe.

The latest OBP-API container will not run on Openshift clusters which have random user id's (per project) enabled (which is the default). This is already a solved issue by adapting the container entrypoint but was never merged into upstream.

Example failure mode: jetty fails to start on Openshift clusters with the current Docker image , and forked image (index.docker.io/tawoe/obp-api):

WARNING: User is 1012560000
         The user should be (re)set to 'jetty' in the Dockerfile
********************************************************************
/generate-jetty-start.sh: 10: cannot create /var/lib/jetty/jetty.start: Permission denied
jetty dry run failed:

https://github.com/chrisjsimpson/obp-kubernetes/blob/openshiftcompatibility/entrypoint.sh#L1-L13

Describe the solution you'd like

Update the official container, and adapt the container entrypoint just like here but was never merged into upstream.

Describe alternatives you've considered

Additional context

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.

1 participant