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

ts

parent 593eb4e9
...@@ -17,15 +17,11 @@ build-electrumfairchainsx: ...@@ -17,15 +17,11 @@ build-electrumfairchainsx:
before_script: before_script:
- export RUNNER_UID=`id -u` - export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g` - 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: script:
- docker-compose stop - docker-compose stop
- docker-compose down - docker-compose down
- docker-compose build - docker-compose build
start-electrumfair: start-electrumfairchainsx:
stage: start stage: start
tags: tags:
- FairCoin.Co - FairCoin.Co
...@@ -37,6 +33,11 @@ start-electrumfair: ...@@ -37,6 +33,11 @@ start-electrumfair:
before_script: before_script:
- export RUNNER_UID=`id -u` - export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g` - 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: script:
- docker-compose stop - docker-compose stop
- docker-compose down - docker-compose down
......
...@@ -55,13 +55,13 @@ RUN python3 setup.py build ...@@ -55,13 +55,13 @@ RUN python3 setup.py build
#################################################################################faircoin## #################################################################################faircoin##
### create ssl cert ####################################################################### ### create ssl cert #######################################################################
WORKDIR /home/faircoin/.fairchains # WORKDIR /home/faircoin/.fairchains
RUN git clone https://github.com/fairchainsx/fairchains-collection.git # RUN git clone https://github.com/fairchainsx/fairchains-collection.git
RUN cp ./fairchains-collection/FairCoin/FairCoinChain.json ./ # RUN cp ./fairchains-collection/FairCoin/FairCoinChain.json ./
COPY ./FairCoinChain.electrumx.json ./FairCoinChain.electrumx.json # COPY ./FairCoinChain.electrumx.json ./FairCoinChain.electrumx.json
COPY ./fairchains.conf ./fairchains.conf # COPY ./fairchains.conf ./fairchains.conf
COPY ./electrumx.csr ./electrumx.csr # COPY ./electrumx.csr ./electrumx.csr
COPY ./electrumx.crt ./electrumx.crt # COPY ./electrumx.crt ./electrumx.crt
WORKDIR /home/faircoin/electrumfairchainsx WORKDIR /home/faircoin/electrumfairchainsx
ENTRYPOINT ["./efcx_server"] ENTRYPOINT ["./efcx_server"]
...@@ -12,3 +12,5 @@ services: ...@@ -12,3 +12,5 @@ services:
# command: sleep inf # command: sleep inf
network_mode: "host" network_mode: "host"
user: "${RUNNER_UID}:${RUNNER_GID}" 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