Implementing a Git Server with Gitea
Advanced · 45 minutes · 100 points
Deploy and configure a self-hosted Git server using Gitea on a Linux system. You will install Gitea as a standalone binary, configure it with a SQLite database, set up system users and directory structures, initialize the application, and create repositories via the command line. This lab covers the full lifecycle of standing up a production-style Git hosting service from scratch.
What you’ll learn
- Install Gitea as a standalone binary and configure a dedicated system user and directory structure
- Initialize Gitea with a SQLite backend and generate a working app.ini configuration file
- Use the Gitea admin CLI to create an admin user and initialize a bare Git repository
- Verify the full Gitea installation by interacting with the repository using standard Git commands
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- At least 512MB free disk space for the Gitea binary and data
Topics: gitea, git-server, self-hosted, sqlite, devops, version-control, linux
Create a free account to start this lab.