-
Notifications
You must be signed in to change notification settings - Fork 280
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
Deployment fails on Openshift #175
Comments
cc: @gamkiller77 |
You have to have a SCC setup for less restrictive for this to work. It beat to aka Openshift support for those doc. Also way is to run it priv but that is not recommended. |
I am on a production platform which prevents containers running as root, for security reasons. Is there any way to have dockerized cachet running as non root ? |
So this less restrictive lets a pod start as root then switch so in production it ok. We do this at my company as most containers out in the wild do have root setup. On the other hand @djdefi you guys should look at removing the need to run the container as root. |
Ok guys, I made it work using source to image with official cachet (and some dirty manipulations) |
@cyril-dussert yah we do not use S2I where I work. I still think @djdefi that container needs to not run in root. This is going to be a bigger problem as more people use Kubernetes. |
How @cyril-dussert ? |
It is pretty easy, but not usable for production deployment, if you wantto share a full template of cachet fully automated, you will have to automate these steps :
This will increase perfs of original RedHat's php image
And copy .env.example to a .env, with database credentials, your app url and so on... And enjoy then ;) It is not really comfortable but it works.. You can also pass through environment variables your database credentials, but don't forget to remove them from your .env file unless, the file has priority over environment variables |
I shipped #178 which should run everything as a non-root user. I don't have an environment to reproduce your issue in, so let me know if there is anything else we can do here. |
Thanks @djdefi Rayn i will test this out later this week and remove the less restrictive from my DC config. |
Please open an new issue if you are still having trouble with the latest v2.3.11 release. |
Hi, I'm trying to deploy cachet using the DeploymentConfig provided
But I'm facing an issue, the deployment fails each time with the following error message :
So the pod can't be created...
I tried with both OpenShift 3.3 & 3.4
Hope you will can help me
Regards,
Cyril D.
The text was updated successfully, but these errors were encountered: