mirror of
https://github.com/runcitadel/core.git
synced 2024-09-23 09:40:04 +00:00
Better support for dependencies.yml
This commit is contained in:
parent
dc6f7dfbfd
commit
0358ba84e6
|
@ -1,6 +1,6 @@
|
||||||
compose: v2.6.0
|
compose: v2.6.0
|
||||||
bitcoin: 22.0
|
bitcoin: 22.0
|
||||||
lnd: 0.14.3
|
lnd: 0.14.3
|
||||||
dashboard: v0.0.13@sha256:86be4a105e9599163866d2e4f79c4d4ab9725ce56d71d7d7341e4d0ab3441b54
|
dashboard: ghcr.io/runcitadel/dashboard:v0.0.15@sha256:a2cf5ad79367fb083db0f61e5a296aafee655c99af0c228680644c248ec674a5
|
||||||
manager: v0.0.14@sha256:656efb89b5e0e849c40666ae6c4a36cf0def136fe0fab2da52889dacd7c2b688
|
manager: ghcr.io/runcitadel/manager:v0.0.15@sha256:9fb5a86d9e40a04f93d5b6110d43a0f9a5c4ad6311a843b5442290013196a5ce
|
||||||
middleware: v0.0.10@sha256:afd6e2b6f5ba27cde32f6f6d630ddc6dd46d1072871f7834d7424d0554d0f53d
|
middleware: ghcr.io/runcitadel/middleware:v0.0.11@sha256:e472da8cbfa67d9a9dbf321334fe65cdf20a0f9b6d6bab33fdf07210f54e7002
|
||||||
|
|
11
scripts/configure
vendored
11
scripts/configure
vendored
|
@ -371,6 +371,17 @@ print("Generated configuration files\n")
|
||||||
print("Checking if Docker Compose is installed...")
|
print("Checking if Docker Compose is installed...")
|
||||||
download_docker_compose()
|
download_docker_compose()
|
||||||
|
|
||||||
|
print("Updating core services...")
|
||||||
|
print()
|
||||||
|
with open("docker-compose.yml", 'r') as stream:
|
||||||
|
compose = yaml.safe_load(stream)
|
||||||
|
with open("db/dependencies.yml", 'r') as stream:
|
||||||
|
dependencies = yaml.safe_load(stream)
|
||||||
|
for service in ["manager", "middleware", "dashboard"]:
|
||||||
|
compose[service][image] = dependencies[service]
|
||||||
|
with open("docker-compose.yml") as stream:
|
||||||
|
yaml.dump(compose, stream, sort_keys=False)
|
||||||
|
|
||||||
if not reconfiguring:
|
if not reconfiguring:
|
||||||
print("Updating apps...\n")
|
print("Updating apps...\n")
|
||||||
os.system('./scripts/app --invoked-by-configure update')
|
os.system('./scripts/app --invoked-by-configure update')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user