From 714e7d063f0045c9618e88f09276aa45bf536c9a Mon Sep 17 00:00:00 2001
From: Vincent SELLIER <vincent.sellier@softwareheritage.org>
Date: Mon, 26 Aug 2024 15:12:52 +0200
Subject: [PATCH] counters: Install 'retry' package to simplify the refresh
 history cronjob

Related to swh/infra/sysadm-environment#5387
---
 apps/swh-counters/Dockerfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/apps/swh-counters/Dockerfile b/apps/swh-counters/Dockerfile
index 34c163d79..908fbe2f1 100644
--- a/apps/swh-counters/Dockerfile
+++ b/apps/swh-counters/Dockerfile
@@ -1,9 +1,11 @@
 # Deeply inspired from the Dockerfile of the swh-storage project
 FROM python:3.10-bullseye
 
+# retry command is used by the refresh-history cron job
+# to ensure the rpc service is well up
 RUN apt-get -y update && \
     apt-get -y upgrade && \
-    apt-get install -y libcmph-dev librdkafka-dev && \
+    apt-get install -y libcmph-dev librdkafka-dev retry && \
     apt clean && \
     addgroup --gid 1000 swh && \
     useradd --gid 1000 --uid 1000 -m -d /opt/swh swh && \
-- 
GitLab