From 507082d86568b3d6be14d115d1c47ee48b6a2a7c Mon Sep 17 00:00:00 2001 From: koalasat Date: Wed, 24 Jul 2024 18:56:54 +0200 Subject: [PATCH] Logs to docker --- docker-compose.yml | 1 - docker/strfry/Dockerfile | 7 +++++-- docker/strfry/entrypoint.sh | 2 -- docker/strfry/sync.sh | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ad71a465..d2ad509e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -234,7 +234,6 @@ services: - ./docker/strfry/strfry.conf:/etc/strfry.conf:ro - ./docker/strfry/sync.sh:/app/sync.sh:ro - ./node/strfry/db:/app/strfry-db:rw - - ./node/strfry/log/:/var/log:rw network_mode: service:tor # # Postgresql for CLN diff --git a/docker/strfry/Dockerfile b/docker/strfry/Dockerfile index c7c606ad..578d0f53 100644 --- a/docker/strfry/Dockerfile +++ b/docker/strfry/Dockerfile @@ -1,11 +1,14 @@ FROM dockurr/strfry:0.9.6 -RUN apk add --no-cache dcron torsocks +RUN apk add --no-cache torsocks RUN echo "TorAddress 127.0.0.1" >> /etc/tor/torsocks.conf RUN echo "TorPort 9050" >> /etc/tor/torsocks.conf -COPY crontab /app/crontab +# Setting up crontab +COPY crontab /tmp/crontab +RUN cat /tmp/crontab > /etc/crontabs/root + COPY entrypoint.sh /etc/strfry/entrypoint.sh RUN chmod +x /etc/strfry/entrypoint.sh diff --git a/docker/strfry/entrypoint.sh b/docker/strfry/entrypoint.sh index b949e23d..2ebe6b38 100755 --- a/docker/strfry/entrypoint.sh +++ b/docker/strfry/entrypoint.sh @@ -1,5 +1,3 @@ #!/bin/sh -crontab /app/crontab - crond -f -l 8 & /app/strfry.sh diff --git a/docker/strfry/sync.sh b/docker/strfry/sync.sh index 85634e20..d79feb21 100755 --- a/docker/strfry/sync.sh +++ b/docker/strfry/sync.sh @@ -2,7 +2,7 @@ filters='{"kinds":[38383]}' -/app/strfry --config /etc/strfry.conf sync ws://testraliar7xkhos2gipv2k65obykofb4jqzl5l4danfryacifi4t7qd.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1 -/app/strfry --config /etc/strfry.conf sync ws://jpp3w5tpxtyg6lifonisdszpriiapszzem4wod2zsdweyfenlsxeoxid.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1 -/app/strfry --config /etc/strfry.conf sync ws://ghbtv7lhoyhomyir4xvxaeyqgx4ylxksia343jaat3njqqlkqpdjqcyd.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1 -/app/strfry --config /etc/strfry.conf sync ws://wsjyhbashc4zrrex6vijpryujggbka5plry2o62dxqoz3pxinblnj4ad.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1 +/app/strfry --config /etc/strfry.conf sync ws://testraliar7xkhos2gipv2k65obykofb4jqzl5l4danfryacifi4t7qd.onion/nostr --filter "$filters" --dir both +/app/strfry --config /etc/strfry.conf sync ws://jpp3w5tpxtyg6lifonisdszpriiapszzem4wod2zsdweyfenlsxeoxid.onion/nostr --filter "$filters" --dir both +/app/strfry --config /etc/strfry.conf sync ws://ghbtv7lhoyhomyir4xvxaeyqgx4ylxksia343jaat3njqqlkqpdjqcyd.onion/nostr --filter "$filters" --dir both +/app/strfry --config /etc/strfry.conf sync ws://wsjyhbashc4zrrex6vijpryujggbka5plry2o62dxqoz3pxinblnj4ad.onion/nostr --filter "$filters" --dir both