Skip to content

Commit

Permalink
Staging to master (#105)
Browse files Browse the repository at this point in the history
* refactoring metrics batching; to us-east

* refactoring metrics batching; to us-east

* refactoring metrics batching; to west and eu

* refactoring metrics batching; to west and eu

* reverting metrics change

* reverting metrics change

* fixing error handling due to pocket-js type switch

* fixing error handling due to pocket-js type switch

* fixing legacy codec for transactions

* fixing legacy codec for transactions

* testing rollback of pocket-js, singapore only

* testing rollback of pocket-js, singapore only

* push 0.6.3 to all regions

* push 0.6.3 to all regions

* singapore to pocket-js 0.6.5

* singapore to pocket-js 0.6.5

* singapore rollback to 0.6.3

* singapore rollback to 0.6.3

* first pass at recording client type - singapore

* first pass at recording client type - singapore

* logging client type - singapore

* logging client type - singapore

* removing openeth- singapore

* removing openeth- singapore

* removing openeth- usw2

* removing openeth- usw2

* removing openeth- use2 euw1

* removing openeth- use2 euw1

* test fix for pocket-js to singapore

* test fix for pocket-js to singapore

* pushing js fix to others

* pushing js fix to others

* removing client side filtering

* removing client side filtering

* marking JSON errors as actual errors

* marking JSON errors as actual errors

* singapore only

* singapore only

* other regions get error fix

* other regions get error fix

* testing 0.6.11 to singapore

* testing 0.6.11 to singapore

* max dispatchers to 50 and out to usw2

* max dispatchers to 50 and out to usw2

* to other regions

* to other regions

* better error messaging

* better error messaging

* better error messaging2

* better error messaging2

* setting maxSessionRefresh to 1

* setting maxSessionRefresh to 1

* initial sync check

* initial sync check

* initial sync check with all files

* initial sync check with all files

* sync check structure with lock

* sync check structure with lock

* reverting temporarily

* reverting temporarily

* sync list cache

* sync list cache

* sync list cache 2

* sync list cache 2

* sync list cache 3

* sync list cache 3

* sync check to each node

* sync check to each node

* sync check to each node

* sync check to each node

* sync check to each node

* sync check to each node

* sync check to each node with result

* sync check to each node with result

* sync check to each node with result

* sync check to each node with result

* full sync check test

* full sync check test

* full sync check test, more logging

* full sync check test, more logging

* added challenge

* added challenge

* fixing logic bug in height check

* fixing logic bug in height check

* sync check to other regions

* sync check to other regions

* branch testing for pabel, singapore

* branch testing for pabel, singapore

* session fix test to singapore

* session fix test to singapore

* session fix test to others

* session fix test to others

* profiling to us-w-2

* profiling to us-w-2

* enabling profiler, usw2

* enabling profiler, usw2

* missing files

* missing files

* profiling to timescale

* profiling to timescale

* logging profiler

* logging profiler

* fixing profile data format

* fixing profile data format

* fixing profile data format

* fixing profile data format

* fixing profile data format

* fixing profile data format

* fixing profile data format

* fixing profile data format

* fixing profile data format

* fixing profile data format

* fixing profile data format

* fixing profile data format

* fixing profile data format

* fixing profile data format

* milliseconds fix and removing logging

* milliseconds fix and removing logging

* fixing sync checker timeout

* fixing sync checker timeout

* fixing sync checker timeout

* fixing sync checker timeout

* sync timeout to 5s

* sync timeout to 5s

* adding blockchain to profiler

* adding blockchain to profiler

* adding sync log back, fixing consensus check boolean and node address log

* adding sync log back, fixing consensus check boolean and node address log

* turning off profiler

* turning off profiler

* adding more logging around sync check

* adding more logging around sync check

* adding metrics errors for out of sync nodes

* adding metrics errors for out of sync nodes

* passing request ID through sync checker

* passing request ID through sync checker

* fixing sort with 0 at the top

* fixing sort with 0 at the top

* additional sync logging

* additional sync logging

* fixing sync error handling

* fixing sync error handling

* removing session tumble error from metrics

* removing session tumble error from metrics

* changing default leeway on blockheight to 2

* changing default leeway on blockheight to 2

* making sync allowance variable from the db per chain

* making sync allowance variable from the db per chain

* blockchain fix

* blockchain fix

* fix 2

* fix 2

* fixing excess relay times from bad data on sync check

* fixing excess relay times from bad data on sync check

* fixing long metrics relays

* fixing long metrics relays

* reducing sync check timeout

* reducing sync check timeout

* refactor sync check step 1

* refactor sync check step 1

* sync checker refactor step 2

* sync checker refactor step 2

* sync checker refactor step 3

* sync checker refactor step 3

* sync checker refactor step 3a

* sync checker refactor step 3a

* sync checker refactor step 4

* sync checker refactor step 4

* sync checker refactor done

* sync checker refactor done

* sync checker refactor logging

* sync checker refactor logging

* sync checker refactor logging 2

* sync checker refactor logging 2

* upgrade loopback, singleton pocket, only to staging env

* upgrade loopback, singleton pocket, only to staging env

* upgrade loopback, singleton pocket, only to staging env -- activating with files

* upgrade loopback, singleton pocket, only to staging env -- activating with files

* injectable binding change

* injectable binding change

* removing injectable?

* removing injectable?

* pushing change to usw2

* pushing change to usw2

* to other regions

* to other regions

* reverting singleton

* reverting singleton

* reverting loopback upgrade

* reverting loopback upgrade

* logz.io test

* logz.io test

* changing sync check default to 3 blocks allowed

* changing sync check default to 3 blocks allowed

* removing cruft from task def

* removing cruft from task def

* sync check to 3 nodes default, logger to logz.io

* sync check to 3 nodes default, logger to logz.io

* loosening cherry picker now that sync check filters bad nodes first

* loosening cherry picker now that sync check filters bad nodes first

* Added temporal dispatchers

* Added temporal dispatchers

* Revert "Added temporal dispatchers"

This reverts commit fbc9c79.

* Revert "Added temporal dispatchers"

This reverts commit 0d64064.

* Added temporal dispatchers

* Added temporal dispatchers

* Revert "Added temporal dispatchers"

This reverts commit e7764ff.

* Revert "Added temporal dispatchers"

This reverts commit 9cefdb7.

* chore: disable deployments after rebase

* chore: disable deployments after rebase

* moving gateway to us-e-2

* moving gateway to us-e-2

* adding eu-w-1, turning back on all deploys

* adding eu-w-1, turning back on all deploys

* reduce CPU and ram of each instance

* reduce CPU and ram of each instance

* http method passed correctly

* http method passed correctly

* Update issue templates

* Update issue templates

* chore: merge staging

* chore: merge staging

* fixup: enable AAT_PLAN env var and allow deployments to testnet and staging

* chore: use dev db

* chore: deploy to staging on staging branch, off ftm

* fix: swap branches and keep off

* Bump color-string from 1.5.4 to 1.5.5

Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.4 to 1.5.5.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](Qix-/color-string@1.5.4...1.5.5)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump normalize-url from 4.5.0 to 4.5.1

Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/sindresorhus/normalize-url/releases)
- [Commits](https://github.com/sindresorhus/normalize-url/commits)

---
updated-dependencies:
- dependency-name: normalize-url
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* changing up to start in daemon mode

* pinning mongodb to prod version, removing s3 moc

* bringing example up to date

* fixes #80; removes s3 remnants. also minor fixes: pinning mongo version and removing files that should not be committed

* prepping staging workflow

* updating loopback 4

* pinning mongo version

* removing comment from .env line which was breaking the import

* removing comment that is breaking env example

* making scripts use diff connection strings per instance

* simplifying data import

* making gateway wait for other services

* fixes #83; lb cannot be found due to blockchain subdomain hack

* Develop to staging (#103)

* updating loopback 4

* pinning mongo version

* removing comment from .env line which was breaking the import

* removing comment that is breaking env example

* making scripts use diff connection strings per instance

* simplifying data import

* making gateway wait for other services

* fixes #83; lb cannot be found due to blockchain subdomain hack

* New altruist implementation (#100)

* new altruist implementation

* adding check for blank relaypath, not just undefined

* Updating example to match realities

* pushing feature branch to staging

* fixing bad subdomain parsing

* removing subdomain hack, localhost can work with subdomains

* db test for staging

* db test for staging

* db test for staging

* db test for staging

* fixing logging of debug and wrapping axios in try catch

* testing on usw2

* fixing memory reservation for fargate

* removing excess logging, vestigal interfaces

* restoring CORS headers

* restoring CORS headers

* restoring CORS headers

* restoring CORS headers

* restoring CORS headers

* restoring push on master to production files

* updating requires to imports, resolving PR comments

* reverting logger import change

* pushing to usw2

* pointing workflows back to correct branches

Co-authored-by: Luis de Leon <[email protected]>
Co-authored-by: Luis C. de Leon <[email protected]>
Co-authored-by: derrandz <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
5 people committed Jul 6, 2021
1 parent 8263c88 commit 9714067
Show file tree
Hide file tree
Showing 131 changed files with 1,757 additions and 11,845 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
./node_modules
./dist
37 changes: 37 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Node
NODE_ENV=development

# Pocket-js keys
GATEWAY_CLIENT_PUBLIC_KEY=
GATEWAY_CLIENT_PRIVATE_KEY=v3rys3cr3tk3yud0nt3venkn0w
GATEWAY_CLIENT_PASSPHRASE=v3rys3cr3tp4ssphr4ze

# Mongodb env
MONGO_ENDPOINT=mongodb://mongouser:mongopassword@db:27017/gateway?authSource=admin
DATABASE_ENCRYPTION_KEY=00000000000000000000000000000000

# cache
REDIS_ENDPOINT=cache:6379
REDIS_PORT=6379

# tsdb env
PG_CONNECTION=postgres://pguser:pgpassword@metricsdb:5432/gateway
PG_CERTIFICATE=PG_PRODUCTION_CERTIFICATE

# logz
LOGZ_TOKEN=12345

# pocket protocol dispatch and fallback nodes
DISPATCH_URL=https://node1.mainnet.pokt.network,https://node2.mainnet.pokt.network,https://node3.mainnet.pokt.network,https://node4.mainnet.pokt.network,https://node5.mainnet.pokt.network,https://node6.mainnet.pokt.network,https://node7.mainnet.pokt.network,https://node8.mainnet.pokt.network,https://node9.mainnet.pokt.network,https://node10.mainnet.pokt.network,https://node11.mainnet.pokt.network,https://node12.mainnet.pokt.network,https://node13.mainnet.pokt.network,https://node14.mainnet.pokt.network,https://node15.mainnet.pokt.network,https://node16.mainnet.pokt.network,https://node17.mainnet.pokt.network,https://node18.mainnet.pokt.network,https://node19.mainnet.pokt.network,https://node20.mainnet.pokt.network
ALTRUIST={"0001":"https://user:[email protected]:18081","0003":"https://user:[email protected]:19650","0004":"https://user:[email protected]:18552","0005":"https://user:[email protected]:18553","0009":"https://user:[email protected]:18554","0010":"https://user:[email protected]:18552","0021":"https://user:[email protected]:18545","0022":"https://user:[email protected]:18545","0023":"https://user:[email protected]:18557","0024":"https://user:[email protected]:18548","0025":"https://user:[email protected]:18555","0026":"https://user:[email protected]:18556","0027":"https://user:[email protected]:18546","0028":"https://user:[email protected]:18545","000A":"https://user:[email protected]:18553"}
POCKET_SESSION_BLOCK_FREQUENCY=4
POCKET_BLOCK_TIME=1038000
POCKET_RELAY_RETRIES=0

# Choose your AAT plan
# values: freemium, premium
AAT_PLAN=freemium

# Development environment
WATCH=true
NODE_ENV=development
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ about: Create a report to help us improve
title: "[BUG REPORT]"
labels: bug
assignees: ''

---

**Describe the bug**
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ about: Request a feature
title: "[FEATURE REQUEST]"
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
Expand Down
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/new-shape-up-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: New Shape Up Request
about: A shape up request details
title: "[Request]"
labels: request:general, request:chain-up
assignees: Leke-Ariyo

---

### In 2-4 sentences write a self-contained summary of idea and benefits.

### In 2-4 sentences describe the problem the user faces that this idea addresses.

### In 2-4 sentences describe how the propose idea address' these pain points.

### In 2-3 sentences describe how someone would get started using this.

(If this is baked into an exisiting product, describe this)

### Write a quote here that you would answer to someone asking, that describes why they like the feature release. Would be used as a snippet in Public Relations.

### Write a hypothetical customer quote about why they liked this new feature or idea.

### Write a 1-2 sentence call-to-action for how to grab a users attention to this new feature or idea.

### Internal FAQ
8 changes: 5 additions & 3 deletions .github/workflows/production-ap-southeast-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Production Deployment ap-southeast-1

on:
push:
branches: [ master-off ]
branches: [ master ]

jobs:
deploy:
Expand Down Expand Up @@ -39,13 +39,15 @@ jobs:
envkey_AWS_S3_LOGS_BUCKET: pocket-gateway
envkey_AWS_S3_LOGS_FOLDER: logs/mainnet
envkey_AWS_S3_LOGS_REGION: us-west-2
envkey_DISPATCH_URL: https://node1.mainnet.pokt.network,https://node2.mainnet.pokt.network,https://node3.mainnet.pokt.network,https://node4.mainnet.pokt.network,https://node5.mainnet.pokt.network,https://node6.mainnet.pokt.network,https://node7.mainnet.pokt.network,https://node8.mainnet.pokt.network,https://node9.mainnet.pokt.network,https://node10.mainnet.pokt.network,https://node11.mainnet.pokt.network,https://node12.mainnet.pokt.network,https://node13.mainnet.pokt.network,https://node14.mainnet.pokt.network,https://node15.mainnet.pokt.network,https://node16.mainnet.pokt.network,https://node17.mainnet.pokt.network,https://node18.mainnet.pokt.network,https://node19.mainnet.pokt.network,https://node20.mainnet.pokt.network
envkey_FALLBACK_URL: https://alt1.mainnet.pokt.network,https://alt2.mainnet.pokt.network,https://alt3.mainnet.pokt.network,https://alt4.mainnet.pokt.network,https://alt5.mainnet.pokt.network,https://alt6.mainnet.pokt.network,https://alt7.mainnet.pokt.network,https://alt8.mainnet.pokt.network,https://alt9.mainnet.pokt.network,https://alt10.mainnet.pokt.network
envkey_DISPATCH_URL: https://mainnet-1.nodes.pokt.network:4201,https://mainnet-2.nodes.pokt.network:4202,https://mainnet-3.nodes.pokt.network:4203,https://mainnet-4.nodes.pokt.network:4204,https://mainnet-5.nodes.pokt.network:4205,https://mainnet-6.nodes.pokt.network:4206,https://mainnet-7.nodes.pokt.network:4207,https://mainnet-8.nodes.pokt.network:4208,https://mainnet-9.nodes.pokt.network:4209,https://mainnet-10.nodes.pokt.network:4210,https://mainnet-11.nodes.pokt.network:4211,https://mainnet-12.nodes.pokt.network:4212,https://mainnet-13.nodes.pokt.network:4213,https://mainnet-14.nodes.pokt.network:4214,https://mainnet-15.nodes.pokt.network:4215,https://mainnet-16.nodes.pokt.network:4216,https://mainnet-17.nodes.pokt.network:4217,https://mainnet-18.nodes.pokt.network:4218,https://mainnet-19.nodes.pokt.network:4219,https://mainnet-20.nodes.pokt.network:4220,https://mainnet-21.nodes.pokt.network:4221,https://mainnet-22.nodes.pokt.network:4222,https://mainnet-23.nodes.pokt.network:4223,https://mainnet-24.nodes.pokt.network:4224
envkey_ALTRUISTS: ${{ secrets.POCKET_NETWORK_PRODUCTION_ALTRUISTS }}
envkey_REDIS_ENDPOINT: dashboard.y2p8qe.ng.0001.apse1.cache.amazonaws.com:6379
envkey_REDIS_PORT: 6379
envkey_POCKET_SESSION_BLOCK_FREQUENCY: 4
envkey_POCKET_BLOCK_TIME: 1038000
envkey_POCKET_RELAY_RETRIES: 0
envkey_AAT_PLAN: 'premium'
envkey_NODE_ENV: 'production'
file_name: .env

- name: Build, tag, and push image to Amazon ECR
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/production-eu-west-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Production Deployment eu-west-1

on:
push:
branches: [ master-off ]
branches: [ master ]

jobs:
deploy:
Expand Down Expand Up @@ -34,13 +34,20 @@ jobs:
envkey_PG_CONNECTION: ${{ secrets.PG_PRODUCTION_CONNECTION }}
envkey_PG_CERTIFICATE: ${{ secrets.PG_PRODUCTION_CERTIFICATE }}
envkey_LOGZ_TOKEN: ${{ secrets.LOGZ_TOKEN }}
envkey_DISPATCH_URL: https://node1.mainnet.pokt.network,https://node2.mainnet.pokt.network,https://node3.mainnet.pokt.network,https://node4.mainnet.pokt.network,https://node5.mainnet.pokt.network,https://node6.mainnet.pokt.network,https://node7.mainnet.pokt.network,https://node8.mainnet.pokt.network,https://node9.mainnet.pokt.network,https://node10.mainnet.pokt.network,https://node11.mainnet.pokt.network,https://node12.mainnet.pokt.network,https://node13.mainnet.pokt.network,https://node14.mainnet.pokt.network,https://node15.mainnet.pokt.network,https://node16.mainnet.pokt.network,https://node17.mainnet.pokt.network,https://node18.mainnet.pokt.network,https://node19.mainnet.pokt.network,https://node20.mainnet.pokt.network
envkey_FALLBACK_URL: https://alt1.mainnet.pokt.network,https://alt2.mainnet.pokt.network,https://alt3.mainnet.pokt.network,https://alt4.mainnet.pokt.network,https://alt5.mainnet.pokt.network,https://alt6.mainnet.pokt.network,https://alt7.mainnet.pokt.network,https://alt8.mainnet.pokt.network,https://alt9.mainnet.pokt.network,https://alt10.mainnet.pokt.network
envkey_AWS_S3_ACCESS_KEY_ID: ${{ secrets.AWS_S3_ACCESS_KEY_ID }}
envkey_AWS_S3_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }}
envkey_AWS_S3_LOGS_BUCKET: pocket-gateway
envkey_AWS_S3_LOGS_FOLDER: logs/mainnet
envkey_AWS_S3_LOGS_REGION: eu-west-1
envkey_DISPATCH_URL: https://mainnet-1.nodes.pokt.network:4201,https://mainnet-2.nodes.pokt.network:4202,https://mainnet-3.nodes.pokt.network:4203,https://mainnet-4.nodes.pokt.network:4204,https://mainnet-5.nodes.pokt.network:4205,https://mainnet-6.nodes.pokt.network:4206,https://mainnet-7.nodes.pokt.network:4207,https://mainnet-8.nodes.pokt.network:4208,https://mainnet-9.nodes.pokt.network:4209,https://mainnet-10.nodes.pokt.network:4210,https://mainnet-11.nodes.pokt.network:4211,https://mainnet-12.nodes.pokt.network:4212,https://mainnet-13.nodes.pokt.network:4213,https://mainnet-14.nodes.pokt.network:4214,https://mainnet-15.nodes.pokt.network:4215,https://mainnet-16.nodes.pokt.network:4216,https://mainnet-17.nodes.pokt.network:4217,https://mainnet-18.nodes.pokt.network:4218,https://mainnet-19.nodes.pokt.network:4219,https://mainnet-20.nodes.pokt.network:4220,https://mainnet-21.nodes.pokt.network:4221,https://mainnet-22.nodes.pokt.network:4222,https://mainnet-23.nodes.pokt.network:4223,https://mainnet-24.nodes.pokt.network:4224
envkey_ALTRUISTS: ${{ secrets.POCKET_NETWORK_PRODUCTION_ALTRUISTS }}
envkey_REDIS_ENDPOINT: gateway.dj2dgc.ng.0001.euw1.cache.amazonaws.com:6379
envkey_REDIS_PORT: 6379
envkey_POCKET_SESSION_BLOCK_FREQUENCY: 4
envkey_POCKET_BLOCK_TIME: 1038000
envkey_POCKET_RELAY_RETRIES: 0
envkey_AAT_PLAN: 'premium'
envkey_NODE_ENV: 'production'
file_name: .env

- name: Build, tag, and push image to Amazon ECR
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/production-us-east-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Production Deployment us-east-2

on:
push:
branches: [ master-off ]
branches: [ master ]

jobs:
deploy:
Expand Down Expand Up @@ -34,13 +34,20 @@ jobs:
envkey_PG_CONNECTION: ${{ secrets.PG_PRODUCTION_CONNECTION }}
envkey_PG_CERTIFICATE: ${{ secrets.PG_PRODUCTION_CERTIFICATE }}
envkey_LOGZ_TOKEN: ${{ secrets.LOGZ_TOKEN }}
envkey_DISPATCH_URL: https://node1.mainnet.pokt.network,https://node2.mainnet.pokt.network,https://node3.mainnet.pokt.network,https://node4.mainnet.pokt.network,https://node5.mainnet.pokt.network,https://node6.mainnet.pokt.network,https://node7.mainnet.pokt.network,https://node8.mainnet.pokt.network,https://node9.mainnet.pokt.network,https://node10.mainnet.pokt.network,https://node11.mainnet.pokt.network,https://node12.mainnet.pokt.network,https://node13.mainnet.pokt.network,https://node14.mainnet.pokt.network,https://node15.mainnet.pokt.network,https://node16.mainnet.pokt.network,https://node17.mainnet.pokt.network,https://node18.mainnet.pokt.network,https://node19.mainnet.pokt.network,https://node20.mainnet.pokt.network
envkey_FALLBACK_URL: https://alt1.mainnet.pokt.network,https://alt2.mainnet.pokt.network,https://alt3.mainnet.pokt.network,https://alt4.mainnet.pokt.network,https://alt5.mainnet.pokt.network,https://alt6.mainnet.pokt.network,https://alt7.mainnet.pokt.network,https://alt8.mainnet.pokt.network,https://alt9.mainnet.pokt.network,https://alt10.mainnet.pokt.network
envkey_AWS_S3_ACCESS_KEY_ID: ${{ secrets.AWS_S3_ACCESS_KEY_ID }}
envkey_AWS_S3_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }}
envkey_AWS_S3_LOGS_BUCKET: pocket-gateway
envkey_AWS_S3_LOGS_FOLDER: logs/mainnet
envkey_AWS_S3_LOGS_REGION: us-east-2
envkey_DISPATCH_URL: https://mainnet-1.nodes.pokt.network:4201,https://mainnet-2.nodes.pokt.network:4202,https://mainnet-3.nodes.pokt.network:4203,https://mainnet-4.nodes.pokt.network:4204,https://mainnet-5.nodes.pokt.network:4205,https://mainnet-6.nodes.pokt.network:4206,https://mainnet-7.nodes.pokt.network:4207,https://mainnet-8.nodes.pokt.network:4208,https://mainnet-9.nodes.pokt.network:4209,https://mainnet-10.nodes.pokt.network:4210,https://mainnet-11.nodes.pokt.network:4211,https://mainnet-12.nodes.pokt.network:4212,https://mainnet-13.nodes.pokt.network:4213,https://mainnet-14.nodes.pokt.network:4214,https://mainnet-15.nodes.pokt.network:4215,https://mainnet-16.nodes.pokt.network:4216,https://mainnet-17.nodes.pokt.network:4217,https://mainnet-18.nodes.pokt.network:4218,https://mainnet-19.nodes.pokt.network:4219,https://mainnet-20.nodes.pokt.network:4220,https://mainnet-21.nodes.pokt.network:4221,https://mainnet-22.nodes.pokt.network:4222,https://mainnet-23.nodes.pokt.network:4223,https://mainnet-24.nodes.pokt.network:4224
envkey_ALTRUISTS: ${{ secrets.POCKET_NETWORK_PRODUCTION_ALTRUISTS }}
envkey_REDIS_ENDPOINT: gateway.pzdhdc.ng.0001.use2.cache.amazonaws.com:6379
envkey_REDIS_PORT: 6379
envkey_POCKET_SESSION_BLOCK_FREQUENCY: 4
envkey_POCKET_BLOCK_TIME: 1038000
envkey_POCKET_RELAY_RETRIES: 0
envkey_AAT_PLAN: 'premium'
envkey_NODE_ENV: 'production'
file_name: .env

