WIP: flora-6/gitea: Move towards docker containers #161

Closed
b12f wants to merge 1 commit from update/gitea-docker into infra
Owner
No description provided.
b12f added 1 commit 2023-01-31 21:53:54 +00:00
flora-6/gitea: Move towards docker containers
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
1874463c4e
teutat3s requested changes 2023-02-01 09:51:52 +00:00
teutat3s left a comment
Owner

Thanks for starting this - I hope this will fix our little gpg core dump problem as well.

I'd vote for the option: https://docs.gitea.io/en-us/install-with-docker/#sshing-shell-with-authorized_keys for the SSH access to the container, as it seems the most easy to understand for me (for future readers to understand what we're doing here).

Thanks for starting this - I hope this will fix our little gpg core dump problem as well. I'd vote for the option: https://docs.gitea.io/en-us/install-with-docker/#sshing-shell-with-authorized_keys for the SSH access to the container, as it seems the most easy to understand for me (for future readers to understand what we're doing here).
@ -18,1 +18,4 @@
users.users.git = {
description = "Gitea SSH Service";
home = "/var/lib/gitea/git";
Owner

Let's stick to the gitea docs:

    home = "/home/git";
Let's stick to the gitea docs: ``` home = "/home/git"; ```
@ -19,0 +19,4 @@
users.users.git = {
description = "Gitea SSH Service";
home = "/var/lib/gitea/git";
useDefaultShell = false;
Owner
    shell = "/home/git/ssh-shell";
``` shell = "/home/git/ssh-shell"; ```
@ -19,0 +20,4 @@
description = "Gitea SSH Service";
home = "/var/lib/gitea/git";
useDefaultShell = false;
uid = 995;
Owner

995 is taken by user systemd-oom, uid 992 is still free on flora-6.

`995` is taken by user `systemd-oom`, uid `992` is still free on flora-6.
@ -19,0 +32,4 @@
oci-containers = {
backend = "docker";
containers."gitea" = {
image = "gitea:gitea:1.18.3";
Owner
       image = "gitea/gitea:1.18.3";
``` image = "gitea/gitea:1.18.3"; ```
@ -19,0 +34,4 @@
containers."gitea" = {
image = "gitea:gitea:1.18.3";
autoStart = true;
user = "995";
Owner

Let's use 992 here, too.

Let's use `992` here, too.
@ -19,0 +40,4 @@
"127.0.0.1:2222:22"
];
volumes = [
"/var/lib/gitea:/data"
Owner
          "/home/git/.ssh/:/data/git/.ssh"
``` "/home/git/.ssh/:/data/git/.ssh"
@ -19,0 +42,4 @@
volumes = [
"/var/lib/gitea:/data"
# Secrets go in the app.ini file, the rest wil be done in nix via environment variables
"/var/lib/gitea/custom/conf/app.ini:/${config.age.secrets.gitea-secrets-app-ini.path}"
Owner
          "${config.age.secrets.gitea-secrets-app-ini.path}:/data/gitea/conf/app.ini" 
``` "${config.age.secrets.gitea-secrets-app-ini.path}:/data/gitea/conf/app.ini" ```
@ -19,0 +51,4 @@
];
environment = {
USER_UID = "postgres";
USER_GID = "postgres";
Owner

Let's match the user inside the container with the git user on the host

          USER = "git";
          USER_UID = "992";
          USER_GID = "991";
Let's match the user inside the container with the `git` user on the host ``` USER = "git"; USER_UID = "992"; USER_GID = "991"; ```
@ -19,0 +58,4 @@
DB_TYPE = "postgres";
DB_HOST = "gitea-db";
DISABLE_REGISTRATION = "true";
};
Owner
        dependsOn = ["gitea-db"];
``` dependsOn = ["gitea-db"]; ```
Owner

Superseeded by #176

Superseeded by #176
teutat3s closed this pull request 2023-03-05 15:58:39 +00:00
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pub-solar/os#161
No description provided.