diff --git a/blocknotify.sh b/blocknotify.sh deleted file mode 100644 index 8049b8e862de79b8d222174184f1f6143b9593dc..0000000000000000000000000000000000000000 --- a/blocknotify.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -PATH="$1/.." - -if [ -e $PATH/pulse.faircoin.co/script/getdata.py ] -then - cd $PATH/pulse.faircoin.co/script - python3 getdata.py -fi diff --git a/docker-compose.yml b/docker-compose.yml index 47edf29164772834b4bf2d6536668f598e648e4d..4ab2e3fa587b7c0e4be4200de662e3884570e722 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,8 +12,10 @@ services: FAIRCOIN_PORT: ${FAIRCOIN_PORT} container_name: FairCoin.Co-faircoind restart: always - command: '-disablewallet -port=${FAIRCOIN_PORT}' + command: '-disablewallet -port=${FAIRCOIN_PORT} -blocknotify=./script/blocknotify.sh' network_mode: "host" user: "${GITLAB_RUNNER_UID}:${GITLAB_RUNNER_GID}" volumes: - ~/.faircoin2:/home/faircoin/.faircoin2 + - ./script:/home/faircoin/script + - ${CI_PROJECT_DIR}/../pulse.faircoin.co:/home/faircoin/pulse.faircoin.co/script:rw diff --git a/script/blocknotify.sh b/script/blocknotify.sh new file mode 100644 index 0000000000000000000000000000000000000000..09b124ae87433f53af1c416fb893046ec7919fb3 --- /dev/null +++ b/script/blocknotify.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "OK" > ttt.txt