- name: Build, tag, and push image to Amazon ECR
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/production-us-west-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Production Deployment us-west-2

on:
push:
branches: [ master-off ]
branches: [ master ]

jobs:
deploy:
Expand Down Expand Up @@ -33,20 +33,16 @@ jobs:
envkey_DATABASE_ENCRYPTION_KEY: ${{ secrets.DATABASE_PRODUCTION_ENCRYPTION_KEY }}
envkey_PG_CONNECTION: ${{ secrets.PG_PRODUCTION_CONNECTION }}
envkey_PG_CERTIFICATE: ${{ secrets.PG_PRODUCTION_CERTIFICATE }}

envkey_LOGZ_TOKEN: ${{ secrets.LOGZ_TOKEN }}
envkey_AWS_S3_ACCESS_KEY_ID: ${{ secrets.AWS_S3_ACCESS_KEY_ID }}
envkey_AWS_S3_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }}
envkey_AWS_S3_LOGS_BUCKET: pocket-gateway
envkey_AWS_S3_LOGS_FOLDER: logs/mainnet
envkey_AWS_S3_LOGS_REGION: us-west-2
envkey_DISPATCH_URL: https://node1.mainnet.pokt.network,https://node2.mainnet.pokt.network,https://node3.mainnet.pokt.network,https://node4.mainnet.pokt.network,https://node5.mainnet.pokt.network,https://node6.mainnet.pokt.network,https://node7.mainnet.pokt.network,https://node8.mainnet.pokt.network,https://node9.mainnet.pokt.network,https://node10.mainnet.pokt.network,https://node11.mainnet.pokt.network,https://node12.mainnet.pokt.network,https://node13.mainnet.pokt.network,https://node14.mainnet.pokt.network,https://node15.mainnet.pokt.network,https://node16.mainnet.pokt.network,https://node17.mainnet.pokt.network,https://node18.mainnet.pokt.network,https://node19.mainnet.pokt.network,https://node20.mainnet.pokt.network
envkey_FALLBACK_URL: https://alt1.mainnet.pokt.network,https://alt2.mainnet.pokt.network,https://alt3.mainnet.pokt.network,https://alt4.mainnet.pokt.network,https://alt5.mainnet.pokt.network,https://alt6.mainnet.pokt.network,https://alt7.mainnet.pokt.network,https://alt8.mainnet.pokt.network,https://alt9.mainnet.pokt.network,https://alt10.mainnet.pokt.network
envkey_DISPATCH_URL: https://mainnet-1.nodes.pokt.network:4201,https://mainnet-2.nodes.pokt.network:4202,https://mainnet-3.nodes.pokt.network:4203,https://mainnet-4.nodes.pokt.network:4204,https://mainnet-5.nodes.pokt.network:4205,https://mainnet-6.nodes.pokt.network:4206,https://mainnet-7.nodes.pokt.network:4207,https://mainnet-8.nodes.pokt.network:4208,https://mainnet-9.nodes.pokt.network:4209,https://mainnet-10.nodes.pokt.network:4210,https://mainnet-11.nodes.pokt.network:4211,https://mainnet-12.nodes.pokt.network:4212,https://mainnet-13.nodes.pokt.network:4213,https://mainnet-14.nodes.pokt.network:4214,https://mainnet-15.nodes.pokt.network:4215,https://mainnet-16.nodes.pokt.network:4216,https://mainnet-17.nodes.pokt.network:4217,https://mainnet-18.nodes.pokt.network:4218,https://mainnet-19.nodes.pokt.network:4219,https://mainnet-20.nodes.pokt.network:4220,https://mainnet-21.nodes.pokt.network:4221,https://mainnet-22.nodes.pokt.network:4222,https://mainnet-23.nodes.pokt.network:4223,https://mainnet-24.nodes.pokt.network:4224
envkey_ALTRUISTS: ${{ secrets.POCKET_NETWORK_PRODUCTION_ALTRUISTS }}
envkey_REDIS_ENDPOINT: dashboard.js6zbp.ng.0001.usw2.cache.amazonaws.com
envkey_REDIS_PORT: 6379
envkey_POCKET_SESSION_BLOCK_FREQUENCY: 4
envkey_POCKET_BLOCK_TIME: 1038000
envkey_POCKET_RELAY_RETRIES: 0
envkey_AAT_PLAN: 'premium'
envkey_NODE_ENV: 'production'
file_name: .env

