Delete _ready files before starting CN

This commit is contained in:
kexkey
2021-12-01 13:14:26 -05:00
parent a81cbb3e72
commit 4ae421f80a
2 changed files with 4 additions and 2 deletions

View File

@@ -10,7 +10,6 @@ services:
image: postgres:<%= postgres_version %>
user: $USER
entrypoint: sh -c 'rm -f /container_monitor/postgres_ready ; docker-entrypoint.sh -c logging_collector=true -c log_directory=/cnlogs/'
# command: -c logging_collector=true -c log_directory=/cnlogs/
environment:
- "POSTGRES_USER=cyphernode"
- "POSTGRES_PASSWORD=<%= postgres_password %>"
@@ -25,7 +24,7 @@ services:
interval: 30s
timeout: 10s
retries: 10
stop_grace_period: 30s
stop_grace_period: 90s
networks:
- cyphernodenet
<% if ( docker_mode === 'swarm' ) { %>

View File

@@ -60,6 +60,9 @@ export USER=$(id -u <%= default_username %>):$(id -g <%= default_username %>)
current_path="$(cd "$(dirname "$0")" >/dev/null && pwd)"
# Let's make sure the container readyness files are deleted before starting the stack
docker run --rm -v cyphernode_container_monitor:/container_monitor alpine sh -c 'rm -f /container_monitor/*_ready'
<% if (docker_mode == 'swarm') { %>
docker stack deploy -c $current_path/docker-compose.yaml cyphernode
<% } else if(docker_mode == 'compose') { %>