Browse Source

fix: update production envs

develop
Apostolos Fanakis 4 years ago
parent
commit
13724e04c2
  1. 1
      docker/env/pinner.env
  2. 16
      jenkins/Jenkinsfile
  3. 6
      jenkins/env/concordia.production.jenkins.env
  4. 6
      jenkins/env/concordia.staging.jenkins.env
  5. 2
      jenkins/env/contracts.production.jenkins.env
  6. 3
      jenkins/env/contracts.provider.production.env
  7. 3
      jenkins/env/contracts.provider.staging.env
  8. 2
      jenkins/env/contracts.staging.jenkins.env
  9. 8
      jenkins/env/pinner.production.jenkins.env
  10. 8
      jenkins/env/pinner.staging.jenkins.env

1
docker/env/pinner.env

@ -11,7 +11,6 @@ PINNER_API_HOST=127.0.0.1
PINNER_API_PORT=4444 PINNER_API_PORT=4444
RENDEZVOUS_HOST=/docker/concordia-rendezvous RENDEZVOUS_HOST=/docker/concordia-rendezvous
#RENDEZVOUS_HOST=/ip4/172.20.0.2
RENDEZVOUS_PORT=9090 RENDEZVOUS_PORT=9090
WEB3_HOST=concordia-ganache WEB3_HOST=concordia-ganache

16
jenkins/Jenkinsfile

