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

fweq

parent 4522f92e
No related branches found
No related tags found
No related merge requests found
Pipeline #973 passed
......@@ -17,7 +17,8 @@ build-faircoind:
before_script:
- mkdir -p ~/.faircoin2
- cp ${FAIRCOIN_CONF} ~/.faircoin2/faircoin.conf
- chmod +x ./script/blocknotify.sh
# - 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
......@@ -33,7 +34,7 @@ start-faircoind:
- $CMD =~ /build|start/
script:
- docker-compose down
- docker-compose up
- docker-compose up -d
stop-faircoind:
stage: stop
......
......@@ -59,10 +59,9 @@ RUN mv ./faircoind /home/faircoin/faircoind
RUN mv ./faircoin-cli /home/faircoin/faircoin-cli
WORKDIR /home/faircoin
# ARG FAIRCOIN_PORT
# RUN ./faircoind -daemon -disablewallet -reindex -port=$FAIRCOIN_PORT && \
# sleep 60 && \
# ./faircoin-cli stop && \
# sleep 10
RUN ./faircoind -daemon -disablewallet -reindex && \
sleep 60 && \
./faircoin-cli stop && \
sleep 10
ENTRYPOINT ["./faircoind" ]
ENTRYPOINT ["./faircoind","-daemon","-disablewallet"]
......@@ -9,13 +9,11 @@ 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: '-daemon -disablewallet -port=${FAIRCOIN_PORT} -conf="/home/faircoin/.faircoin2/faircoin.conf" -blocknotify="/home/faircoin/script/blocknotify.sh"'
# command: '-disablewallet'
# command: '-disablewallet -conf="${FAIRCOIN_CONF}" -blocknotify="${BLOCKNOTIFY}"'
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
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