Browse documentation
Fountain handbook

Run the Fountain binary

Download the Fountain executable from a release, verify it against the published checksums and start the forge directly on a Linux host without a container engine.

On this page

Before you begin

  • A Linux x86-64 host. Each release publishes one statically linked linux-amd64 executable.
  • git, curl and sha256sum.
  • A dedicated service account to own the forge's data, for example git. Run the forge and every administrative command as that account.

Download and verify

Each release on GitHub carries the compressed executable, a checksum list and the release metadata. Replace the version with the release you want.

FOUNTAIN_VERSION=15.0.10-fountain.3
base=https://github.com/veighnsche/fountain/releases/download/v$FOUNTAIN_VERSION

curl -LO "$base/fountain-$FOUNTAIN_VERSION-linux-amd64.gz"
curl -LO "$base/SHA256SUMS"
curl -LO "$base/release.json"
sha256sum --ignore-missing -c SHA256SUMS

Continue only when every downloaded file reports OK. SHA256SUMS covers every release attachment except itself, including release.json.

Install the executable

gunzip "fountain-$FOUNTAIN_VERSION-linux-amd64.gz"
sudo install -m 0755 "fountain-$FOUNTAIN_VERSION-linux-amd64" /usr/local/bin/fountain
fountain --version

The version line includes the Fountain release, for example 15.0.10-fountain.3+gitea-1.22.0. The executable is the same file that ships in the container image as /app/gitea/gitea. This handbook installs it as fountain; examples elsewhere that call forgejo or gitea refer to the same program.

Start the forge

Choose a work path owned by the service account and pass it, with the configuration file, on every invocation:

sudo install -d -o git -g git /var/lib/fountain /var/lib/fountain/custom/conf
sudo -u git fountain web \
  --work-path /var/lib/fountain \
  --config /var/lib/fountain/custom/conf/app.ini

Open http://localhost:3000 and complete Forgejo's initial setup page. For a permanent installation, run the same command from a service manager; Forgejo's binary installation guide describes the service account, directories and a systemd unit, and applies unchanged with fountain as the executable.

Use the same --work-path and --config for administrative commands, for example:

sudo -u git fountain --work-path /var/lib/fountain \
  --config /var/lib/fountain/custom/conf/app.ini admin user list

Verify the result

curl -fsS http://localhost:3000/api/healthz
curl -fsS http://localhost:3000/api/v1/version

The health check succeeds once the forge is serving, and the version endpoint reports the same full version as fountain --version.

Troubleshooting

Symptom What to check
sha256sum reports FAILED Download the files again. Never run an executable whose checksum does not match.
Settings changes seem ignored The command used a different --config or --work-path from the running service.
Files owned by root appear in the work path A command ran as root. Run every command as the service account.

Continue

Enable extensions in the same app.ini, and read Fountain versions and upgrades for the release assets and upgrade steps.