This is a Firecracker based setup for Forgejo. It sets up a minimal Alpine Linux virtual machine with Tailscale, Forgejo and OpenSSH set up.
- Shell 100%
| .gitignore | ||
| alpine.json | ||
| boot.sh | ||
| fetchAlpine.sh | ||
| fetchKernel.sh | ||
| LICENSE.md | ||
| README.md | ||
| setup.sh | ||
| setupAlpine.sh | ||
| setupNetworking.sh | ||
firecracker-forgejo
This is a Firecracker based setup for Forgejo. It sets up a minimal Alpine Linux virtual machine with Tailscale, Forgejo and OpenSSH set up.
This setup is currently powering this instance.
Setup (one time)
- Set the environment variables
VM_USER,VM_PASSandVM_HOST(for the VM's username, password and hostname respectively). - Run
./setup.sh
Booting
sudo ./boot.sh will start the VM in the background.
./enter.sh will spawn a secure shell inside the VM.
Accessing Forgejo
Boot the VM and open http://172.16.0.2:3000 in your browser.
Tailscale also comes pre-installed. You may set it up as per your need.
Destroying
- Kill the VM, if currently running.
- Delete the
alpinesubdirectory.
Configuation
You can configure the virtual machine by editing alpine.json. Please refer to Firecracker documentation for doing so.
License Agreement
Refer to LICENSE.md for the license agreement.