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

Container can't run on OpenShift container platform #381

Open
1 task done
DataOps7 opened this issue Sep 11, 2024 · 2 comments
Open
1 task done

Container can't run on OpenShift container platform #381

DataOps7 opened this issue Sep 11, 2024 · 2 comments

Comments

@DataOps7
Copy link

Version

5.2.0

Details & Steps to reproduce

Currently, the provided Docker image can't run on OpenShift (Red Hat Kubernetes) as it doesn't follow some security requirements,
There's a great article here outlining everything needed from the container maintainers:

https://developers.redhat.com/blog/2020/10/26/adapting-docker-and-kubernetes-containers-to-run-on-red-hat-openshift-container-platform

Thanks!

Expectation

The container running without special set up

Error & Logs

/bin/sh: can't open '/usr/local/bin/entrypoint.sh': Permission denied

Execution environment

OpenShift Container Platform

Containerization

  • Docker

Additional information

No response

@Eroyi
Copy link

Eroyi commented Sep 13, 2024

You may mod these lines, build your own image to bypass the Openshift security enforcement

2FAuth/Dockerfile

Lines 107 to 109 in a707ad3

ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
COPY --chown=${UID}:${GID} docker/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod 500 /usr/local/bin/entrypoint.sh

@DataOps7
Copy link
Author

I want to avoid building my own image as I'll need to build a new one for every release.
This is a security improvement that everyone would benefit from so I would suggest adding this to your main Dockerfile.

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