Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update staging with latest master & stop tracking dist #70

Merged
merged 280 commits into from
Jun 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
280 commits
Select commit Hold shift + click to select a range
9e643ca
fixing error handling due to pocket-js type switch
nymd Apr 9, 2021
5d3cf48
fixing legacy codec for transactions
nymd Apr 13, 2021
0e9ed9f
testing rollback of pocket-js, singapore only
nymd Apr 14, 2021
fb7b85b
push 0.6.3 to all regions
nymd Apr 14, 2021
69a13d3
singapore to pocket-js 0.6.5
nymd Apr 14, 2021
0fad251
singapore rollback to 0.6.3
nymd Apr 14, 2021
09c3a17
first pass at recording client type - singapore
nymd Apr 15, 2021
1146626
logging client type - singapore
nymd Apr 15, 2021
c570030
removing openeth- singapore
nymd Apr 15, 2021
3e58b32
removing openeth- usw2
nymd Apr 15, 2021
aa68a15
removing openeth- use2 euw1
nymd Apr 15, 2021
d924816
test fix for pocket-js to singapore
nymd Apr 15, 2021
b2ace42
pushing js fix to others
nymd Apr 16, 2021
2c69b7b
removing client side filtering
nymd Apr 16, 2021
9ee3cd0
marking JSON errors as actual errors
nymd Apr 16, 2021
1a97204
singapore only
nymd Apr 16, 2021
63f0fcf
other regions get error fix
nymd Apr 16, 2021
1bf941c
testing 0.6.11 to singapore
nymd Apr 16, 2021
491cc38
max dispatchers to 50 and out to usw2
nymd Apr 16, 2021
6566554
to other regions
nymd Apr 16, 2021
57978c1
better error messaging
nymd Apr 19, 2021
dba7ccb
better error messaging2
nymd Apr 19, 2021
1d5f046
setting maxSessionRefresh to 1
nymd Apr 20, 2021
9644a93
initial sync check
nymd Apr 22, 2021
a2e2e68
initial sync check with all files
nymd Apr 22, 2021
551c242
sync check structure with lock
nymd Apr 22, 2021
4466755
reverting temporarily
nymd Apr 22, 2021
58572f5
sync list cache
nymd Apr 22, 2021
08fa993
sync list cache 2
nymd Apr 22, 2021
ff27d96
sync list cache 3
nymd Apr 22, 2021
ffc4845
sync check to each node
nymd Apr 22, 2021
c7e22d6
sync check to each node
nymd Apr 22, 2021
7ad1662
sync check to each node
nymd Apr 22, 2021
2932693
sync check to each node with result
nymd Apr 22, 2021
0273c81
sync check to each node with result
nymd Apr 22, 2021
98a02c2
full sync check test
nymd Apr 22, 2021
5bee35d
full sync check test, more logging
nymd Apr 22, 2021
50b51ac
added challenge
nymd Apr 22, 2021
3e1e149
fixing logic bug in height check
nymd Apr 22, 2021
957fcf3
sync check to other regions
nymd Apr 22, 2021
4a73c44
branch testing for pabel, singapore
nymd Apr 22, 2021
2d2f0c9
session fix test to singapore
nymd Apr 23, 2021
8a9da93
session fix test to others
nymd Apr 23, 2021
632516b
profiling to us-w-2
nymd Apr 30, 2021
60dd76a
enabling profiler, usw2
nymd Apr 30, 2021
20e82bd
missing files
nymd Apr 30, 2021
e7c45c0
profiling to timescale
nymd Apr 30, 2021
577cb2b
logging profiler
nymd Apr 30, 2021
d8c5f89
fixing profile data format
nymd Apr 30, 2021
aff75a8
fixing profile data format
nymd Apr 30, 2021
ce30411
fixing profile data format
nymd Apr 30, 2021
cec92d2
fixing profile data format
nymd Apr 30, 2021
2adfb3d
fixing profile data format
nymd Apr 30, 2021
7566369
fixing profile data format
nymd Apr 30, 2021
cbf898b
fixing profile data format
nymd Apr 30, 2021
c8b7f8d
milliseconds fix and removing logging
nymd Apr 30, 2021
9f0f4a7
fixing sync checker timeout
nymd Apr 30, 2021
bbdcb50
fixing sync checker timeout
nymd Apr 30, 2021
430e027
sync timeout to 5s
nymd Apr 30, 2021
4fd8485
adding blockchain to profiler
nymd May 1, 2021
579bc62
adding sync log back, fixing consensus check boolean and node address…
nymd May 4, 2021
7d0352d
turning off profiler
nymd May 4, 2021
f6219a6
adding more logging around sync check
nymd May 4, 2021
b9cb4f1
adding metrics errors for out of sync nodes
nymd May 4, 2021
1d411ba
passing request ID through sync checker
nymd May 4, 2021
3962628
fixing sort with 0 at the top
nymd May 4, 2021
c83e5b7
additional sync logging
nymd May 4, 2021
9e84942
fixing sync error handling
nymd May 4, 2021
7c0c5ef
removing session tumble error from metrics
nymd May 4, 2021
5f1ab42
changing default leeway on blockheight to 2
nymd May 4, 2021
39fd035
making sync allowance variable from the db per chain
nymd May 4, 2021
7d2cb82
blockchain fix
nymd May 4, 2021
389ef46
fix 2
nymd May 4, 2021
dbfa7ce
fixing excess relay times from bad data on sync check
nymd May 5, 2021
1d57849
fixing long metrics relays
nymd May 7, 2021
b66a416
reducing sync check timeout
nymd May 7, 2021
7b6cf58
refactor sync check step 1
nymd May 7, 2021
b73c38d
sync checker refactor step 2
nymd May 7, 2021
7151339
sync checker refactor step 3
nymd May 7, 2021
e9ae572
sync checker refactor step 3a
nymd May 7, 2021
86c0c37
sync checker refactor step 4
nymd May 7, 2021
ed8fc72
sync checker refactor done
nymd May 7, 2021
d04fa3e
sync checker refactor logging
nymd May 7, 2021
ba9909e
sync checker refactor logging 2
nymd May 7, 2021
2224523
upgrade loopback, singleton pocket, only to staging env
nymd May 11, 2021
bee4820
upgrade loopback, singleton pocket, only to staging env -- activating…
nymd May 11, 2021
2226d0d
injectable binding change
nymd May 11, 2021
935ea2f
removing injectable?
nymd May 11, 2021
afcdd20
pushing change to usw2
nymd May 11, 2021
dc1eaa9
to other regions
nymd May 11, 2021
a9b2174
reverting singleton
nymd May 11, 2021
c6c9d22
reverting loopback upgrade
nymd May 11, 2021
29d2f5f
logz.io test
nymd May 17, 2021
91f4aac
changing sync check default to 3 blocks allowed
nymd May 17, 2021
8a16aca
removing cruft from task def
nymd May 17, 2021
7545a21
sync check to 3 nodes default, logger to logz.io
nymd May 18, 2021
b9b1a17
loosening cherry picker now that sync check filters bad nodes first
nymd May 19, 2021
4faffd6
Added temporal dispatchers
luyzdeleon Nov 20, 2020
1e4c594
Revert "Added temporal dispatchers"
luyzdeleon Nov 20, 2020
d33aaa0
Added temporal dispatchers
luyzdeleon Nov 20, 2020
4df2ebb
Revert "Added temporal dispatchers"
luyzdeleon Nov 20, 2020
8263c88
chore: disable deployments after rebase
derrandz Jun 20, 2021
76ece0d
re-instate master deployments
nymd Mar 29, 2021
07683e2
moving gateway to us-e-2
nymd Mar 31, 2021
da08f37
adding eu-w-1, turning back on all deploys
nymd Mar 31, 2021
0fef3ae
Master (#51)
nymd Mar 31, 2021
a9604a1
reduce CPU and ram of each instance
nymd Mar 31, 2021
fd69817
turning master deploys back on
nymd Mar 31, 2021
665068a
http method passed correctly
nymd Apr 1, 2021
b2b97ec
Update issue templates
derrandz Mar 24, 2021
20a61df
chore: no longer track dist
derrandz Jun 21, 2021
7c96a54
chore: disable deployments for us-west-2
derrandz Jun 21, 2021
21f9d2c
chore: stop tracking env files
derrandz Jun 21, 2021
c8c5686
re-deploy regions that were off (#55)
nymd Mar 31, 2021
55933d2
turning master push back on, reseting mem limit to 4gb
nymd Mar 31, 2021
cb2c77d
attempting session tumble fix, lol
nymd Apr 3, 2021
adda1ea
testing further failure fix, only to singapore
nymd Apr 4, 2021
663235c
testing further failure fix, all regions
nymd Apr 4, 2021
437d963
extending session node log to 2 hours
nymd Apr 4, 2021
c9b0b38
extending session node log to 2 hours, removing hourly on name
nymd Apr 4, 2021
0984399
adding sequential error log and failure marking
nymd Apr 4, 2021
fe73540
adding failure ignore on second weighting group
nymd Apr 4, 2021
17b984f
adding failure ignore on second weighting group 2
nymd Apr 4, 2021
b1b254c
adding expire to temp failure mark
nymd Apr 5, 2021
6b29e18
moving pocket js to each thread; singapore only
nymd Apr 5, 2021
0658fa6
trying apps with their own pocketjs
nymd Apr 5, 2021
e2c0288
pushing usw2
nymd Apr 5, 2021
3be3162
pushing the rest
nymd Apr 5, 2021
345e184
updating pocket-js to 0.6.9
nymd Apr 5, 2021
d9eca24
reverting pocket-js changes
nymd Apr 8, 2021
683b0c4
pushing the rest
nymd Apr 8, 2021
0016848
increasing instance size
nymd Apr 8, 2021
288c495
race condition fix?
nymd Apr 9, 2021
0f482d2
more robust pg insert
nymd Apr 9, 2021
beba369
more robust pg insert query log
nymd Apr 9, 2021
abd58c0
more robust pg insert query log 2
nymd Apr 9, 2021
66b2058
kill the race condition inserting nulls
nymd Apr 9, 2021
0b2de9b
refactoring metrics batching; only to singapore
nymd Apr 9, 2021
b70f4ee
refactoring metrics batching; to us-east
nymd Apr 9, 2021
5d8fa33
refactoring metrics batching; to west and eu
nymd Apr 9, 2021
2dea4b4
reverting metrics change
nymd Apr 9, 2021
6caadca
fixing error handling due to pocket-js type switch
nymd Apr 9, 2021
53febf3
fixing legacy codec for transactions
nymd Apr 13, 2021
9937bad
testing rollback of pocket-js, singapore only
nymd Apr 14, 2021
ea0d803
push 0.6.3 to all regions
nymd Apr 14, 2021
1e5f4b4
singapore to pocket-js 0.6.5
nymd Apr 14, 2021
18985d4
singapore rollback to 0.6.3
nymd Apr 14, 2021
c79816f
first pass at recording client type - singapore
nymd Apr 15, 2021
9feb949
logging client type - singapore
nymd Apr 15, 2021
7591a7b
removing openeth- singapore
nymd Apr 15, 2021
cafa933
removing openeth- usw2
nymd Apr 15, 2021
e4503df
removing openeth- use2 euw1
nymd Apr 15, 2021
2e57291
test fix for pocket-js to singapore
nymd Apr 15, 2021
9743525
pushing js fix to others
nymd Apr 16, 2021
4a84c84
removing client side filtering
nymd Apr 16, 2021
a0f1877
marking JSON errors as actual errors
nymd Apr 16, 2021
739c067
singapore only
nymd Apr 16, 2021
50e3a4f
other regions get error fix
nymd Apr 16, 2021
8573d2f
testing 0.6.11 to singapore
nymd Apr 16, 2021
f67ac5d
max dispatchers to 50 and out to usw2
nymd Apr 16, 2021
ac947c5
to other regions
nymd Apr 16, 2021
1c9a0a3
better error messaging
nymd Apr 19, 2021
d36d756
better error messaging2
nymd Apr 19, 2021
a88e7a1
setting maxSessionRefresh to 1
nymd Apr 20, 2021
1a4b3db
initial sync check
nymd Apr 22, 2021
cbf230d
initial sync check with all files
nymd Apr 22, 2021
8a39f14
sync check structure with lock
nymd Apr 22, 2021
d21fa52
reverting temporarily
nymd Apr 22, 2021
c85fa60
sync list cache
nymd Apr 22, 2021
97f2465
sync list cache 2
nymd Apr 22, 2021
4936337
sync list cache 3
nymd Apr 22, 2021
87a6fbd
sync check to each node
nymd Apr 22, 2021
094c3c0
sync check to each node
nymd Apr 22, 2021
5627ab4
sync check to each node
nymd Apr 22, 2021
2bf96f6
sync check to each node with result
nymd Apr 22, 2021
80b528f
sync check to each node with result
nymd Apr 22, 2021
c3a7e75
full sync check test
nymd Apr 22, 2021
f1e36b2
full sync check test, more logging
nymd Apr 22, 2021
ab713db
added challenge
nymd Apr 22, 2021
3c2dba6
fixing logic bug in height check
nymd Apr 22, 2021
735bf59
sync check to other regions
nymd Apr 22, 2021
dca7448
branch testing for pabel, singapore
nymd Apr 22, 2021
8670233
session fix test to singapore
nymd Apr 23, 2021
56dd01c
session fix test to others
nymd Apr 23, 2021
0ae8788
profiling to us-w-2
nymd Apr 30, 2021
6592a91
enabling profiler, usw2
nymd Apr 30, 2021
15f8535
missing files
nymd Apr 30, 2021
a2bc332
profiling to timescale
nymd Apr 30, 2021
150798f
logging profiler
nymd Apr 30, 2021
9622939
fixing profile data format
nymd Apr 30, 2021
3efd4c7
fixing profile data format
nymd Apr 30, 2021
323d3c1
fixing profile data format
nymd Apr 30, 2021
c3b8cda
fixing profile data format
nymd Apr 30, 2021
2099730
fixing profile data format
nymd Apr 30, 2021
d0da821
fixing profile data format
nymd Apr 30, 2021
1fea446
fixing profile data format
nymd Apr 30, 2021
3efa8bd
milliseconds fix and removing logging
nymd Apr 30, 2021
e027312
fixing sync checker timeout
nymd Apr 30, 2021
715d9e2
fixing sync checker timeout
nymd Apr 30, 2021
68d4744
sync timeout to 5s
nymd Apr 30, 2021
9b84cf9
adding blockchain to profiler
nymd May 1, 2021
1c38f95
adding sync log back, fixing consensus check boolean and node address…
nymd May 4, 2021
5b51b00
turning off profiler
nymd May 4, 2021
67f298b
adding more logging around sync check
nymd May 4, 2021
b922bd3
adding metrics errors for out of sync nodes
nymd May 4, 2021
56ce0ab
passing request ID through sync checker
nymd May 4, 2021
9226dcb
fixing sort with 0 at the top
nymd May 4, 2021
a5c7106
additional sync logging
nymd May 4, 2021
a81dfcb
fixing sync error handling
nymd May 4, 2021
7c5dadc
removing session tumble error from metrics
nymd May 4, 2021
03a1046
changing default leeway on blockheight to 2
nymd May 4, 2021
7e8f838
making sync allowance variable from the db per chain
nymd May 4, 2021
98b0deb
blockchain fix
nymd May 4, 2021
4c29e9f
fix 2
nymd May 4, 2021
5984b3b
fixing excess relay times from bad data on sync check
nymd May 5, 2021
5a046b5
fixing long metrics relays
nymd May 7, 2021
95c3a75
reducing sync check timeout
nymd May 7, 2021
7c03e38
refactor sync check step 1
nymd May 7, 2021
fad8d0b
sync checker refactor step 2
nymd May 7, 2021
b65f1d0
sync checker refactor step 3
nymd May 7, 2021
8d9e17f
sync checker refactor step 3a
nymd May 7, 2021
a36ec43
sync checker refactor step 4
nymd May 7, 2021
f1125c2
sync checker refactor done
nymd May 7, 2021
3eedb61
sync checker refactor logging
nymd May 7, 2021
18e7384
sync checker refactor logging 2
nymd May 7, 2021
38b3b5c
upgrade loopback, singleton pocket, only to staging env
nymd May 11, 2021
ee5baec
upgrade loopback, singleton pocket, only to staging env -- activating…
nymd May 11, 2021
0d9e318
injectable binding change
nymd May 11, 2021
755b71a
removing injectable?
nymd May 11, 2021
1531212
pushing change to usw2
nymd May 11, 2021
8459aa9
to other regions
nymd May 11, 2021
f7cf50b
reverting singleton
nymd May 11, 2021
a845170
reverting loopback upgrade
nymd May 11, 2021
d813570
logz.io test
nymd May 17, 2021
c361413
changing sync check default to 3 blocks allowed
nymd May 17, 2021
c20ab56
removing cruft from task def
nymd May 17, 2021
cdae4b1
sync check to 3 nodes default, logger to logz.io
nymd May 18, 2021
a160506
loosening cherry picker now that sync check filters bad nodes first
nymd May 19, 2021
f59b134
Added temporal dispatchers
luyzdeleon Nov 20, 2020
90ff010
Revert "Added temporal dispatchers"
luyzdeleon Nov 20, 2020
42d0eea
Added temporal dispatchers
luyzdeleon Nov 20, 2020
f499005
Revert "Added temporal dispatchers"
luyzdeleon Nov 20, 2020
c6c75f1
chore: disable deployments after rebase
derrandz Jun 20, 2021
32eed60
moving gateway to us-e-2
nymd Mar 31, 2021
9dc031b
adding eu-w-1, turning back on all deploys
nymd Mar 31, 2021
66c850d
reduce CPU and ram of each instance
nymd Mar 31, 2021
2bea1aa
http method passed correctly
nymd Apr 1, 2021
ca40efa
Update issue templates
derrandz Mar 24, 2021
6675be3
Merge branch 'staging' into update/staging-with-latest-master
derrandz Jun 22, 2021
f446fab
chore: merge staging
derrandz Jun 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Node
NODE_ENV=development

# Pocket-js keys
GATEWAY_CLIENT_PUBLIC_KEY=e7e91202573bdd1927b00fce9b0b46fa7944b06e6fe1bc987abc86e4d0dd47d6
GATEWAY_CLIENT_PRIVATE_KEY=710f624082f758a4bff5f3989264d2295e2206c23f72c3df5e254a18b0dc20cf657008a612d86c4f8c43c8d46094c04aedc7dc36b2a6dbc5af168aeaf52f1750
GATEWAY_CLIENT_PASSPHRASE=L0c4ld3v3l0pment!

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

# cache
REDIS_ENDPOINT=cache:6379
REDIS_PORT=6379

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

# s3 protocol creds
AWS_S3_ACCESS_KEY_ID=gatewayS3AccessKeyId
AWS_S3_SECRET_ACCESS_KEY=gatewayS3SecretAccessKey
AWS_S3_LOGS_BUCKET=pocket-gateway
AWS_S3_LOGS_FOLDER=logs/mainnet
AWS_S3_LOGS_REGION=us-west-2

# 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
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
POCKET_SESSION_BLOCK_FREQUENCY=4
POCKET_BLOCK_TIME=1038000
POCKET_RELAY_RETRIES=0

# AAT PLAN
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
3 changes: 2 additions & 1 deletion .github/workflows/production-ap-southeast-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Make envfile ap-southeast-1
uses: SpicyPizza/create-envfile@v1
with:
Expand All @@ -33,6 +33,7 @@ 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
Expand Down
5 changes: 3 additions & 2 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 ]
branches: [ master-off ]

jobs:
deploy:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Make envfile eu-west-1
uses: SpicyPizza/create-envfile@v1
with:
Expand All @@ -33,6 +33,7 @@ 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
Expand Down
5 changes: 3 additions & 2 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 ]
branches: [ master-off ]

