0cb94ef37d
Repo-only prep to align MokoGIT with the .vault single-source-of-truth structure and the
MokoOrgStandards xx.xx.xx version scheme. No server/.vault changes; relocation coordinated later.
Versioning (replaces leaked Gitea 1.24.0+dev-N-ghash):
- VERSION = 01.00.00 (Makefile STORED_VERSION uses it verbatim on branch builds -> strips the
git-describe Gitea base; tag builds use the xx.xx.xx tag name).
- VERSIONING.md documents the scheme + how the binary/image version resolves.
- Default the upstream update-checker OFF (modules/setting/setting.go) so the fork never compares
AppVer against Gitea's release feed.
Staged git-stack compose (target .vault/stacks/git/{prod,rc,dev}):
- deploy/git/{prod,rc,dev}/ each: docker-compose.yml (image mokoconsulting/mokogit per tier tag env
MOKOGIT[_RC|_DEV]_TAG, containers mokogit/-rc/-dev, /opt/mokogit/{prod,rc,dev} data, host-MySQL
db mokogit[_rc|_dev], /api/healthz healthcheck), VERSION (01.00.00), .env.example.
- deploy/git/VERSION (per-stack) + README.md (ownership split, reconcile-before-drop, restructure paused).
- Every host/secret value is ${VAR}; modeled on documented live config, marked RECONCILE (diff vs
the live /opt/mokogitea/docker-compose.yml before dropping into .vault).
Secrets externalized:
- .gitignore now ignores real .env / *.env but keeps *.env.example. No real tokens committed.
Verified: go build ./modules/setting/ ok; .env.example tracked, real .env ignored.
28 lines
770 B
Bash
28 lines
770 B
Bash
# MokoGIT git stack -- DEV tier env (EXAMPLE -- copy to .env and fill; .env is gitignored)
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
# No real secrets here. RECONCILE all values against the live box before use.
|
|
|
|
GIT_REGISTRY=git.mokoconsulting.tech
|
|
GIT_IMAGE=mokoconsulting/mokogit
|
|
MOKOGIT_DEV_TAG=01.00.00-dev # dev image tag. Deploy CI pins this per build.
|
|
|
|
GIT_UID=1000
|
|
GIT_GID=1000
|
|
|
|
GIT_DOMAIN=dev.git.mokoconsulting.tech
|
|
GIT_ROOT_URL=https://dev.git.mokoconsulting.tech/
|
|
GIT_SSH_DOMAIN=dev.git.mokoconsulting.tech
|
|
GIT_SSH_PUBLIC_PORT=2918
|
|
|
|
GIT_HTTP_PORT=3002
|
|
GIT_SSH_PORT=2224
|
|
|
|
GIT_DATA_DIR=/opt/mokogit/dev
|
|
|
|
GIT_DB_HOST=host.docker.internal:3306
|
|
GIT_DB_NAME=mokogit_dev
|
|
GIT_DB_USER=mokogitea
|
|
GIT_DB_PASSWD=__SET_IN_REAL_ENV__
|
|
|
|
GIT_NETWORK=gitea-dev_default
|