mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
chore: upgrade trivy to v0.55.2 and update the logic of waiting for zot to start in some jobs (#2685)
chore: upgrade trivy to v0.55.2, also update the logic of waiting for zot to start in some jobs Seems like there's an increate in the time zot requires to start before servicing requests. From my GitHub observations it is better check using curl instead of relying on hardcoded 5s or 10s values. The logic in .github/workflows/cluster.yaml seems to be old and out of date. Even on main right now there is only 1 our of 3 zots actualy running. The other 2 are actually erroring: Error: operation timeout: boltdb file is already in use, path '/tmp/zot/cache.db' This is unrelated to this PR, I am seeing the same issue in the olders workflow runs still showing the logs Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
@@ -43,7 +43,7 @@ function wait_zot_reachable() {
|
||||
local zot_url=http://127.0.0.1:${zot_port}/v2/_catalog
|
||||
curl --connect-timeout 3 \
|
||||
--max-time 5 \
|
||||
--retry 20 \
|
||||
--retry 60 \
|
||||
--retry-delay 1 \
|
||||
--retry-max-time 180 \
|
||||
--retry-connrefused \
|
||||
|
||||
Reference in New Issue
Block a user