This is a Firecracker based setup for Forgejo. It sets up a minimal Alpine Linux virtual machine with Tailscale, Forgejo and OpenSSH set up.
Find a file
2026-12-04 14:54:15 +05:30
.gitignore setup enter.sh 2026-11-27 12:40:35 +05:30
alpine.json Hello, world. 2026-11-26 16:14:22 +05:30
boot.sh setup networking on boot 2026-12-01 11:56:10 +05:30
fetchAlpine.sh Hello, world. 2026-11-26 16:14:22 +05:30
fetchKernel.sh automate SSH setup, improve README.md, rename scripts 2026-12-04 14:35:29 +05:30
LICENSE.md add license and rework readme 2026-11-26 16:51:06 +05:30
README.md remove sudo from setup 2026-12-04 14:54:15 +05:30
setup.sh automate SSH setup, improve README.md, rename scripts 2026-12-04 14:35:29 +05:30
setupAlpine.sh automate SSH setup, improve README.md, rename scripts 2026-12-04 14:35:29 +05:30
setupNetworking.sh Hello, world. 2026-11-26 16:14:22 +05:30

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)

  1. Set the environment variables VM_USER, VM_PASS and VM_HOST (for the VM's username, password and hostname respectively).
  2. 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

  1. Kill the VM, if currently running.
  2. Delete the alpine subdirectory.

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.