Skip to content
Snippets Groups Projects
Commit fa34b6ae authored by TonyFord's avatar TonyFord
Browse files

add blocknotify.sh

parent 60ff1f38
No related branches found
No related tags found
No related merge requests found
Pipeline #968 passed
......@@ -17,8 +17,7 @@ build-faircoind:
before_script:
- mkdir -p ~/.faircoin2
- cp ${FAIRCOIN_CONF} ~/.faircoin2/faircoin.conf
# - source ${FAIRCOIN_CONF}
# - echo -e "rpcconnect=${rpcconnect}\nrpcport=${rpcport}\nrpcuser=${rpcuser}\nrpcpassword=${rpcpassword}\ntxindex=1" > ~/.faircoin2/faircoin.conf
- chmod +x ./script/blocknotify.sh
script:
- docker-compose down
- docker-compose build
......
......@@ -59,9 +59,10 @@ RUN mv ./faircoind /home/faircoin/faircoind
RUN mv ./faircoin-cli /home/faircoin/faircoin-cli
WORKDIR /home/faircoin
RUN ./faircoind -daemon -disablewallet -reindex && \
ARG FAIRCOIN_PORT
RUN ./faircoind -daemon -disablewallet -reindex -port=$FAIRCOIN_PORT && \
sleep 60 && \
./faircoin-cli stop && \
sleep 10
ENTRYPOINT ["./faircoind","-daemon","-disablewallet"]
ENTRYPOINT ["./faircoind","-daemon","-disablewallet","-port=$FAIRCOIN_PORT" ]
#!/bin/bash
PATH="$1/.."
if [ -e $PATH/pulse.faircoin.co/script/getdata.py ]
then
cd $PATH/pulse.faircoin.co/script
python3 getdata.py
fi
......@@ -9,11 +9,13 @@ services:
source_repository: "https://github.com/faircoin/faircoin.git"
GITLAB_RUNNER_UID: "${GITLAB_RUNNER_UID}"
GITLAB_RUNNER_GID: "${GITLAB_RUNNER_GID}"
FAIRCOIN_PORT: ${FAIRCOIN_PORT}
container_name: FairCoin.Co-faircoind
restart: always
# command: '-disablewallet'
# command: '-disablewallet -conf="${FAIRCOIN_CONF}" -blocknotify="${BLOCKNOTIFY}"'
command: '-blocknotify=/home/faircoin/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
#!/bin/bash
cd ~/pulse.faircoin.co/script
python3 getdata.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment