harness / gitness

Gitness is an Open Source developer platform with Source Control management, Continuous Integration and Continuous Delivery.
https://gitness.com
Apache License 2.0
31.96k stars 2.79k forks source link

[docs] set GITNESS_PRINCIPAL_ADMIN_EMAIL #3453

Closed indaco closed 6 months ago

indaco commented 6 months ago

with docker image harness/gitness:latest after the remove default Admin account /environment variables, the doc page should be update to include the newly required GITNESS_PRINCIPAL_ADMIN_EMAIL env var

docker run -d \
  -e GITNESS_PRINCIPAL_ADMIN_EMAIL=mail@example.com \ 
  -e GITNESS_PRINCIPAL_ADMIN_PASSWORD=correct-horse-battery-staple \
  -e GITNESS_USER_SIGNUP_ENABLED=false \
  -p 3000:3000 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /tmp/gitness:/data \
  --name gitness \
  --restart always \
  harness/gitness

Otherwise:

gitness: error: encountered an error while bootstrapping the system: failed to setup admin user: failed to set up admin user: config.Principal.Admin.Email is required, try --help

jimsheldon commented 6 months ago

Thanks @indaco for catching this.

We have updated the settings section with this new requirement https://docs.gitness.com/installation/settings