jobs:
deploy:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Make envfile us-east-2
uses: SpicyPizza/create-envfile@v1
with:
Expand All @@ -33,6 +33,7 @@ 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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/production-us-west-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Make envfile us-west-2
uses: SpicyPizza/create-envfile@v1
with:
Expand All @@ -33,6 +33,8 @@ 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
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/staging-us-west-2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Staging Deployment us-west-2

on:
push:
branches: [ master-off ]

jobs:
deploy:
name: Gateway
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Make envfile us-west-2
uses: SpicyPizza/create-envfile@v1
with:
envkey_GATEWAY_CLIENT_PRIVATE_KEY: ${{ secrets.POCKET_NETWORK_PRODUCTION_CLIENT_PRIVATE_KEY }}
envkey_GATEWAY_CLIENT_PASSPHRASE: ${{ secrets.POCKET_NETWORK_PRODUCTION_CLIENT_PASSPHRASE }}
envkey_MONGO_ENDPOINT: ${{ secrets.MONGO_PRODUCTION_ENDPOINT }}
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_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_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
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
IMAGE_TAG: latest
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"

- name: Fill in the new image ID / us-west-2
id: task-def-us-west-2
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: pocket-gateway/ecs-task-staging-us-west-2.json
container-name: gateway
image: ${{ steps.build-image.outputs.image }}

