[PR #4749] [CLOSED] [WIP] Rootless docker #17485

Closed
opened 2025-11-02 13:37:56 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4749
Author: @sapk
Created: 8/20/2018
Status: Closed

Base: masterHead: rootless-docker


📝 Commits (1)

  • 21e5043 First step to rootless docker

📊 Changes

15 files changed (+42 additions, -114 deletions)

View changed files

📝 Dockerfile (+9 -8)
docker/etc/profile.d/gitea.sh (+0 -2)
docker/etc/s6/.s6-svscan/finish (+0 -2)
docker/etc/s6/gitea/finish (+0 -2)
docker/etc/s6/gitea/run (+0 -6)
docker/etc/s6/openssh/finish (+0 -2)
docker/etc/s6/openssh/run (+0 -6)
docker/etc/s6/openssh/setup (+0 -29)
docker/etc/s6/syslogd/finish (+0 -2)
docker/etc/s6/syslogd/run (+0 -6)
docker/etc/s6/syslogd/setup (+0 -1)
docker/etc/ssh/sshd_config (+0 -31)
📝 docker/etc/templates/app.ini (+7 -0)
📝 docker/usr/bin/entrypoint (+18 -15)
📝 docker/usr/bin/setup (+8 -2)

📄 Description

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 :

  • It listen on 2222 for ssh
  • It use the internal ssh server

With that change, we lost :

  • The configuration of uid via USER_UID USER_GID (Because we are not root we can not change the passwd file)

I will search if there is any solution around to allow to setup the uid user of the container.

Related: #1190


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4749 **Author:** [@sapk](https://github.com/sapk) **Created:** 8/20/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `rootless-docker` --- ### 📝 Commits (1) - [`21e5043`](https://github.com/go-gitea/gitea/commit/21e50436c338064a0047d353e5981db7fd1a3574) First step to rootless docker ### 📊 Changes **15 files changed** (+42 additions, -114 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+9 -8) ➖ `docker/etc/profile.d/gitea.sh` (+0 -2) ➖ `docker/etc/s6/.s6-svscan/finish` (+0 -2) ➖ `docker/etc/s6/gitea/finish` (+0 -2) ➖ `docker/etc/s6/gitea/run` (+0 -6) ➖ `docker/etc/s6/openssh/finish` (+0 -2) ➖ `docker/etc/s6/openssh/run` (+0 -6) ➖ `docker/etc/s6/openssh/setup` (+0 -29) ➖ `docker/etc/s6/syslogd/finish` (+0 -2) ➖ `docker/etc/s6/syslogd/run` (+0 -6) ➖ `docker/etc/s6/syslogd/setup` (+0 -1) ➖ `docker/etc/ssh/sshd_config` (+0 -31) 📝 `docker/etc/templates/app.ini` (+7 -0) 📝 `docker/usr/bin/entrypoint` (+18 -15) 📝 `docker/usr/bin/setup` (+8 -2) </details> ### 📄 Description 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 : - It listen on 2222 for ssh - It use the internal ssh server With that change, we lost : - The configuration of uid via USER_UID USER_GID (Because we are not root we can not change the passwd file) I will search if there is any solution around to allow to setup the uid user of the container. Related: #1190 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 13:37:56 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17485