Open gregswift opened 7 years ago
This is an ephemeral demo which requires these dependencies as there are a lot of variants of RedHat Openshift like OCP, Openshift dedicated and other offerings. The idea is to just give a glimpse into how artifactory runs inside openshift and not to be used for production environment openshift installations.
I am a cluster-admin, and so I did not create a special user with cluster-admin privileges, or anyuid, or scc, etc. A normal app that we deploy in our environment should not have these privileges.
From your new-app command:
If this is intended to run on openshift, you really should make a few changes.
In
os.sh
one of the steps isoc adm policy add-scc-to-group anyuid system:authenticated
Which grants anyuid to any user that has authenticated on the system.So the container starting account (the service account) has now been granted the “anyuid” capability which means it can start as root and therefore perform chown/chmod and other root level commands. Of course, I would much rather that the container was changed to be able to run without requiring root permissions, but I am trying to run a pre-packaged image here.
sourceWhether I add the rest of the permissions or not this is what I get when I start the app: