Fixed setup.inc

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2023-06-14 08:26:11 +02:00
parent 3759dbda2c
commit 1263c80b89

View File

@ -2,13 +2,11 @@ NODE_WORKERS=( "worker0" "worker1" )
SMTP_GW="smtpgw" SMTP_GW="smtpgw"
DOCKER_LIMIT=( --pids-limit 256 --memory 512M ) DOCKER_LIMIT=( --pids-limit 256 --memory 512M )
export CONTAINERS=( "$NODE_GUI" "${NODE_WORKERS[@]}" "$SMTP_GW" "$SINGLE_SERVER" "piler1" "syslog.host" ) export CONTAINERS=( "$NODE_GUI" "${NODE_WORKERS[@]}" "$SMTP_GW" "$SINGLE_SERVER" )
setup() { setup() {
destroy_containers destroy_containers
set -x
launch_containers launch_containers
set +x
create_rules "piler1" create_rules "piler1"
add_data_officer "piler1" add_data_officer "piler1"
} }
@ -25,9 +23,12 @@ launch_containers() {
echo -e "PACKAGE=$PACKAGE\nPILER_HOST=cust1.acts.hu\nRT=$RT" > .env echo -e "PACKAGE=$PACKAGE\nPILER_HOST=cust1.acts.hu\nRT=$RT" > .env
log "running docker-compose down"
docker-compose down -v || true docker-compose down -v || true
log "running docker-compose" log "running docker-compose up"
docker-compose up -d docker-compose up -d
wait_until_container_is_healthy "piler1" wait_until_container_is_healthy "piler1"