fix: run catalog migrations without Pi home initialization
This commit is contained in:
@@ -39,6 +39,8 @@ func prepareIdentity(i config.Installation) error {
|
||||
}
|
||||
}
|
||||
core := services["core"].(map[string]any)
|
||||
// Migrations do not launch Pi and must not mutate its image-owned home.
|
||||
services["catalog-migrate"].(map[string]any)["entrypoint"] = []string{"/usr/bin/tini", "--"}
|
||||
core["volumes"] = append(core["volumes"].([]any), map[string]any{"type": "volume", "source": "harness-pi", "target": "/app/harness/.pi"})
|
||||
services["catalog-db"].(map[string]any)["environment"] = map[string]string{"PGDATA": "/var/lib/postgresql/data/data"}
|
||||
volumes := map[string]any{}
|
||||
|
||||
Reference in New Issue
Block a user