- name: Build, tag, and push image to Amazon ECR
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/staging-us-west-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Staging Deployment us-west-2

on:
push:
branches: [ master-off ]
branches: [ staging ]

jobs:
deploy:
Expand Down Expand Up @@ -34,20 +34,22 @@ jobs:
envkey_PG_CONNECTION: ${{ secrets.PG_PRODUCTION_CONNECTION }}
envkey_PG_CERTIFICATE: ${{ secrets.PG_PRODUCTION_CERTIFICATE }}
envkey_LOGZ_TOKEN: ${{ secrets.LOGZ_TOKEN }}
envkey_DISPATCH_URL: https://node1.mainnet.pokt.network,https://node2.mainnet.pokt.network,https://node3.mainnet.pokt.network,https://node4.mainnet.pokt.network,https://node5.mainnet.pokt.network,https://node6.mainnet.pokt.network,https://node7.mainnet.pokt.network,https://node8.mainnet.pokt.network,https://node9.mainnet.pokt.network,https://node10.mainnet.pokt.network,https://node11.mainnet.pokt.network,https://node12.mainnet.pokt.network,https://node13.mainnet.pokt.network,https://node14.mainnet.pokt.network,https://node15.mainnet.pokt.network,https://node16.mainnet.pokt.network,https://node17.mainnet.pokt.network,https://node18.mainnet.pokt.network,https://node19.mainnet.pokt.network,https://node20.mainnet.pokt.network
envkey_FALLBACK_URL: https://alt1.mainnet.pokt.network,https://alt2.mainnet.pokt.network,https://alt3.mainnet.pokt.network,https://alt4.mainnet.pokt.network,https://alt5.mainnet.pokt.network,https://alt6.mainnet.pokt.network,https://alt7.mainnet.pokt.network,https://alt8.mainnet.pokt.network,https://alt9.mainnet.pokt.network,https://alt10.mainnet.pokt.network
envkey_DISPATCH_URL: https://mainnet-1.nodes.pokt.network:4201,https://mainnet-2.nodes.pokt.network:4202,https://mainnet-3.nodes.pokt.network:4203,https://mainnet-4.nodes.pokt.network:4204,https://mainnet-5.nodes.pokt.network:4205,https://mainnet-6.nodes.pokt.network:4206,https://mainnet-7.nodes.pokt.network:4207,https://mainnet-8.nodes.pokt.network:4208,https://mainnet-9.nodes.pokt.network:4209,https://mainnet-10.nodes.pokt.network:4210,https://mainnet-11.nodes.pokt.network:4211,https://mainnet-12.nodes.pokt.network:4212,https://mainnet-13.nodes.pokt.network:4213,https://mainnet-14.nodes.pokt.network:4214,https://mainnet-15.nodes.pokt.network:4215,https://mainnet-16.nodes.pokt.network:4216,https://mainnet-17.nodes.pokt.network:4217,https://mainnet-18.nodes.pokt.network:4218,https://mainnet-19.nodes.pokt.network:4219,https://mainnet-20.nodes.pokt.network:4220,https://mainnet-21.nodes.pokt.network:4221,https://mainnet-22.nodes.pokt.network:4222,https://mainnet-23.nodes.pokt.network:4223,https://mainnet-24.nodes.pokt.network:4224
envkey_ALTRUISTS: ${{ secrets.POCKET_NETWORK_PRODUCTION_ALTRUISTS }}
envkey_REDIS_ENDPOINT: dashboard.js6zbp.ng.0001.usw2.cache.amazonaws.com
envkey_REDIS_PORT: 6379
envkey_POCKET_SESSION_BLOCK_FREQUENCY: 4
envkey_POCKET_BLOCK_TIME: 1038000
envkey_POCKET_RELAY_RETRIES: 0
envkey_AAT_PLAN: 'premium'
envkey_NODE_ENV: 'production'
file_name: .env

- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: gateway
ECR_REPOSITORY: gateway-staging
IMAGE_TAG: latest
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
Expand Down
Loading

0 comments on commit 9714067

Please sign in to comment.