1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-30 11:03:58 +02:00

Fix federation test: add scripts mount and pre-compile config on host

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-01 04:24:32 +00:00
parent bf50e2ddde
commit d6d5606d68
4 changed files with 16 additions and 2 deletions

View File

@@ -29,6 +29,8 @@ function generate {
if [ ! -f .config/docker.env ]; then cp .config/example.docker.env .config/docker.env; fi
if [ ! -f .config/$1.conf ]; then sed "s/\${HOST}/$1/g" .config/example.conf > .config/$1.conf; fi
if [ ! -f .config/$1.default.yml ]; then sed "s/\${HOST}/$1/g" .config/example.default.yml > .config/$1.default.yml; fi
# Pre-compile YAML config to JSON (for runtime use without js-yaml)
if [ -f .config/$1.default.yml ]; then node -e "const fs=require('fs'),yaml=require('js-yaml');fs.writeFileSync('.config/$1.default.json',JSON.stringify(yaml.load(fs.readFileSync('.config/$1.default.yml','utf-8'),{schema:yaml.JSON_SCHEMA}),null,'\t'),'utf-8')"; fi
}
generate a.test