summaryrefslogtreecommitdiffstats
path: root/compose/stop-compose.sh
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2024-08-01 14:18:34 +0100
committeradheli.tavares <adheli.tavares@est.tech>2024-08-02 12:50:19 +0100
commitf11e6d9815fd739f2241464612fd0b48736f06af (patch)
treece890e828cc01b559a698ef47ea786391f32c60c /compose/stop-compose.sh
parent1836bd57d497827977f175fa88cb7ed49b485e30 (diff)
Drools-apps CSIT tests (almost) fix.
- controller usecases is now starting normally. - drools policy is deploying. - two policy executions are still failing. Issue-ID: POLICY-4955 Change-Id: I08cee61463c1e8e52f0f874bbb15acca8ed7d6b2 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'compose/stop-compose.sh')
-rwxr-xr-xcompose/stop-compose.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/compose/stop-compose.sh b/compose/stop-compose.sh
index 809c8f47..493f9b57 100755
--- a/compose/stop-compose.sh
+++ b/compose/stop-compose.sh
@@ -42,7 +42,7 @@ source export-ports.sh > /dev/null 2>&1
source get-versions.sh > /dev/null 2>&1
echo "Collecting logs from docker compose containers..."
-rm -rf docker_compose.log
+rm -rf *.log
# this will collect logs by service instead of mixing all together
containers=$(docker compose ps --all --format '{{.Service}}')
@@ -51,10 +51,7 @@ IFS=$'\n' read -d '' -r -a item_list <<< "$containers"
for item in "${item_list[@]}"
do
if [ -n "$item" ]; then
- echo "======== Logs from ${item} ========" >> docker_compose.log
- docker compose logs $item >> docker_compose.log
- echo "===================================" >> docker_compose.log
- echo "" >> docker_compose.log
+ docker compose logs $item >> $item.log
fi
done