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

ts

parent 874ebd2e
No related branches found
No related tags found
No related merge requests found
Pipeline #976 passed
......@@ -16,9 +16,8 @@ build-faircoind:
- $CMD =~ /build/
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
- source ${FAIRCOIN_CONF}
- echo -e "rpcconnect=${rpcconnect}\nrpcport=${rpcport}\nrpcuser=${rpcuser}\nrpcpassword=${rpcpassword}\ntxindex=1" > ~/.faircoin2/faircoin.conf
script:
- docker-compose down
- docker-compose build
......
......@@ -58,10 +58,17 @@ WORKDIR /home/faircoin/faircoin/src
RUN mv ./faircoind /home/faircoin/faircoind
RUN mv ./faircoin-cli /home/faircoin/faircoin-cli
# RUN mkdir -p /home/faircoin/.faircoin2
# RUN chown -R faircoin:faircoin /home/faircoin/.faircoin2
# RUN echo "TTT $FAIRCOIN_CONF" > /home/faircoin/.faircoin2/inf.conf
WORKDIR /home/faircoin
RUN ./faircoind -daemon -disablewallet -port=40414 -reindex && \
ARG FAIRCOIN_CONF
ARG FAIRCOIN_PORT
RUN ./faircoind -daemon -disablewallet -reindex -port=$FAIRCOIN_PORT && \
sleep 60 && \
./faircoin-cli stop && \
sleep 10
ENTRYPOINT ["./faircoind","-daemon","-disablewallet","-port=40414"]
ENTRYPOINT ["./faircoind"]
#!/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,9 +9,10 @@ services:
source_repository: "https://github.com/faircoin/faircoin.git"
GITLAB_RUNNER_UID: "${GITLAB_RUNNER_UID}"
GITLAB_RUNNER_GID: "${GITLAB_RUNNER_GID}"
FAIRCOIN_PORT: 40414
container_name: FairCoin.Co-faircoind
restart: always
# command: '-disablewallet'
command: '-disablewallet -conf="${FAIRCOIN_CONF}" -port=40414'
# command: '-disablewallet -conf="${FAIRCOIN_CONF}" -blocknotify="${BLOCKNOTIFY}"'
network_mode: "host"
user: "${GITLAB_RUNNER_UID}:${GITLAB_RUNNER_GID}"
......
#!/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