From 3759dbda2ccc81043f29047a22fbf0f8af23dd3c Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Wed, 14 Jun 2023 08:08:33 +0200 Subject: [PATCH] Added imap server to docker-compose Signed-off-by: Janos SUTO --- tests/docker-compose.yaml | 15 +++++++++++++-- tests/setup.inc | 3 +++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/tests/docker-compose.yaml b/tests/docker-compose.yaml index 57958856..a3a9d1f6 100644 --- a/tests/docker-compose.yaml +++ b/tests/docker-compose.yaml @@ -36,10 +36,11 @@ services: retries: 3 start_period: 10s depends_on: - - smarthost + - smarthost.aaa.fu - syslog + - imap.aaa.fu - smarthost: + smarthost.aaa.fu: image: sutoj/smtps-source container_name: smarthost.aaa.fu networks: @@ -50,5 +51,15 @@ services: memory: 64M command: smtp-sink -h smarthost.aaa.fu -u nobody :25 10 + imap.aaa.fu: + image: sutoj/imap + container_name: imap.aaa.fu + deploy: + resources: + limits: + memory: 64M + networks: + - piler + networks: piler: diff --git a/tests/setup.inc b/tests/setup.inc index 185c93b3..298cac89 100644 --- a/tests/setup.inc +++ b/tests/setup.inc @@ -25,8 +25,11 @@ launch_containers() { echo -e "PACKAGE=$PACKAGE\nPILER_HOST=cust1.acts.hu\nRT=$RT" > .env + docker-compose down -v || true + log "running docker-compose" docker-compose up -d + wait_until_container_is_healthy "piler1" docker-compose ps