diff --git a/pica-metrics-bot/Dockerfile b/pica-metrics-bot/Dockerfile index b9a900331690e752c5ae4fb556f10ba096e71841..ffe75148a9c666577a171e60d43f9ea01db49fea 100644 --- a/pica-metrics-bot/Dockerfile +++ b/pica-metrics-bot/Dockerfile @@ -6,12 +6,12 @@ LABEL maintainer quentinduchemin@tuta.io COPY picasoft-metrics-bot /code # Custom Picasoft entrypoint -COPY entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh +COPY entrypoint.sh /code/entrypoint.sh +RUN chmod +x /code/entrypoint WORKDIR /code # Install dependencies RUN pip3 install -r requirements.txt -ENTRYPOINT [ "/entrypoint.sh" ] +ENTRYPOINT [ "/code/entrypoint.sh" ] diff --git a/pica-metrics-bot/entrypoint.sh b/pica-metrics-bot/entrypoint.sh index 8f23df0a396945da22f41f8979c08f5c425e123b..911e343ef208cbcc5fa5368eeeabf65b48d1c47d 100644 --- a/pica-metrics-bot/entrypoint.sh +++ b/pica-metrics-bot/entrypoint.sh @@ -32,7 +32,7 @@ INTERVAL_SECONDS=${INTERVAL_SECONDS:-60} while : do + echo "$(date) : Gathering stats..." python3 main.py - echo "$(date) : Gathering stats..." sleep $INTERVAL_SECONDS done diff --git a/pica-metrics-bot/picasoft-metrics-bot b/pica-metrics-bot/picasoft-metrics-bot index 508a84c7332bd95927615b41d067dd78e77d2beb..4ccadd2f25cc747ecd27acc74839d5ab51589940 160000 --- a/pica-metrics-bot/picasoft-metrics-bot +++ b/pica-metrics-bot/picasoft-metrics-bot @@ -1 +1 @@ -Subproject commit 508a84c7332bd95927615b41d067dd78e77d2beb +Subproject commit 4ccadd2f25cc747ecd27acc74839d5ab51589940