Gitea: Easy Self-Hosted Git Repositories!

  Рет қаралды 32,660

apalrd's adventures

apalrd's adventures

Күн бұрын

Пікірлер: 63
@Felix-ve9hs
@Felix-ve9hs Жыл бұрын
I also tried Gitea in a Jail some time ago and have been using it ever since to have version control for my (very simple) Ansible tasks and playbooks. The best thing about Gitea is that I don't have to worry about leaking information about my internal networks like I did with github. :)
@apalrdsadventures
@apalrdsadventures Жыл бұрын
That’s basically my use case. Ansible, storing config backups of switches and routers, that kind of stuff.
@esra_erimez
@esra_erimez Жыл бұрын
Its good that they have work programs like this in jail. Hopefully, when you get out, you'll be able to get a job in I.T. Sorry, I couldn't resist. 😁
@Felix-ve9hs
@Felix-ve9hs Жыл бұрын
@@esra_erimez I already work in IT and am currently trying to handle a lot of customer firewalls and routers in a team that is way too small... But thanks I guess
@siberx4
@siberx4 Жыл бұрын
If you don't need all the issue management and ancillary niceties of Github and simply want your own self-hosted git repositories for syncing work between various machines you control, there's also a little-known feature of Git that allows you to set _any random accessible folder_ on your system as an "upstream" for the local repository. Combined with a mounted network fileshare (SMB or whatever else you prefer), this can provide an extremely low-effort way to centralize and back up your git work and sync it between machines. If you already have a fileserver at home, you need literally nothing else other than creating a git folder on it. I use this in conjunction with Sourcetree at home, but it works just as well from git's command-line interface or whatever IDE integration you prefer.
@RudyBleeker
@RudyBleeker Жыл бұрын
What you're referring to is known as a "bare git repository" and is indeed the simplest way to get a git remote set up that can be shared with multiple people. A bare git repository is simply a git repository without a work directory, so everything that would normally be in the .git directory of a repository is now in it's base directory.
@JivanPal
@JivanPal Жыл бұрын
I have done this to work with branches over SSH on two laptops I own. Very handy.
@andrewcrook6444
@andrewcrook6444 Жыл бұрын
I have been using Gitea for a year it’s great I like the fact you can create package repositories for docker, npm etc
@NetBandit70
@NetBandit70 Жыл бұрын
I predict a password management video in the future
@mxb1115
@mxb1115 3 ай бұрын
A big thank you !!! I'm learning web development and it's a big step thanks to you.
@TheDark0rb
@TheDark0rb Жыл бұрын
Love the mug 😸
@LampJustin
@LampJustin Жыл бұрын
With systemctl you can also use the flag --no-block to not wait for the service to get healthy
@ws_stelzi79
@ws_stelzi79 Жыл бұрын
Man you read my mind a second time! I was recently looking at Gitea! 🤔🤨
@АлексейГрищенко-с1г
@АлексейГрищенко-с1г Жыл бұрын
Can you show how to configure git via ssh in gitea? There are many problems with url and users when we try to use ssh
@computersindia
@computersindia 6 ай бұрын
Thanks for wonderful and informative tutorial.!.!!
@MrBrutalmetalhead
@MrBrutalmetalhead Жыл бұрын
Been using Gitea for a couple years. recently being playing around with Gitea actions
@blevenzon
@blevenzon Жыл бұрын
You’re the best! Thank you so much
@kirksteinklauber260
@kirksteinklauber260 Жыл бұрын
Nice video!! I like to understand how to use GIT. Is it possible that you can do a tutorial?
@CommanderBeefDev
@CommanderBeefDev Жыл бұрын
bro are you good enough with archiso or somethiing else in order to make a distro? i got a really good os and its all arch based with tiling and gnome and steamos haha
@wannab009
@wannab009 2 ай бұрын
i get errors with creating the system user, user already exist and cannot read /var/lib/gitea/lost+found permission denied so chown also does not work on that folder
@wannab009
@wannab009 2 ай бұрын
other than that, gitea is working
@projectpanic2291
@projectpanic2291 3 ай бұрын
Are there any implications of self-hosting repos, specifically Infra-as-code, and disaster recovery?
@apalrdsadventures
@apalrdsadventures 3 ай бұрын
In general a Git repo is stored as files in a folder, so recovering it doesn't require Gitea to be running. As to recovering infrastructure, sometimes it's good to have a bootstrapping plan on how to setup a minimal set of functions to get the code back to provision everything again.
@projectpanic2291
@projectpanic2291 3 ай бұрын
@@apalrdsadventures I assume that Ansible, Terraform, and other related tools are part of a good recovery plan. Is your Ansible video still in the works?
@apalrdsadventures
@apalrdsadventures 3 ай бұрын
Ansible is in the long term plans, not being produced yet. I'm slowly working on setting up some things I'd like to have in place before I start with IaaC (specifically, Netbox). I won't make a video until I'm using Ansible, so that's part of the delay. I did work through a Netbox test setup, so at least that is moving along and a video on that will come out eventually. I did just have to do a disaster recovery (ironically, the backup server itself failed) and the PBS dataset was very useful. I'll probably have a video on mounting / using PBS datasets for disaster recovery soon.
@eschofield1
@eschofield1 Жыл бұрын
I think a video on mTLS would be interesting.
@nbensa
@nbensa Жыл бұрын
I'm looking for an alternative to Gitlab. Does Gitea have CI/CD? I'm looking forward to that Ansible tutorial!!!
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Yup, they have Gitea Actions if you setup an act runner(s) to run the jobs. I didn't set that up here since I'm not planning on using them, but they do exist.
@nbensa
@nbensa Жыл бұрын
@@apalrdsadventuresOh, thank you!!!!
@la1n-
@la1n- Жыл бұрын
@@apalrdsadventures I had gitea running for a few years and used woodpecker for ci but it was kind of a hassle to get it up and running (I never really got it done the way I wanted to). Gitea Actions are new to me, I'll have to give that feature a try, thanks for making me aware of it. Seems way more convenient to have everything out of the box integrated without having to stitch it together yourself, less moving parts.
@blkgames1447
@blkgames1447 7 ай бұрын
@@la1n- Are you still using Gitea actions? If the performance is not as good as GitHub Actions, do you have any recommendations?
@-xoiox-9332
@-xoiox-9332 2 ай бұрын
You made a typo at the end of the blog post: "journactl -xeu gitea" should be "journalctl -xeu gitea". But great tutorial!
@Sc4rEye
@Sc4rEye 8 ай бұрын
Hey apalrd, when are you going to do the ansible semaphore video?
@alex1520
@alex1520 11 ай бұрын
The systemd unit hang is because they have the type set in the unit as "Notify" which expects the application to notify systemd its ready by calling sdnotify() - it seems that unless you have done the initial install page, this doesnt take place, so the unit hangs waiting for the notification then eventually hits its wait timeout. Its something stupid that tripped me up when installing for the first time - they really need to document it so people are not caught out by it. For me it wasnt a big deal, i have a firm grasp on linux and systemd, for others it might leave them scratching their head for a bit.
@demanuDJ
@demanuDJ Жыл бұрын
Why you dont install gitea as docker container? I know that you're using LXC but docker installation is pretty simple
@NetBandit70
@NetBandit70 Жыл бұрын
Podman > Docker
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Gitea is a single binary. Installing it is just downloading and executing the binary. It doesn't need a whole package for its single binary.
@NetBandit70
@NetBandit70 Жыл бұрын
@@apalrdsadventures By that logic, it doesn't need to be run in a LXC container either; bare metal server should suffice?
@apalrdsadventures
@apalrdsadventures Жыл бұрын
Of course, it'll work just fine bare metal. I am containerizing it for networking reasons, not dependency isolation. Docker is really bad at networking, so that's something I avoid. I want the service to have its own DNS name and IP address so it can bind to 80/443 without any other layers, which basically means it needs its own network namespace on Linux if I'm sharing the hardware with other services. I could do that purely with systemd on bare metal, but if I'm already using Proxmox it's easier to create an LXC container, which will get a network namespace as well as a good backup system. What it doesn't need is to be isolated due to dependency hell like a node.js app. It also doesn't need a mess of NAT / userspace-proxy to get IPv6 working like Docker does.
@shlokbhakta2893
@shlokbhakta2893 11 ай бұрын
@@apalrdsadventuresvalid, if it works then it works lol 😂
@eins_namelezz
@eins_namelezz Жыл бұрын
Nice video
@madst7521
@madst7521 Жыл бұрын
I've used gitolite in the past for simple local git hosting.
@haxwithaxe
@haxwithaxe Жыл бұрын
The only problem I've had with gitea in about a year or so of operation is that it's sensitive to filesystem latency. If I add a new glusterfs brick to my potato cluster it can't get a file lock until it's done syncing. Other than that I'm very happy with it.
@str0g
@str0g Жыл бұрын
what about a video where you have to authenticate against an ldap infrastructure? Could you do that tutorial as an extention to this tutorial?
@alex1520
@alex1520 11 ай бұрын
I assume its possible to front it with something like Nginx instead. Letting gitea use port 443 might not be so convenient for people who might have a http service like nginx already using that port. You can then just let Nginx handle all the TLS stuff and have it proxy requests for the virtual host you create in Nginx for gitea over to the ip:port that gitea is listening on.
@RudyBleeker
@RudyBleeker 11 ай бұрын
Yes that is certainly possible. There is even an advanced setup where you can have nginx serve the static content for Gitea from a different web root and let Gitea only handle the dynamic content, proxied and ssl offloaded by nginx of course. This will improve performance especially for large sites with lots of users
@АлексейГрищенко-с1г
@АлексейГрищенко-с1г Жыл бұрын
LetsEncrypt certificate don't work. Gitea service can't start.
@tech-with-nd
@tech-with-nd Жыл бұрын
hm, why not just a self-hosted gitlab?
@autohmae
@autohmae Жыл бұрын
Because Gitlab is more complicated and uses more resources. That said: I'm use Gitlab at the company I work at and it does the job.
@RudyBleeker
@RudyBleeker Жыл бұрын
There's no such thing as "just" setting up a self-hosted Gitlab, it's way more complex to set up and manage than Gitea. I try to avoid it whenever I can. I've found that at most of the companies that I've worked at, they don't use half the features Gitlab offers and could make due just fine with Gitea, which is 100% free. But I guess they just want the support that comes with the Enterprise Edition of Gitlab. That said, if you're doing complex things with Git and have big repositories with CI/CD and all bells and whistles, Gitlab is the way to go.
@zsteva
@zsteva Жыл бұрын
every ssh account can self host git repository, only requarement is installed git command.
@apalrdsadventures
@apalrdsadventures Жыл бұрын
That doesn’t give you the same level of permission control though, at least without some additional tool
@JivanPal
@JivanPal Жыл бұрын
Issue tracking?
@ArnTodd1337
@ArnTodd1337 4 ай бұрын
I wonder how to install Taranis AI😀
@jameskind173
@jameskind173 11 ай бұрын
container id should have been 418 ;)
@CommanderBeefDev
@CommanderBeefDev Жыл бұрын
pls reply to me if you can help me with linux development
@hydradragonantivirus
@hydradragonantivirus 8 ай бұрын
Gitea is criticized by someone it means it's not self hosted.
Migrating my PERSONAL SERVER from TrueNAS to Proxmox + Cockpit
33:31
apalrd's adventures
Рет қаралды 38 М.
Live demo 💻 Gitea.com #opensource Github alternative
7:59
DID A VAMPIRE BECOME A DOG FOR A HUMAN? 😳😳😳
00:56
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 1,3 МЛН
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,9 МЛН
Day 1/40 - Docker Tutorial For Beginners - Docker Fundamentals - CKA Full Course 2024
25:22
Self-Hosted TRUST with your own Certificate Authority!
26:25
apalrd's adventures
Рет қаралды 33 М.
Building your own Git Server with Gitea on AlmaLinux
39:52
Learn Linux TV
Рет қаралды 27 М.
HOW TO SETUP OPNsense: From First Boot to Fully Functional (with IPv6!)
38:15
How to install Gitea, a self hosted git server.
27:17
Hardwood Homelab
Рет қаралды 453
HomeLab Services Tour 2024 - What Am I Self Hosting?
40:00
Techno Tim
Рет қаралды 459 М.
Gitea-01: домашний github (+ actions)
17:49
RealManual | Егоров Василий
Рет қаралды 2,5 М.
Setting up *Your Own* Git Server
12:14
Luke Smith
Рет қаралды 164 М.
What is a bare Git repo and why you need them
5:55
Engineer Man
Рет қаралды 68 М.
DID A VAMPIRE BECOME A DOG FOR A HUMAN? 😳😳😳
00:56