Skip to content
Snippets Groups Projects
Commit 8293bd07 authored by Dan Notestein's avatar Dan Notestein
Browse files

Separate the hivemind installer so that it's not integrated into the block-processing

container.  That allows us to fire up the postgrest server as soon as the
installer is finished, instead of having to wait until the block processor starts
processing blocks after sync/replay has finished
parent 54f67697
No related branches found
No related tags found
2 merge requests!66Merge develop to master for release,!49Separate the hivemind installer so that it's not integrated into the block-processing
Pipeline #111400 passed
services: services:
hivemind-install:
image: ${HIVEMIND_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind}:${HIVEMIND_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- apps
- hivemind
networks:
haf-network:
command:
- "setup"
- "--database-admin-url=postgresql://haf_admin@haf/haf_block_log"
depends_on:
haf:
condition: service_healthy
reputation-tracker-install:
condition: service_completed_successfully
hivemind-block-processing: hivemind-block-processing:
image: ${HIVEMIND_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind}:${HIVEMIND_VERSION:-${HIVE_API_NODE_VERSION}} image: ${HIVEMIND_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind}:${HIVEMIND_VERSION:-${HIVE_API_NODE_VERSION}}
profiles: profiles:
...@@ -10,7 +26,6 @@ services: ...@@ -10,7 +26,6 @@ services:
- "sync" - "sync"
- "--database-url=postgresql://hivemind@haf/haf_block_log" - "--database-url=postgresql://hivemind@haf/haf_block_log"
- "--database-admin-url=postgresql://haf_admin@haf/haf_block_log" - "--database-admin-url=postgresql://haf_admin@haf/haf_block_log"
- "--install-app"
healthcheck: healthcheck:
test: ["CMD-SHELL","/home/hivemind/block-processing-healthcheck.sh || exit 1"] test: ["CMD-SHELL","/home/hivemind/block-processing-healthcheck.sh || exit 1"]
interval: 10s interval: 10s
...@@ -22,12 +37,13 @@ services: ...@@ -22,12 +37,13 @@ services:
condition: service_healthy condition: service_healthy
reputation-tracker-install: reputation-tracker-install:
condition: service_completed_successfully condition: service_completed_successfully
hivemind-install:
condition: service_completed_successfully
hivemind-server: hivemind-server:
image: ${HIVEMIND_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind}:${HIVEMIND_VERSION:-${HIVE_API_NODE_VERSION}} image: ${HIVEMIND_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind}:${HIVEMIND_VERSION:-${HIVE_API_NODE_VERSION}}
profiles: profiles:
- apps - legacy-hivemind-server
- hivemind
networks: networks:
haf-network: haf-network:
command: command:
...@@ -65,29 +81,10 @@ services: ...@@ -65,29 +81,10 @@ services:
retries: 10 retries: 10
start_period: 1m start_period: 1m
depends_on: depends_on:
hivemind-block-processing: hivemind-install:
condition: service_healthy condition: service_completed_successfully
haf:
condition: service_healthy
# note: the hivemind-install steps, which create/update the hivemind database schema, are also run automatically at the beginning
# of the hivemind-block-processing image's startup. There is normally no reason to run this step separately. If you do,
# be sure that the hivemind block-processor is not running at the same time as this install script, as doing so may corrupt your
# database
hivemind-install:
image: ${HIVEMIND_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind}:${HIVEMIND_VERSION:-${HIVE_API_NODE_VERSION}}
profiles:
- hivemind-install
networks:
haf-network:
command:
- "setup"
- "--database-admin-url=postgresql://haf_admin@haf/haf_block_log"
depends_on:
haf: haf:
condition: service_healthy condition: service_healthy
reputation-tracker-install:
condition: service_completed_successfully
hivemind-postgrest-rewriter: hivemind-postgrest-rewriter:
image: ${HIVEMIND_REWRITER_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind/postgrest-rewriter}:${HIVEMIND_VERSION:-${HIVE_API_NODE_VERSION}} image: ${HIVEMIND_REWRITER_IMAGE:-${HIVE_API_NODE_REGISTRY:-registry.hive.blog}/hivemind/postgrest-rewriter}:${HIVEMIND_VERSION:-${HIVE_API_NODE_VERSION}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment