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

Redoc docker image cannot run on OpenShift #1407

Closed
Xendar opened this issue Oct 9, 2020 · 2 comments
Closed

Redoc docker image cannot run on OpenShift #1407

Xendar opened this issue Oct 9, 2020 · 2 comments

Comments

@Xendar
Copy link
Contributor

Xendar commented Oct 9, 2020

I am trying to deploy the redocly/redoc image in OpenShift.
When I'm preparing the deployment I'm getting this warning:

Image redocly/redoc runs as the root user which might not be permitted by your cluster administrator.

And indeed when the pod is starting, I get this error, hence the deployment fails:

sed: can't create temp file '/usr/share/nginx/html/index.htmlXXXXXX': Permission denied

Is there a custom image for OpenShift? Or should the Docker image be updated to run as non-root / not modify files at startup time?

@mik-laj
Copy link

mik-laj commented Oct 9, 2020

OpenShift/Heroku has quite a few different restrictions on images. It is described here: https://docs.openshift.com/enterprise/3.0/creating_images/guidelines.html

Would you like to contribute the fix?

@Xendar
Copy link
Contributor Author

Xendar commented Oct 9, 2020

OpenShift/Heroku has quite a few different restrictions on images. It is described here: https://docs.openshift.com/enterprise/3.0/creating_images/guidelines.html

Would you like to contribute the fix?

Thanks for your swift reply! I can give it a try :)

Xendar pushed a commit to Xendar/redoc that referenced this issue Oct 11, 2020
RomanHotsiy pushed a commit that referenced this issue Oct 13, 2020
Co-authored-by: Vincent LEON <vincent.leon@amadeus.com>
@Xendar Xendar closed this as completed Oct 16, 2020
shelbys added a commit to shelbys/redoc that referenced this issue Oct 20, 2020
* upstream/master:
  chore: Release 2.0.0-rc.44 🔖
  feat: new extensions hook PropertyDetailsCell + wrap property name into span
  chore: add .vscode to .gitignore (Redocly#1416)
  chore: fix tests
  chore: Release 2.0.0-rc.43 🔖
  fix: fix broken observable after mobx upgrade (Redocly#1415)
  chore: Release 2.0.0-rc.42 🔖
  chore: update test snapshot (Redocly#1414)
  chore: upgrade to mobx@6 (Redocly#1412)
  fix: make schema layout more responsive on small screen (Redocly#1411)
  docs: unqualify mobx version for react usage (Redocly#1380)
  fix: make samples accessible by keyboard (Redocly#1401)
  docs: improvements to vendor extensions topic (Redocly#1386)
  fix: hide dropdown input on IE 11 (Redocly#1403)
  feat: Dockerfile compatible with OpenShift (Redocly#1407) (Redocly#1408)
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

No branches or pull requests

2 participants