mirror of
https://github.com/casjaysdevdocker/gitea
synced 2026-06-24 14:01:00 -04:00
🐛 Map container env vars to gitea init variables 🐛
Wire CONTAINER_DEFAULT_DATABASE_TYPE, CONTAINER_PROTOCOL, CONTAINER_WEB_SERVER_PROTOCOL, WEB_PORT, ENV_PORTS, and DATABASE_DIR_SQLITE to the correct gitea init variables so all REPLACE_* tokens in app.ini are substituted correctly on first container start. - rootfs/usr/local/etc/docker/init.d/08-gitea.sh: map CONTAINER_DEFAULT_DATABASE_TYPE → DATABASE_SERVICE_TYPE + GITEA_SQL_TYPE (sqlite→sqlite3, postgres, mysql, mssql); map CONTAINER_PROTOCOL/CONTAINER_WEB_SERVER_PROTOCOL → SERVICE_PROTOCOL; map WEB_PORT/ENV_PORTS → SERVICE_PORT; initialise DATABASE_DIR from DATABASE_DIR_SQLITE env var; fix CUSTOM_PATH export to point at $CONF_DIR/custom .claude/settings.local.json rootfs/usr/local/etc/docker/init.d/08-gitea.sh
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
"WebFetch(domain:docs.gitea.com)",
|
||||
"Bash(cp /tmp/templates/gitea/rootfs/usr/local/bin/entrypoint.sh /root/Projects/github/casjaysdevdocker/gitea/rootfs/usr/local/bin/entrypoint.sh)",
|
||||
"Bash(cp /tmp/templates/gitea/rootfs/usr/local/etc/docker/functions/entrypoint.sh /root/Projects/github/casjaysdevdocker/gitea/rootfs/usr/local/etc/docker/functions/entrypoint.sh)",
|
||||
"Bash(gen-dockerfile --help)"
|
||||
"Bash(gen-dockerfile --help)",
|
||||
"Bash(rm -f /root/Projects/github/casjaysdevdocker/gitea/rootfs/usr/local/etc/docker/init.d/.git/COMMIT_MESS)",
|
||||
"Bash(rmdir /root/Projects/github/casjaysdevdocker/gitea/rootfs/usr/local/etc/docker/init.d/.git)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user