From 2533675d0e8dbf2a051fbefb3d9580e82816316e Mon Sep 17 00:00:00 2001 From: Francesco Medas <104889824+frankmeds@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:31:57 +0400 Subject: [PATCH] fix: DEVOPS-1772 Remove logs from previous containers (#1973) --- z2/resources/node_provision.tera.py | 1 + zq2-protomainnet.yaml | 2 +- zq2-prototestnet.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/z2/resources/node_provision.tera.py b/z2/resources/node_provision.tera.py index 6a900794d..c145e2b78 100644 --- a/z2/resources/node_provision.tera.py +++ b/z2/resources/node_provision.tera.py @@ -107,6 +107,7 @@ def health(): start() { docker rm zilliqa-""" + VERSIONS.get('zilliqa') + """ &> /dev/null || echo 0 + docker container prune -f docker run -td -p 3333:3333/udp -p 4201:4201 --net=host --name zilliqa-""" + VERSIONS.get('zilliqa') + """ \ --log-driver json-file --log-opt max-size=1g --log-opt max-file=30 \ -e RUST_LOG="zilliqa=trace" -e RUST_BACKTRACE=1 \ diff --git a/zq2-protomainnet.yaml b/zq2-protomainnet.yaml index aaadc8ee7..8b01d033e 100644 --- a/zq2-protomainnet.yaml +++ b/zq2-protomainnet.yaml @@ -7,6 +7,6 @@ roles: - apps - checkpoint versions: - zq2: 3ee4dcde + zq2: 8d310334 otterscan: develop spout: main diff --git a/zq2-prototestnet.yaml b/zq2-prototestnet.yaml index 7e4017633..ce271ed30 100644 --- a/zq2-prototestnet.yaml +++ b/zq2-prototestnet.yaml @@ -7,6 +7,6 @@ roles: - apps - checkpoint versions: - zq2: 886d0c55 + zq2: 3f89fffe otterscan: develop spout: main