-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add feefeed docker to elixir-omg setup (#1700)
* add feefeed adapter * change ip * add feefeed url * fix test barebone release * fix port * remove override variable from barebone config * chore: use https instead of gits to avoid permission issue * test: update to cabbage using fee api * fix: git submodule without --remote flag So it would not always pull the head branch from remote. * fix: update cabbage to fix reorg * fix: circle ci mis-comment * chore: add healthcheck and depends on for services and mock off other tests aside from reorg * chore: sync with cabbage update * chore: add space before network * chore: ignore geth folder * debug: comment out make docker steps * chore: update priv/perf for debug docker-compose pull * debug: use feefeed-dev with more logging * debug: use newer feefeed docker that fixes a bug * chore: update cabbage commit * chore: uncomment the commented CI jobs * chore: update latest cabbage * style: docker file space * fix: all docker images command have dockerhub authenticate * chore: update cabbage for code review * fix: circle ci login to dockerhub and update cabbage commit * fix: fee for perf tests - set in the test config to use the new fee amount 75 - for LoadTest.Common, pass in the fee_amount and use the value from config * chore: back to feefeed:latest image * style: mix format * refactor: move docker_login out from make_docker_images Logic-wise it does not make much sense actually to be together. * chore: update cabbage to latest * style: fix lint * chore: update cabbage commit * chore: use master from cabbage * chore: bring back submodule udpate --remote This is just better. change the branch in submodele file instead for testing. Co-authored-by: jarindr <[email protected]>
- Loading branch information
Showing
16 changed files
with
146 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "priv/cabbage"] | ||
path = priv/cabbage | ||
url = git@github.com:omgnetwork/specs.git | ||
branch = master | ||
url = https://github.com/omgnetwork/specs.git | ||
branch = master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ services: | |
retries: 5 | ||
networks: | ||
chain_net: | ||
ipv4_address: 172.27.0.106 | ||
ipv4_address: 172.27.0.100 | ||
|
||
geth: | ||
image: ethereum/client-go:v1.9.12 | ||
|
@@ -99,7 +99,8 @@ services: | |
- ETHEREUM_EVENTS_CHECK_INTERVAL_MS=800 | ||
- ETHEREUM_STALLED_SYNC_THRESHOLD_MS=20000 | ||
- FEE_CLAIMER_ADDRESS=0x3b9f4c1dd26e0be593373b1d36cee2008cbeb837 | ||
- FEE_ADAPTER=file | ||
- FEE_ADAPTER=feed | ||
- FEE_FEED_URL=http://172.27.0.107:4000/api/v1 | ||
- STORED_FEE_UPDATE_INTERVAL_MINUTES=1 | ||
- FEE_CHANGE_TOLERANCE_PERCENT=1 | ||
- FEE_SPECS_FILE_PATH=/dev-artifacts/fee_specs.dev.json | ||
|
@@ -124,6 +125,8 @@ services: | |
depends_on: | ||
nginx: | ||
condition: service_healthy | ||
feefeed: | ||
condition: service_healthy | ||
networks: | ||
chain_net: | ||
ipv4_address: 172.27.0.103 | ||
|
@@ -181,7 +184,7 @@ services: | |
- ETHEREUM_NETWORK=LOCALCHAIN | ||
- ETHEREUM_RPC_URL=http://172.27.0.102:80 | ||
- CHILD_CHAIN_URL=http://172.27.0.103:9656 | ||
- DATABASE_URL=postgresql://omisego_dev:[email protected].106:5432/omisego_dev | ||
- DATABASE_URL=postgresql://omisego_dev:[email protected].100:5432/omisego_dev | ||
- PORT=7534 | ||
- APP_ENV=local_docker_development | ||
- DD_HOSTNAME=datadog | ||
|
@@ -216,6 +219,61 @@ services: | |
chain_net: | ||
ipv4_address: 172.27.0.105 | ||
|
||
postgres_feefeed: | ||
image: postgres:12.2-alpine | ||
ports: | ||
- "5433:5432" | ||
restart: always | ||
healthcheck: | ||
test: pg_isready -U feefeed | ||
interval: 5s | ||
timeout: 3s | ||
retries: 5 | ||
environment: | ||
POSTGRES_USER: feefeed | ||
POSTGRES_PASSWORD: feefeed | ||
POSTGRES_DB: feefeed | ||
networks: | ||
chain_net: | ||
ipv4_address: 172.27.0.106 | ||
|
||
feefeed: | ||
image: "omisego/feefeed:latest" | ||
command: "start" | ||
container_name: feefeed | ||
environment: | ||
- GITHUB_TOKEN="" | ||
- GITHUB_ORGANISATION=omgnetwork | ||
- GITHUB_REPO=fee-rules-public | ||
- GITHUB_BRANCH=master | ||
- RULES_FETCH_INTERVAL=20 | ||
- RATES_FETCH_INTERVAL=20 | ||
- GITHUB_FILENAME=fee_rules | ||
- DATABASE_URL=postgresql://feefeed:[email protected]:5432/feefeed | ||
- SECRET_KEY_BASE="Y8naENMR8b+vbPHILjwNtEfWFrnbGi2k+UYWm75VnKHfsavmyGLtTmmeJxAGK+zJ" | ||
- DATADOG_DISABLED=true | ||
- DATADOG_HOST="localhost" | ||
- ETHEREUM_NODE_URL=http://172.27.0.102:80 | ||
ports: | ||
- "4000:4000" | ||
expose: | ||
- "4000" | ||
depends_on: | ||
postgres_feefeed: | ||
condition: service_healthy | ||
nginx: | ||
condition: service_healthy | ||
restart: always | ||
healthcheck: | ||
test: curl localhost:4000 | ||
interval: 30s | ||
timeout: 1s | ||
retries: 5 | ||
start_period: 30s | ||
networks: | ||
chain_net: | ||
ipv4_address: 172.27.0.107 | ||
|
||
networks: | ||
chain_net: | ||
driver: bridge | ||
|
Submodule cabbage
updated
11 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.