@ -449,7 +449,7 @@ pipeline {
-p 9090:9090 \ -p 9090:9090 \
--name concordia-rendezvous \ --name concordia-rendezvous \
--net=ecentrics_concordia_staging_network \ --net=ecentrics_concordia_staging_network \
libp2p/js-libp2p-webrtc-star:version-0.20.5' libp2p/js-libp2p-webrtc-star:version-0.21.1'
} else { } else {
sh 'docker network connect ecentrics_concordia_staging_network concordia-rendezvous || true' sh 'docker network connect ecentrics_concordia_staging_network concordia-rendezvous || true'
} }
@ -476,7 +476,7 @@ pipeline {
sh (script: """docker run \ sh (script: """docker run \
-d \ -d \
-v concordia-contracts-provider-staging:/mnt/concordia/contracts \ -v concordia-contracts-provider-staging:/mnt/concordia \
--env-file=./jenkins/env/contracts.provider.staging.env \ --env-file=./jenkins/env/contracts.provider.staging.env \
-p 8450:8450 \ -p 8450:8450 \
--name concordia-contracts-provider-staging \ --name concordia-contracts-provider-staging \
@ -503,7 +503,7 @@ pipeline {
sh (script: 'docker run \ sh (script: 'docker run \
-d \ -d \
-v concordia-ganache-staging:/mnt/concordia/ganache_keys \ -v concordia-ganache-staging:/mnt/concordia \
-p 8555:8555 \ -p 8555:8555 \
--env-file=./jenkins/env/ganache.staging.jenkins.env \ --env-file=./jenkins/env/ganache.staging.jenkins.env \
--name concordia-ganache-staging \ --name concordia-ganache-staging \
@ -556,7 +556,7 @@ pipeline {
sh """docker run \ sh """docker run \
-d \ -d \
-v concordia-pinner-staging:/mnt/concordia/orbitdb \ -v concordia-pinner-staging:/mnt/concordia/ \
-p 5555:5555 \ -p 5555:5555 \
--env-file=./jenkins/env/pinner.staging.jenkins.env \ --env-file=./jenkins/env/pinner.staging.jenkins.env \
--name concordia-pinner-staging \ --name concordia-pinner-staging \
@ -613,7 +613,7 @@ pipeline {
-p 9090:9090 \ -p 9090:9090 \
--name concordia-rendezvous \ --name concordia-rendezvous \
--net=ecentrics_concordia_production_network \ --net=ecentrics_concordia_production_network \
libp2p/js-libp2p-webrtc-star:version-0.20.5' libp2p/js-libp2p-webrtc-star:version-0.21.1'
} else { } else {
sh 'docker network connect ecentrics_concordia_production_network concordia-rendezvous || true' sh 'docker network connect ecentrics_concordia_production_network concordia-rendezvous || true'
} }
@ -640,7 +640,7 @@ pipeline {
sh (script: """docker run \ sh (script: """docker run \
-d \ -d \
-v concordia-contracts-provider-production:/mnt/concordia/contracts \ -v concordia-contracts-provider-production:/mnt/concordia \
--env-file=./jenkins/env/contracts.provider.production.env \ --env-file=./jenkins/env/contracts.provider.production.env \
-e NODE_ENV=production \ -e NODE_ENV=production \
-p 8400:8400 \ -p 8400:8400 \
@ -668,7 +668,7 @@ pipeline {
sh (script: 'docker run \ sh (script: 'docker run \
-d \ -d \
-v concordia-ganache-production:/mnt/concordia/ganache_keys \ -v concordia-ganache-production:/mnt/concordia \
-p 8545:8545 \ -p 8545:8545 \
--env-file=./jenkins/env/ganache.production.jenkins.env \ --env-file=./jenkins/env/ganache.production.jenkins.env \
--name concordia-ganache-production \ --name concordia-ganache-production \
@ -721,7 +721,7 @@ pipeline {
sh """docker run \ sh """docker run \
-d \ -d \
-v concordia-pinner-production:/mnt/concordia/orbitdb \ -v concordia-pinner-production:/mnt/concordia \
-p 4444:4444 \ -p 4444:4444 \
-e NODE_ENV=production \ -e NODE_ENV=production \
--env-file=./jenkins/env/pinner.production.jenkins.env \ --env-file=./jenkins/env/pinner.production.jenkins.env \

6
jenkins/env/concordia.production.jenkins.env

@ -4,13 +4,13 @@ LETSENCRYPT_HOST=concordia.ecentrics.net
LETSENCRYPT_EMAIL=ecentricsgr@gmail.com LETSENCRYPT_EMAIL=ecentricsgr@gmail.com
# Variables needed in runtime (in browser) # Variables needed in runtime (in browser)
REACT_APP_CONCORDIA_HOST=concordia.ecentrics.net REACT_APP_CONCORDIA_HOST=https://concordia.ecentrics.net
REACT_APP_CONCORDIA_PORT=7777 REACT_APP_CONCORDIA_PORT=7777
REACT_APP_RENDEZVOUS_HOST=rendezvous.ecentrics.net REACT_APP_RENDEZVOUS_HOST=/dns4/rendezvous.ecentrics.net
REACT_APP_RENDEZVOUS_PORT=9090 REACT_APP_RENDEZVOUS_PORT=9090
REACT_APP_USE_EXTERNAL_CONTRACTS_PROVIDER=true REACT_APP_USE_EXTERNAL_CONTRACTS_PROVIDER=true
REACT_APP_CONTRACTS_PROVIDER_HOST=contracts.concordia.ecentrics.net REACT_APP_CONTRACTS_PROVIDER_HOST=https://contracts.concordia.ecentrics.net
REACT_APP_CONTRACTS_PROVIDER_PORT=8400 REACT_APP_CONTRACTS_PROVIDER_PORT=8400
REACT_APP_CONTRACTS_VERSION_HASH=stable REACT_APP_CONTRACTS_VERSION_HASH=stable

6
jenkins/env/concordia.staging.jenkins.env

@ -4,13 +4,13 @@ LETSENCRYPT_HOST=staging.concordia.ecentrics.net
LETSENCRYPT_EMAIL=ecentricsgr@gmail.com LETSENCRYPT_EMAIL=ecentricsgr@gmail.com
# Variables needed in runtime (in browser) # Variables needed in runtime (in browser)
REACT_APP_CONCORDIA_HOST=staging.concordia.ecentrics.net REACT_APP_CONCORDIA_HOST=https://staging.concordia.ecentrics.net
REACT_APP_CONCORDIA_PORT=7000 REACT_APP_CONCORDIA_PORT=7000
REACT_APP_RENDEZVOUS_HOST=rendezvous.ecentrics.net REACT_APP_RENDEZVOUS_HOST=/dns4/rendezvous.ecentrics.net
REACT_APP_RENDEZVOUS_PORT=9090 REACT_APP_RENDEZVOUS_PORT=9090
REACT_APP_USE_EXTERNAL_CONTRACTS_PROVIDER=true REACT_APP_USE_EXTERNAL_CONTRACTS_PROVIDER=true
REACT_APP_CONTRACTS_PROVIDER_HOST=staging.contracts.concordia.ecentrics.net REACT_APP_CONTRACTS_PROVIDER_HOST=https://staging.contracts.concordia.ecentrics.net
REACT_APP_CONTRACTS_PROVIDER_PORT=8450 REACT_APP_CONTRACTS_PROVIDER_PORT=8450
REACT_APP_CONTRACTS_VERSION_HASH=latest REACT_APP_CONTRACTS_VERSION_HASH=latest

2
jenkins/env/contracts.production.jenkins.env

@ -3,6 +3,6 @@ MIGRATE_NETWORK=env
WEB3_HOST=concordia-ganache-production WEB3_HOST=concordia-ganache-production
WEB3_PORT=8545 WEB3_PORT=8545
CONTRACTS_PROVIDER_HOST=contracts.concordia.ecentrics.net CONTRACTS_PROVIDER_HOST=https://contracts.concordia.ecentrics.net
CONTRACTS_PROVIDER_PORT=8400 CONTRACTS_PROVIDER_PORT=8400
CONTRACTS_VERSION_TAG=stable CONTRACTS_VERSION_TAG=stable

3
jenkins/env/contracts.provider.production.env

@ -5,4 +5,5 @@ LETSENCRYPT_EMAIL=ecentricsgr@gmail.com
CONTRACTS_PROVIDER_PORT=8400 CONTRACTS_PROVIDER_PORT=8400
UPLOAD_CONTRACTS_DIRECTORY=/mnt/concordia/contracts/ UPLOAD_CONTRACTS_DIRECTORY=/mnt/concordia/contracts/
CORS_ALLOWED_ORIGINS="concordia.ecentrics.net;http://concordia.ecentrics.net;https://concordia.ecentrics.net;concordia.ecentrics.net:7777;http://concordia.ecentrics.net:7777;https://concordia.ecentrics.net:7777;127.0.0.1;http://127.0.0.1;127.0.0.1:7777;http://127.0.0.1" LOGS_PATH=/mnt/concordia/logs/
CORS_ALLOWED_ORIGINS="https://concordia.ecentrics.net;http://127.0.0.1:4444;127.0.0.1:4444"

3
jenkins/env/contracts.provider.staging.env

@ -5,4 +5,5 @@ LETSENCRYPT_EMAIL=ecentricsgr@gmail.com
CONTRACTS_PROVIDER_PORT=8450 CONTRACTS_PROVIDER_PORT=8450
UPLOAD_CONTRACTS_DIRECTORY=/mnt/concordia/contracts/ UPLOAD_CONTRACTS_DIRECTORY=/mnt/concordia/contracts/
#CORS_ALLOWED_ORIGINS="staging.concordia.ecentrics.net;http://staging.concordia.ecentrics.net;https://staging.concordia.ecentrics.net;staging.concordia.ecentrics.net:7000;http://staging.concordia.ecentrics.net:7000;https://staging.concordia.ecentrics.net:7000;172.21.0.4;http://172.21.0.4;127.0.0.1;http://127.0.0.1" LOGS_PATH=/mnt/concordia/logs/
CORS_ALLOWED_ORIGINS="https://staging.concordia.ecentrics.net;http://127.0.0.1:5555;127.0.0.1:5555"

2
jenkins/env/contracts.staging.jenkins.env

@ -3,6 +3,6 @@ MIGRATE_NETWORK=env
WEB3_HOST=concordia-ganache-staging WEB3_HOST=concordia-ganache-staging
WEB3_PORT=8555 WEB3_PORT=8555
CONTRACTS_PROVIDER_HOST=staging.contracts.concordia.ecentrics.net CONTRACTS_PROVIDER_HOST=https://staging.contracts.concordia.ecentrics.net
CONTRACTS_PROVIDER_PORT=8450 CONTRACTS_PROVIDER_PORT=8450
CONTRACTS_VERSION_TAG=latest CONTRACTS_VERSION_TAG=latest

8
jenkins/env/pinner.production.jenkins.env

@ -5,15 +5,17 @@ LETSENCRYPT_EMAIL=ecentricsgr@gmail.com
USE_EXTERNAL_CONTRACTS_PROVIDER=true USE_EXTERNAL_CONTRACTS_PROVIDER=true
ORBIT_DIRECTORY=/mnt/concordia/orbitdb ORBIT_DIRECTORY=/mnt/concordia/orbitdb
IPFS_DIRECTORY=/mnt/concordia/ipfs
LOGS_PATH=/mnt/concordia/logs/
CONTRACTS_PROVIDER_HOST=contracts.concordia.ecentrics.net CONTRACTS_PROVIDER_HOST=https://contracts.concordia.ecentrics.net
CONTRACTS_PROVIDER_PORT=8400 CONTRACTS_PROVIDER_PORT=8400
CONTRACTS_VERSION_HASH=stable CONTRACTS_VERSION_HASH=stable
PINNER_API_HOST=127.0.0.1 PINNER_API_HOST=https://127.0.0.1
PINNER_API_PORT=4444 PINNER_API_PORT=4444
RENDEZVOUS_HOST=rendezvous.ecentrics.net RENDEZVOUS_HOST=/dns4/rendezvous.ecentrics.net
RENDEZVOUS_PORT=9090 RENDEZVOUS_PORT=9090
WEB3_HOST=ganache.ecentrics.net WEB3_HOST=ganache.ecentrics.net

8
jenkins/env/pinner.staging.jenkins.env

@ -5,15 +5,17 @@ LETSENCRYPT_EMAIL=ecentricsgr@gmail.com
USE_EXTERNAL_CONTRACTS_PROVIDER=true USE_EXTERNAL_CONTRACTS_PROVIDER=true
ORBIT_DIRECTORY=/mnt/concordia/orbitdb ORBIT_DIRECTORY=/mnt/concordia/orbitdb
IPFS_DIRECTORY=/mnt/concordia/ipfs
LOGS_PATH=/mnt/concordia/logs/
CONTRACTS_PROVIDER_HOST=staging.contracts.concordia.ecentrics.net CONTRACTS_PROVIDER_HOST=https://staging.contracts.concordia.ecentrics.net
CONTRACTS_PROVIDER_PORT=8450 CONTRACTS_PROVIDER_PORT=8450
CONTRACTS_VERSION_HASH=latest CONTRACTS_VERSION_HASH=latest
PINNER_API_HOST=127.0.0.1 PINNER_API_HOST=https://127.0.0.1
PINNER_API_PORT=5555 PINNER_API_PORT=5555
RENDEZVOUS_HOST=rendezvous.ecentrics.net RENDEZVOUS_HOST=/dns4/rendezvous.ecentrics.net
RENDEZVOUS_PORT=9090 RENDEZVOUS_PORT=9090
WEB3_HOST=staging.ganache.ecentrics.net WEB3_HOST=staging.ganache.ecentrics.net

Loading…
Cancel
Save