-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[WIP] Rootless docker #4749
[WIP] Rootless docker #4749
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4749 +/- ##
==========================================
+ Coverage 20.7% 20.71% +<.01%
==========================================
Files 167 167
Lines 32359 32359
==========================================
+ Hits 6699 6702 +3
+ Misses 24678 24676 -2
+ Partials 982 981 -1
Continue to review full report at Codecov.
|
@sapk , this is great! Is there a build I could test? If not, when one is available let me know and I can try it out on OpenShift. |
Hey all, any progress on this? I see merging is blocked. |
@pittar it should already work but I will be careful before changing how the container works 😈. It will add some security but we loose container configuration. If I remember it is possible to change uid/gid and more with option (--group-add and --user) and keep the same flexibility as before but I haven't tested those (yet). and the merge is blocked because this PR doesn't have LGT-M validation |
Hey @sapk , thanks for this. So, I built a new image based on your fork and it let me start Gitea (sweet!). My problem now is that I hit the main page just fine, but as soon as I hit "Register" it asks me for install info. This is fine, except it also wants a "Run as" user. OpenShift seems to be saying the user is "unknown" and with a random id.
I can't put in a valid "Run as" user, so I can't complete the install. Any guidance would be greatly appreciated. Thanks! |
@pittar did you try to put the uid in the runas field ? (1000500000) |
@sapk , thanks for the suggestion, but that doesn't work. It wouldn't do much good, since OpenShift assigns random UIDs on start. I've made some progress by locking the install and switching the USER command to 1000 instead of git. My issue now is that it says permission denied on the .gitconfig file:
I'm assuming the git user (1000) doesn't have access to wherever that file is? |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions. |
This pull request has been automatically closed because of inactivity. You can re-open it if needed. |
Like the comment that is posted. Ex: go-gitea#4749 is closed after 2 weeks and not 2 months
Like the comment that is posted. Ex: #4749 is closed after 2 weeks and not 2 months
This would be breaking some configs for docker.
So I will keep it as WIP because I may haven't done the good choices and this PR need changes to be merge. For examples, new config where introduce and need to be configured via env var. And maybe some people would be opposed to those changes.
To do rootless :
With that change, we lost :
I will search if there is any solution around to allow to setup the uid user of the container.
Related: #1190