Skip to content

per pvc per repo #18586

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

Closed
nishit93-hub opened this issue Feb 3, 2022 · 3 comments
Closed

per pvc per repo #18586

nishit93-hub opened this issue Feb 3, 2022 · 3 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/question Issue needs no code to be fixed, only a description on how to fix it yourself.

Comments

@nishit93-hub
Copy link

Feature Description

Hi, Can we do per pvc per repo with gitea?

Screenshots

No response

@techknowlogick techknowlogick added the type/question Issue needs no code to be fixed, only a description on how to fix it yourself. label Feb 3, 2022
@techknowlogick
Copy link
Member

Could you explain in more detail about what you mean by pvc?

@techknowlogick techknowlogick added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Feb 3, 2022
@nishit93-hub
Copy link
Author

The PVC means is Kubernetes PVC ( persistent volume claim). Currently, I have set up Gitea on kubernetes with 1 PVC and mounted that pvc under path /data.

Now whenever I create a new repository, it creates an under /data mount path. But I want every repository should be created under every different mount path which would be associated with different PVC.

Same thing I am doing by setting my own GitSCM server on k8s. Here it's manifest.yaml

    image: ubuntu:latest
      ports:
      - containerPort: 22
      lifecycle:
        postStart:
          exec:
            command: ['/bin/sh', '-c', 'apt update; apt install -y git; apt-get install -y openssh-server tzdata-; /etc/init.d/ssh start; useradd -m git; echo "git:password" | chpasswd; mkdir -p /home/git/.ssh; cp /root/.ssh/* /home/git/.ssh; cp /root/.ssh/git-scm.pub /home/git/.ssh/authorized_keys; for dir in /home/git/repos/*; do(git init --bare "$dir"); chown -R git:git /home/*; done > git-logs.log']
      command: ['sh', '-c', 'sleep 6600']      
      volumeMounts:
      - mountPath: /home/git/repos/wordpress1
        name: git-wordpress1
      - mountPath: /home/git/repos/spring-boot1
        name: git-spring-boot1
      - mountPath: /home/git/repos/dockerfile
        name: git-dockerfile
      - name: ssh-key
        mountPath: /root/.ssh  

I am using ubuntu docker image and there I installed git and created bare repos and each repos are mounted to a different mount path. However currently I don't have any UI.

That's why I am checking Gitea so that I can get such configuration and plus UI.

@lunny
Copy link
Member

lunny commented Feb 17, 2022

I think this could be done based on #18147 . We can have a new implementation about how to store the git repositories.

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/question Issue needs no code to be fixed, only a description on how to fix it yourself.
Projects
None yet
Development

No branches or pull requests

3 participants