- name: Deploy / us-west-2
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-us-west-2.outputs.task-definition }}
service: gateway-service
cluster: gateway-staging
wait-for-service-stability: true

10 changes: 3 additions & 7 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Testnet Deployment

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

jobs:
deploy:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Make envfile
uses: SpicyPizza/create-envfile@v1
with:
Expand All @@ -33,11 +33,7 @@ jobs:
envkey_DATABASE_ENCRYPTION_KEY: ${{ secrets.DATABASE_TESTNET_ENCRYPTION_KEY }}
envkey_PG_CONNECTION: ${{ secrets.PG_TESTNET_CONNECTION }}
envkey_PG_CERTIFICATE: ${{ secrets.PG_TESTNET_CERTIFICATE }}
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/testnet
envkey_AWS_S3_LOGS_REGION: us-west-2
envkey_LOGZ_TOKEN: ${{ secrets.LOGZ_TOKEN }}
envkey_DISPATCH_URL: https://node1.testnet.pokt.network,https://node2.testnet.pokt.network,https://node3.testnet.pokt.network
envkey_FALLBACK_URL: https://node1.testnet.pokt.network,https://node2.testnet.pokt.network,https://node3.testnet.pokt.network
envkey_REDIS_ENDPOINT: dashboard-testnet.js6zbp.ng.0001.usw2.cache.amazonaws.com
Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@

# Dependency directories (remove the comment below to include it)
# vendor/
node_modules
node_modules

*.swp
*/**/*.swp

dist
.env
.tasks.env
14 changes: 14 additions & 0 deletions .tasks.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
MONGO_SRC_USER=gateway-client
MONGO_SRC_PW=mtAYn45juelUwiJ5
MONGO_SRC_HOST=gateway.kxobp.mongodb.net
MONGO_SRC_DB=gateway

MONGO_DEST_USER=mongouser
MONGO_DEST_PW=mongopassword
MONGO_DEST_HOST=0.0.0.0:27017
MONGO_DEST_DB=gateway

MONGO_INITDB_ROOT_USERNAME=mongouser
MONGO_INITDB_ROOT_PASSWORD=mongopassword
MONGO_INITDB_DATABASE=gateway
MONGO_INITDB_HOST=0.0.0.0
1 change: 0 additions & 1 deletion dist/__tests__/acceptance/home-page.acceptance.d.ts

This file was deleted.

27 changes: 0 additions & 27 deletions dist/__tests__/acceptance/home-page.acceptance.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/__tests__/acceptance/home-page.acceptance.js.map

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions dist/__tests__/acceptance/ping.controller.acceptance.js

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions dist/__tests__/acceptance/test-helper.d.ts

This file was deleted.

22 changes: 0 additions & 22 deletions dist/__tests__/acceptance/test-helper.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/__tests__/acceptance/test-helper.js.map

This file was deleted.

Loading