Commit 599fb9ca authored by TonyFord's avatar TonyFord
Browse files

ts

parent 593eb4e9
......@@ -17,15 +17,11 @@ build-electrumfairchainsx:
before_script:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
- cat ${FAIRCHAINS_CONF} > fairchains.conf
- cat ${ELECTRUMX_CSR} > electrumx.csr
- cat ${ELECTRUMX_CRT} > electrumx.crt
- cat ${FAIRCOINCHAIN_ELECTRUMX_JSON} > FairCoinChain.electrumx.json
script:
- docker-compose stop
- docker-compose down
- docker-compose build
start-electrumfair:
start-electrumfairchainsx:
stage: start
tags:
- FairCoin.Co
......@@ -37,6 +33,11 @@ start-electrumfair:
before_script:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
- cat ${FAIRCHAINS_CONF} > ~/.faircoin2/fairchains.conf
- cat ${ELECTRUMX_CSR} > ~/.faircoin2/electrumx.csr
- cat ${ELECTRUMX_CRT} > ~/.faircoin2/electrumx.crt
- cat ${FAIRCOINCHAIN_JSON} > ~/.faircoin2/FairCoinChain.json
- cat ${FAIRCOINCHAIN_ELECTRUMX_JSON} > ~/.faircoin2/FairCoinChain.electrumx.json
script:
- docker-compose stop
- docker-compose down
......
......@@ -55,13 +55,13 @@ RUN python3 setup.py build
#################################################################################faircoin##
### create ssl cert #######################################################################
WORKDIR /home/faircoin/.fairchains
RUN git clone https://github.com/fairchainsx/fairchains-collection.git
RUN cp ./fairchains-collection/FairCoin/FairCoinChain.json ./
COPY ./FairCoinChain.electrumx.json ./FairCoinChain.electrumx.json
COPY ./fairchains.conf ./fairchains.conf
COPY ./electrumx.csr ./electrumx.csr
COPY ./electrumx.crt ./electrumx.crt
# WORKDIR /home/faircoin/.fairchains
# RUN git clone https://github.com/fairchainsx/fairchains-collection.git
# RUN cp ./fairchains-collection/FairCoin/FairCoinChain.json ./
# COPY ./FairCoinChain.electrumx.json ./FairCoinChain.electrumx.json
# COPY ./fairchains.conf ./fairchains.conf
# COPY ./electrumx.csr ./electrumx.csr
# COPY ./electrumx.crt ./electrumx.crt
WORKDIR /home/faircoin/electrumfairchainsx
ENTRYPOINT ["./efcx_server"]
......@@ -12,3 +12,5 @@ services:
# command: sleep inf
network_mode: "host"
user: "${RUNNER_UID}:${RUNNER_GID}"
volumes:
- ~/.faircoin2:/home/faircoin/.faircoin2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment