Self Host Your Own Git Repository With Gitea!!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys what's going on it's Don here from Nova Spirit Tech and welcome back to the channel and one of the things I highly recommend installing in your Docker setup right now is get te so let's check it [Music] out now this gives you ability to run your own GitHub basically so you could actually have Version Control on your own projects but I mainly use this to upload my code so I have one place to store it all so any of my computers have access to it without having it to be public on GitHub itself now G is something that you can actually host on your own little tiny Raspberry Pi pie hosted or even on a NZ or anything that supports Docker it doesn't take much resources depending on the code that you're going to be uploading but it allows you to have everything all in one place just like get Hub and you can use git clone get like push and pull this also gives you the chance to learn all the this also gives you the opportunity to learn cicd so you can learn about Runners actions and stuff like that but mainly I use it just for code now the last time I advised a really highly recommended Docker was snippet box which is similar to what I would use it for is just throw up some code but now that I could actually modify edit and have Version Control it's so much better I don't know why I haven't been hosting this much earlier but I am here now and it is amazing anyway to jump into it I am using my py hosted uh template and it is in there already so you could just grab it off the template the easiest way around it is just head over to your portainer go to app template and search for get Tia so I don't know why I say g t it's g t and there we have it there is two options available I am using just a selfhosted um SQ light version instead of the Mario DB um each one works I think Mario DB will be able to be larger scale if you're going to have more people but since I'm currently the only person using it the regular G is perfectly fine in here you could actually change all your settings so if you don't like the port that it's on which is 8 8124 and the SSH port to be 222 and you can also change where the data is stored I just left everything as default and you can deploy the container now I already have it deployed so I'm not going to redeploy it again but I am going to show you now Ona's website this is just their main website it shows you what you can do and you can actually use this as a cloud so if you didn't want to self-host it you could use their platform I prefer to self-host it because this is just my private inventory of my code so I wouldn't be using this option at all but you there is that availability now the biggest thing that I like about this is that you can on this which is the runners or actions so if you are trying to learn I'm very bad at it like to be honest most of the stuff that is done on my P hosted is done by a member on my Discord who coded everything for the actions to take template files and rebuild stuff like I don't know how he does that but it's really cool and something that I do want to learn but I don't want to break my own GitHub i' rather just build it and learn it on my own time on my own server which is possible through here I do know like very basic things on how to use this like build releases or comp pile files but for what he does I have no idea anyway jumping into my GitHub you could see that it's running the IP address that I got 8124 and then these are a few projects I have uploaded a couple of days ago well I'm going to have more but for the demonstration of this video I'm just going to show you the two that I got and the first one is called Market data it's a program that developed years and years ago it's to um grab Market data for a particular area it's for a company that I work for so I do have this in here with all the codes and I could just leave it here and anytime I updated it I could have different commits to show you what I did and then I also have a lot of random stuff like trans code what this does is basically transcodes all the videos from ffmpeg MP4 toov with the wave file as the audio container so this way my um D Vin resolve could read all the files and this would Loop through the entire directory so these are like the random codes that I would make and what's worse is that sometimes I would make a random code on this machine and you know down the road I would form and completely forgot that I had like some codes in here so using a g repository to host everything ensures that I won't lose that code again now I could actually use this with VSS code so if you guys have vs code or just regular code um you can actually clone repository and grab it from say here uh I'm going to go grab this trans code one and pop back into here and then paste that trans code and then I could clone this and then I can make a directory for it so I'm just going to go into my documents over here select repository open yes I trust this and there we have it our codes right here which is transcoded so if I want to modify something here like say new text to test I'm going to save it you going to see a little thing over here and then I am going to go over to one and I'm going to commit this and every time when you commit something you do have to put a message in if you're new to uh code you also have to configure your username and email so I'm going to do that as well go into terminal new terminal and then you just have to do um get Global user name oops I forgot git config Global user.name Ison git config D Global user email is admin at local and then now I should be able to commit changes and then I could add the commit message so added new text and then I'm going to save this save and then now I could sync the changes and okay it's going to ask me to enter the username and the password and there you go at this point it would have just committed already so I could just just hit F5 and you can see it was just uploaded now and if I go into the code itself you would see the new text Tex text test so there we have it it's so easy to operate if you have code involved or if you wanted to you can just manually do it through the terminal and let's go to downloads get clone pop that in there and then it'll pull the thing just like if you were using GitHub but you are locally sharing this yourself this way your codes won't be publicly available all right another thing about this is if you go over to settings uh right over here and if you go into actions and Runners I don't have anything set up right now but this is where you would set up your Runners so you could run your script and everything but you do need some sort of Runner set up and if you head over to get T actions they do have a full um repository on how to get this set up so there's like act Runners Quick Start how to run the program if you're running this on Docker you could just run this command to get a runner working on the docker and um how to share it and then you would just add this action in there like one of the things that you need to know is that they have uh the runner token and you just need to grab create a new Runner grab the runner token and from there you could just create your token over here and add your own Runners and this is what's cool is that you can add multiple Runners so if you're using arm 64 or x86 uh those are things you could add and then just have it separate to do certain tasks for your program so if I need to compile a program for arm 64 and for x86 I would need to add two Runners both with different Architects and then I should be able to run it each individually on different Architects again I don't have the setup yet which I will be later after I start adding in all my codes but I find this to be very fun anyway this is something I've been messing around with a lot and I'm going to be using this a lot to upload a lot of the weird codes I have like setting resolution transcoding uh a few programs I have written and I'm am working on a little game so I want to upload my repository over to my own private git and basically get more comfortable with using git commit push and all that other stuff so if you guys are interested in running this uh I highly recommend it anyway if you guys have any questions about this hit me up down in the comments below and if you guys are new to this channel consider subscribing and also hitting that Bell notification icon so you know when the next video is going to be out
Info
Channel: Novaspirit Tech
Views: 6,265
Rating: undefined out of 5
Keywords: novaspirit, tech, gitea, self host gitea, gitea docker, docker, git repository, self hosted, self hosted github, gitea self hosted, gitea setup, self hosted gitea, version control, ci/cd, gitea actions
Id: dgIhjx1b2p0
Channel Id: undefined
Length: 8min 20sec (500 seconds)
Published: Sun Jan 28 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.