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

[INF-76] New Local Deployment Setup with docker-compose #2988

Merged
merged 81 commits into from
Jul 14, 2022
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
2cbd49b
Deploy contracts via docker
cheran-senthil Apr 28, 2022
a814506
Add identity
cheran-senthil May 5, 2022
543e5c7
Merge branch 'master' into vss-new-local-deploy
cheran-senthil May 9, 2022
167f2ca
Reduce solana-programs build size
cheran-senthil May 9, 2022
9cadb12
Fix user replica set migration for audius dev
cheran-senthil May 9, 2022
87e822f
Speedup identity build
cheran-senthil May 9, 2022
4c05fc8
Add docker-compose
cheran-senthil May 9, 2022
44cb721
Merge branch 'master' into vss-new-local-deploy
cheran-senthil May 10, 2022
25f97d0
Add blockscout for POA
cheran-senthil May 11, 2022
e227252
Create Dockerfile.dev for predeployed ganache
cheran-senthil May 11, 2022
c9ea09e
Similar predeployed ganache for eth contracts
cheran-senthil May 11, 2022
bd15f75
Use predeployed docker images
cheran-senthil May 11, 2022
d9363b9
Merge branch 'master' into vss-new-local-deploy
cheran-senthil May 11, 2022
d624320
Fix incorrect addresses
cheran-senthil May 11, 2022
d6e49e1
Add exec permissions
cheran-senthil May 11, 2022
32757e1
Remove unneeded patch fix
cheran-senthil May 11, 2022
ec842f0
Remove potential M1 support
cheran-senthil May 11, 2022
0d9589c
Pin blockscout version
cheran-senthil May 11, 2022
76283b6
Pin anchor-cli version
cheran-senthil May 11, 2022
5f9671d
Add service type and set their versions
cheran-senthil May 12, 2022
a4a9dc0
Update eth-contracts ABI in identity
cheran-senthil May 12, 2022
2bafd50
Merge branch 'master' into vss-new-local-deploy
cheran-senthil May 12, 2022
a5bb23a
Merge branch 'master' into vss-new-local-deploy
cheran-senthil May 17, 2022
d69e3c0
Change write target
cheran-senthil May 19, 2022
a7496a2
Use predeployed solana image
cheran-senthil May 20, 2022
6a07293
Merge branch 'master' into vss-new-local-deploy
cheran-senthil May 20, 2022
11a790b
Install ganache as dev dependency
cheran-senthil May 26, 2022
18301e3
Similar change for poa contracts
cheran-senthil May 26, 2022
e76048b
Merge branch 'master' into vss-new-local-deploy
cheran-senthil May 26, 2022
ae9c39e
Add exec permissions
cheran-senthil May 26, 2022
2347dcf
Support creator node and discovery provider
cheran-senthil May 31, 2022
76b696e
Merge branch 'master' into vss-new-local-deploy
cheran-senthil Jun 1, 2022
607dd77
Merge branch 'master' into vss-new-local-deploy
cheran-senthil Jun 1, 2022
d5977eb
Bug fixes and register creator-node
cheran-senthil Jun 6, 2022
24c7cd2
Reload on changes
cheran-senthil Jun 8, 2022
0bc8ce6
Add exec and logs
cheran-senthil Jun 10, 2022
bf57fa5
Change to python3
cheran-senthil Jun 10, 2022
9a0c08d
Bugfix
cheran-senthil Jun 10, 2022
156024c
Add setup and some fixes
cheran-senthil Jun 17, 2022
eb8da3a
Make libs similar to old setup
cheran-senthil Jun 17, 2022
fb5506c
Add exec permissions
cheran-senthil Jun 17, 2022
3cdecb2
Add requirements.txt
cheran-senthil Jun 17, 2022
b7a8b55
Merge branch 'master' into vss-new-local-deploy
cheran-senthil Jun 17, 2022
668a650
Collect into function
cheran-senthil Jun 17, 2022
b9d6954
Fix formatting from #3217 and #3218
cheran-senthil Jun 17, 2022
027c7b9
Fix linting
cheran-senthil Jun 17, 2022
fb73af3
Better formatting
cheran-senthil Jun 17, 2022
ce8d9eb
Some improvements
cheran-senthil Jun 17, 2022
2be9022
Bootstrap creator-node in URSM
cheran-senthil Jun 22, 2022
78c1e86
Update requirements.txt
cheran-senthil Jun 22, 2022
1db8ac1
Merge branch 'master' into vss-new-local-deploy
cheran-senthil Jun 27, 2022
d735571
Make solana compatible with service commands
cheran-senthil Jun 28, 2022
2741ef4
Move health check to individual Dockerfiles
cheran-senthil Jun 29, 2022
ac0b759
Mount idl in discovery-provider
cheran-senthil Jul 1, 2022
4cdfafc
Merge branch 'master' into vss-new-local-deploy
cheran-senthil Jul 1, 2022
d63ebad
Make compatible with Ubuntu 20.04 LTS
cheran-senthil Jul 1, 2022
b8f3a6c
Add proxy
cheran-senthil Jul 5, 2022
12227a4
Wrap in loop
cheran-senthil Jul 6, 2022
bcea737
Expose Port
cheran-senthil Jul 6, 2022
d67edff
Fix mount path
cheran-senthil Jul 6, 2022
b3b8ad0
Add ps command
cheran-senthil Jul 7, 2022
0277c42
Merge branch 'master' into vss-new-local-deploy
cheran-senthil Jul 7, 2022
03d470a
Merge branch 'master' into vss-new-local-deploy
cheran-senthil Jul 9, 2022
ba5f72f
Add dockerignore for libs
cheran-senthil Jul 9, 2022
e27fac4
Don't watch files in libs
cheran-senthil Jul 10, 2022
2f5c6f4
Add sleep
cheran-senthil Jul 11, 2022
0d273e2
Move sleep to after migrations
cheran-senthil Jul 11, 2022
1010880
Move log rotation to docker compose file
cheran-senthil Jul 12, 2022
861e7e0
Adjust postgres instead of sleep
cheran-senthil Jul 12, 2022
e91fcc1
Add quotes
cheran-senthil Jul 12, 2022
f7e5d2d
Some more fixes
cheran-senthil Jul 12, 2022
da4842c
Fix typo (#3427)
raymondjacobson Jul 12, 2022
d8c2d08
Add comments
cheran-senthil Jul 12, 2022
b4d79d0
Add exec permissions globally
cheran-senthil Jul 12, 2022
fd9fabe
Rename dev to dev-tools
cheran-senthil Jul 12, 2022
3d97361
Merge branch 'master' into vss-new-local-deploy
cheran-senthil Jul 12, 2022
b4228c1
Revert changes to build
cheran-senthil Jul 12, 2022
c5c9d26
Merge branch 'master' into vss-new-local-deploy
cheran-senthil Jul 12, 2022
5c23246
Merge branch 'master' into vss-new-local-deploy
cheran-senthil Jul 13, 2022
46781f0
Fix broken config
cheran-senthil Jul 14, 2022
0d729c7
Update resource class
cheran-senthil Jul 14, 2022
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
51 changes: 51 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
SOLANA_AUDIUS_ETH_REGISTRY_ADDRESS="testBgRfFcage1hN7zmTsktdQCJZkHEhM1eguYPaeKg"
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
SOLANA_AUDIUS_ETH_REGISTRY_PRIVATE_KEY="[101,86,77,135,233,39,51,215,156,12,36,94,208,90,230,39,132,30,37,38,132,47,79,246,211,81,246,90,245,118,229,49,13,59,115,1,178,85,153,85,33,242,96,166,199,254,28,144,18,65,115,45,130,206,43,92,150,70,200,111,135,90,42,215]"

SOLANA_TRACK_LISTEN_COUNT_ADDRESS="testEjzEibm3nq77VQcqCCmSMx6m3KdJHuepBH1rnue"
SOLANA_TRACK_LISTEN_COUNT_PRIVATE_KEY="[48,89,62,112,199,169,38,115,129,58,41,252,48,115,242,113,46,97,146,192,121,241,50,166,228,171,74,210,193,227,137,158,13,59,115,2,219,252,1,111,47,233,46,61,194,12,9,212,112,139,128,52,25,99,92,45,230,54,89,98,208,95,87,233]"

SOLANA_CLAIMABLE_TOKENS_ADDRESS="testHKV1B56fbvop4w6f2cTGEub9dRQ2Euta5VmqdX9"
SOLANA_CLAIMABLE_TOKENS_PRIVATE_KEY="[174,163,97,43,100,26,156,201,118,68,73,73,219,124,43,30,69,20,249,161,193,117,110,100,55,205,0,82,217,230,45,232,13,59,115,3,214,150,92,251,132,61,225,63,210,91,157,81,92,226,53,242,196,158,75,108,21,90,166,141,114,132,190,36]"

SOLANA_REWARD_MANAGER_ADDRESS="testLsJKtyABc9UXJF8JWFKf1YH4LmqCWBC42c6akPb"
SOLANA_REWARD_MANAGER_PRIVATE_KEY="[52,211,228,119,92,90,104,181,171,203,239,134,251,128,229,210,27,163,85,219,44,247,117,148,213,64,97,255,27,95,39,96,13,59,115,5,47,153,186,125,113,177,44,44,98,197,101,31,80,3,114,127,231,85,104,127,149,126,112,28,184,9,16,66]"

SOLANA_AUDIUS_DATA_ADDRESS="testRaQeeuPVd4RK4ae1sHE3xcAQyFuPHBFoVwXWc4k"
SOLANA_AUDIUS_DATA_PRIVATE_KEY="[200,29,4,193,187,27,4,74,16,122,9,217,178,45,180,76,115,51,21,12,211,92,74,137,180,248,221,154,186,176,83,81,13,59,115,6,249,107,27,1,176,108,141,191,107,204,229,221,156,54,95,168,83,190,171,144,170,31,60,50,130,102,78,237]"

SOLANA_OWNER_ADDRESS="HXLN9UWwAjMPgHaFZDfgabT79SmLSdTeu2fUha2xHz9W"
SOLANA_OWNER_PRIVATE_KEY="[120,220,192,105,245,35,124,13,254,253,182,43,175,33,71,17,227,226,13,172,96,87,70,230,1,99,243,161,189,140,237,121,245,128,79,138,67,76,13,141,165,54,99,180,219,255,218,187,234,222,168,135,227,110,191,12,10,110,142,63,186,31,114,193]"

SOLANA_FEEPAYER_PRIVATE_KEY="HunCgdP91aVeoh8J7cbKTcFRoUwwhHwqYqVVLVkkqQjg"
SOLANA_FEEPAYER_PRIVATE_KEY="[170,161,84,122,118,210,128,213,96,185,143,218,54,254,217,204,157,175,137,71,202,108,51,242,21,50,56,77,54,116,103,56,251,64,77,100,199,88,103,189,42,163,67,251,101,204,7,59,70,109,113,50,209,154,55,164,227,108,203,146,121,148,85,119]"

SOLANA_TOKEN_MINT_ADDRESS="37RCjhgV1qGV2Q54EHFScdxZ22ydRMdKMtVgod47fDP3"
SOLANA_TOKEN_MINT_PRIVATE_KEY="[254,167,254,170,103,214,123,172,139,27,169,15,230,0,227,31,212,40,243,59,145,245,213,175,86,95,131,134,140,127,6,1,31,92,57,113,162,201,197,83,184,204,253,179,184,101,112,30,1,247,151,131,87,122,170,131,244,143,89,247,13,26,194,222]"

SOLANA_SIGNER_GROUP_ADDRESS="HwecRT7whduwiLhJXiWmvrhcCh8zJhwJ4B9fXniPUDyz"
SOLANA_SIGNER_GROUP_PRIVATE_KEY="[128,25,23,138,46,106,21,244,61,209,81,77,91,226,106,38,183,114,178,135,63,109,103,51,204,146,91,62,171,204,69,93,251,186,225,142,191,182,180,85,125,68,175,55,133,226,247,20,183,42,176,17,242,204,194,39,30,31,161,89,12,165,29,17]"

SOLANA_VALID_SIGNER_ADDRESS="yM9adjwKaRbYxQzLPF6zvZMSAfKUNte5xvK4B3iGbkL"
SOLANA_VALID_SIGNER_PRIVATE_KEY="[69,187,93,158,55,23,154,100,152,117,25,7,11,223,74,250,29,30,164,191,111,85,5,31,236,125,162,60,23,250,53,27,14,111,78,128,60,211,186,48,242,141,165,225,176,59,94,164,36,74,18,222,126,184,187,253,227,151,236,245,213,142,113,193]"

SOLANA_VALID_SIGNER_ETH_ADDRESS=0xc7dE2857e17dc213C42eEd938A685b8FeF958088
SOLANA_VALID_SIGNER_ETH_PRIVATE_KEY=d242765e718801781440d77572b9dafcdc9baadf0269eff24cf61510ddbf1003

SOLANA_ADMIN_ACCOUNT_ADDRESS="2Vb2BiY8d3qYkHhnMdmJQqBXv6NUtSik1Bw2nRYeP46w"
SOLANA_ADMIN_ACCOUNT_PRIVATE_KEY="[97,15,137,24,215,66,208,141,203,187,54,37,101,191,4,27,146,204,30,7,197,77,191,192,220,26,101,108,46,83,165,107,22,46,106,166,72,230,63,24,208,16,60,213,201,152,225,2,117,75,197,196,219,249,119,140,156,36,229,76,190,199,141,100]"

SOLANA_ADMIN_AUTHORITY_ADDRESS="C8c4bF1Nqi3wnwgQuXBp3SHWKadQU3XZuLCFarsJD1tz"
SOLANA_ADMIN_AUTHORITY_PRIVATE_KEY="[146,42,8,15,234,32,5,211,190,133,232,16,117,156,242,25,142,230,77,132,163,122,147,46,222,186,61,236,111,255,108,204,165,99,68,55,154,140,56,254,135,165,2,84,46,0,172,47,209,54,51,187,32,178,56,102,60,168,175,237,192,160,33,183]"

SOLANA_REWARD_MANAGER_PDA_ADDRESS="DJPzVothq58SmkpRb1ATn5ddN2Rpv1j2TcGvM3XsHf1c"
SOLANA_REWARD_MANAGER_PDA_PRIVATE_KEY="[57,102,27,144,135,94,231,1,14,93,26,25,177,163,190,173,116,167,68,223,17,132,92,146,246,25,199,82,13,42,221,38,182,193,28,253,102,169,6,208,160,135,219,13,183,183,115,130,16,205,49,82,187,88,76,117,96,175,210,205,23,16,17,91]"

SOLANA_REWARD_MANAGER_TOKEN_PDA_ADDRESS="FRk4j95RG2kSk3BHXBPVgKszFc2rLQ8K6RS83k3dmzvQ"
SOLANA_REWARD_MANAGER_TOKEN_PDA_PRIVATE_KEY="[29,42,146,141,80,220,121,40,43,41,152,148,139,87,168,150,50,7,58,231,39,224,61,9,40,164,112,47,30,202,235,54,214,90,63,209,123,132,150,33,211,200,77,205,209,12,87,50,207,69,81,252,136,46,74,174,243,74,96,180,247,20,180,61]"

POA_REGISTRY_ADDRESS=0xCfEB869F69431e42cdB54A4F4f105C19C080A601
POA_OWNER_WALLET=0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1

ETH_TOKEN_ADDRESS=0x1Abb2695B52618297352F1718408f962768D56E8
ETH_REGISTRY_ADDRESS=0xDFE87C1f0DdF017Cd0609a99b74ed3707770dD93
ETH_OWNER_WALLET=0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1
10 changes: 9 additions & 1 deletion contracts/contract-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ module.exports = {
userReplicaSetBootstrapAddress: null,
registryAddress: null
},
audius_dev: {
verifierAddress: '0xbbbb93A6B3A1D6fDd27909729b95CCB0cc9002C0',
blacklisterAddress: null,
bootstrapSPIds: [],
bootstrapSPDelegateWallets: [],
bootstrapSPOwnerWallets: [],
userReplicaSetBootstrapAddress: null
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
},
test_local: {
verifierAddress: null,
blacklisterAddress: null,
Expand Down Expand Up @@ -101,4 +109,4 @@ module.exports = {
userReplicaSetBootstrapAddress: '0x3d2563ACCD9E6D189bA2a61F116905D520054286',
registryAddress: '0x793373aBF96583d5eb71a15d86fFE732CD04D452'
}
}
}
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 2 additions & 2 deletions contracts/migrations/4_user_replica_set_migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = (deployer, network, accounts) => {
const config = contractConfig[network]
let registry
let registryAddress
if (network === 'test_local' || network === 'development') {
if (network === 'test_local' || network === 'development' || network === 'audius_dev') {
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
if (!config.registryAddress) {
registry = await Registry.deployed()
registryAddress = registry.address
Expand Down Expand Up @@ -48,7 +48,7 @@ module.exports = (deployer, network, accounts) => {
const bootstrapSPOwnerWallets = config.bootstrapSPOwnerWallets
const invalidBootstrapConfiguration = (bootstrapSPIds.length === 0 || bootstrapNodeDelegateWallets.length === 0 || bootstrapSPOwnerWallets.length === 0)
if (
(network !== 'test_local' && network !== 'development') &&
(network !== 'test_local' && network !== 'development' && network !== 'audius_dev') &&
(invalidBootstrapConfiguration)
) {
throw new Error(
Expand Down
5 changes: 5 additions & 0 deletions contracts/truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ module.exports = {
port: 8545,
network_id: '*' // Match any network id
},
audius_dev: {
host: 'poa-ganache',
port: 8545,
network_id: '*' // Match any network id
},
test_local: {
host: '127.0.0.1',
port: 8555,
Expand Down
211 changes: 211 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
version: "3.9"

services:
# contracts

poa-ganache:
image: trufflesuite/ganache:v7.1.0
command: --wallet.deterministic --wallet.totalAccounts 50
ports:
- "8546:8545"
healthcheck:
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
test: ["CMD", "node", "-e", "require('http').request('http://localhost:8545').end()"]
interval: 5s
timeout: 5s
deploy:
mode: global

poa-deploy-contracts:
build: contracts
command: npx truffle migrate --to 4 --network audius_dev
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
depends_on:
poa-ganache:
condition: service_healthy

# eth-contracts

eth-ganache:
image: trufflesuite/ganache:v7.1.0
command: --wallet.deterministic --wallet.totalAccounts 50 --miner.blockTime 1
ports:
- "8545:8545"
healthcheck:
test: ["CMD", "node", "-e", "require('http').request('http://localhost:8545').end()"]
interval: 5s
timeout: 5s
deploy:
mode: global

eth-blockscout-db:
image: postgres:13.6
environment:
POSTGRES_PASSWORD: 'postgres'
POSTGRES_USER: 'postgres'
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
deploy:
mode: global

eth-blockscout:
image: blockscout/blockscout:latest
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
command: 'mix do ecto.create, ecto.migrate, phx.server'
environment:
ETHEREUM_JSONRPC_VARIANT: 'ganache'
ETHEREUM_JSONRPC_HTTP_URL: 'http://eth-ganache:8545'
ETHEREUM_JSONRPC_WS_URL: 'ws://eth-ganache:8545'
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: 'true'
DATABASE_URL: 'postgresql://postgres:postgres@eth-blockscout-db:5432/postgres?ssl=false'
ECTO_USE_SSL: false
ports:
- "9545:4000"
depends_on:
eth-blockscout-db:
condition: service_healthy
eth-ganache:
condition: service_healthy

eth-deploy-contracts:
build: eth-contracts
command: npx truffle migrate --to 12 --network audius_dev
depends_on:
eth-ganache:
condition: service_healthy

# solana-programs

solana-test-validator:
image: solanalabs/solana:v1.10.11
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
entrypoint: solana-test-validator
command: --quiet --gossip-host solana-test-validator
ports:
- "8899:8899"
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
- "8900:8900"
- "8901:8901"
- "8902:8902"
healthcheck:
# NOTE: The address used below does not matter
test: ["CMD", "solana", "--url", "localhost", "balance", "CMRCuQcnbzHzQfDRZfkfAXM9TKce1X6LjHhSLqQc68WU"]
interval: 5s
timeout: 5s
deploy:
mode: global

solana-deploy-programs:
build:
context: solana-programs
args:
AUDIUS_ETH_REGISTRY_PRIVATE_KEY: "${SOLANA_AUDIUS_ETH_REGISTRY_PRIVATE_KEY}"
TRACK_LISTEN_COUNT_PRIVATE_KEY: "${SOLANA_TRACK_LISTEN_COUNT_PRIVATE_KEY}"
CLAIMABLE_TOKENS_PRIVATE_KEY: "${SOLANA_CLAIMABLE_TOKENS_PRIVATE_KEY}"
REWARD_MANAGER_PRIVATE_KEY: "${SOLANA_REWARD_MANAGER_PRIVATE_KEY}"
AUDIUS_DATA_PRIVATE_KEY: "${SOLANA_AUDIUS_DATA_PRIVATE_KEY}"
environment:
SOLANA_HOST: "http://solana-test-validator:8899"
owner_private_key: "${SOLANA_OWNER_PRIVATE_KEY}"
feepayer_private_key: "${SOLANA_FEEPAYER_PRIVATE_KEY}"
token_private_key: "${SOLANA_TOKEN_MINT_PRIVATE_KEY}"
admin_authority_private_key: "${SOLANA_ADMIN_AUTHORITY_PRIVATE_KEY}"
admin_account_private_key: "${SOLANA_ADMIN_ACCOUNT_PRIVATE_KEY}"
signer_group_private_key: "${SOLANA_SIGNER_GROUP_PRIVATE_KEY}"
valid_signer_private_key: "${SOLANA_VALID_SIGNER_PRIVATE_KEY}"
reward_manager_pda_private_key: "${SOLANA_REWARD_MANAGER_PDA_PRIVATE_KEY}"
reward_manager_token_pda_private_key: "${SOLANA_REWARD_MANAGER_TOKEN_PDA_PRIVATE_KEY}"
valid_signer_eth_address: "${SOLANA_VALID_SIGNER_ETH_ADDRESS}"
depends_on:
solana-test-validator:
condition: service_healthy

# identity-service

identity-service-db:
image: postgres:11.4
user: postgres
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
deploy:
mode: global

identity-service-redis:
image: redis:5.0.5
healthcheck:
test: ["CMD", "redis-cli", "PING"]
interval: 10s
timeout: 5s
deploy:
mode: global

identity-service:
build: identity-service
command: scripts/dev-server.sh
ports:
- "7000:7000"
- "9229:9229"
environment:
logLevel: debug
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
minimumBalance: 1
minimumRelayerBalance: 1
minimumFunderBalance: 1

blacklisterPrivateKey: "87e08695a0c368b9fcbf7420183d266514a1b70791fd0b4254b3cbb8373803c7"
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
blacklisterPublicKey: "0xcccc36bE44D106C6aC14199A2Ed6a29fDa25d5Ae"
relayerPrivateKey: "34efbbc0431c7f481cdba15d65bbc9ef47196b9cf38d5c4b30afa2bcf86fafba"
relayerPublicKey: "0xaaaa90Fc2bfa70028D6b444BB9754066d9E2703b"
relayerWallets: '[{"publicKey": "0xaaaa90Fc2bfa70028D6b444BB9754066d9E2703b", "privateKey": "34efbbc0431c7f481cdba15d65bbc9ef47196b9cf38d5c4b30afa2bcf86fafba"}, {"publicKey": "0xBE718F98a5B5a473186eB6E30888F26E72be0b66", "privateKey": "d3426cd10c4e75207bdc4802c551d21faa89a287546c2c6b3d9a0476f34934d2"}]'
ethFunderAddress: "0xaaaa90Fc2bfa70028D6b444BB9754066d9E2703b"
userVerifierPrivateKey: "ebba299e6163ff3208de4e82ce7db09cf7e434847b5bdab723af96ae7c763a0e"
userVerifierPublicKey: "0xbbbb93A6B3A1D6fDd27909729b95CCB0cc9002C0'"
ethRelayerWallets: '[{"publicKey": "0xaaaa90Fc2bfa70028D6b444BB9754066d9E2703b", "privateKey": "34efbbc0431c7f481cdba15d65bbc9ef47196b9cf38d5c4b30afa2bcf86fafba"}, {"publicKey": "0xBE718F98a5B5a473186eB6E30888F26E72be0b66", "privateKey": "d3426cd10c4e75207bdc4802c551d21faa89a287546c2c6b3d9a0476f34934d2"}, {"publicKey": "0xE75dEe171b6472cE30358ede946CcDFfCA70b562", "privateKey": "8a7c63d4aea87647f480e4771ea279f90f8e912fcfe907525bc931f531e564ce"}, {"publicKey": "0x58908c329D3be43261a3768aA2BBF413b36C935C", "privateKey": "712f210f132d2983e1e2d233f38b80aa12b9d5638ef4eeb78792c61622baf3d5"}, {"publicKey": "0xA0614b332312C5d81BE5b1877169E09041e5769F", "privateKey": "fc0ebb16ccb2fc42afb80336a358f17732cb9a47a96d0af1f474798726f92141"}]'

dbUrl: "postgres://postgres:postgres@identity-service-db:5432/postgres"

redisHost: "identity-service-redis"
redisPort: 6379

web3Provider: "http://poa-ganache:8545"
secondaryWeb3Provider: "http://poa-ganache:8545"
registryAddress: "${POA_REGISTRY_ADDRESS}"
ownerWallet: "${POA_OWNER_WALLET}"

ethProviderUrl: "http://eth-ganache:8545"
ethTokenAddress: "${ETH_TOKEN_ADDRESS}"
ethRegistryAddress: "${ETH_REGISTRY_ADDRESS}"
ethOwnerWallet: "${ETH_OWNER_WALLET}"

solanaEndpoint: "http://solana-test-validator:8899"
solanaTrackListenCountAddress: "${SOLANA_TRACK_LISTEN_COUNT_ADDRESS}"
solanaAudiusEthRegistryAddress: "${SOLANA_AUDIUS_ETH_REGISTRY_ADDRESS}"
solanaValidSigner: "${SOLANA_VALID_SIGNER_ADDRESS}"
solanaFeePayerWallets: "[{\"privateKey\":${SOLANA_FEEPAYER_PRIVATE_KEY}}]"
solanaSignerPrivateKey: "${SOLANA_VALID_SIGNER_ETH_PRIVATE_KEY}"
solanaMintAddress: "${SOLANA_TOKEN_MINT_ADDRESS}"
solanaClaimableTokenProgramAddress: "${SOLANA_CLAIMABLE_TOKENS_ADDRESS}"
solanaRewardsManagerAddress: "${SOLANA_REWARD_MANAGER_ADDRESS}"
solanaRewardsManagerProgramPDA: "${SOLANA_REWARD_MANAGER_PDA_ADDRESS}"
solanaRewardsManagerTokenPDA: "${SOLANA_REWARD_MANAGER_TOKEN_PDA_ADDRESS}"
solanaAudiusAnchorDataProgramId: "${SOLANA_AUDIUS_DATA_ADDRESS}"
volumes:
- ./libs:/usr/src/audius-libs
- ./solana-programs:/usr/src/solana-programs
depends_on:
identity-service-db:
condition: service_healthy
identity-service-redis:
condition: service_healthy
poa-ganache:
condition: service_healthy
poa-deploy-contracts:
condition: service_completed_successfully
eth-ganache:
condition: service_healthy
eth-deploy-contracts:
condition: service_completed_successfully
solana-test-validator:
condition: service_healthy
solana-deploy-programs:
condition: service_completed_successfully
deploy:
mode: global
11 changes: 11 additions & 0 deletions eth-contracts/contract-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ module.exports = {
initialNotifierEndpoint: null,
initialNotifierEmail: null
},
'audius_dev': {
proxyDeployerAddress: null,
proxyAdminAddress: null,
guardianAddress: null,
wormholeAddress: null,
antiAbuseOracleAddresses: null,
solanaRecipientAddress: null,
initialNotifierWallet: null,
initialNotifierEndpoint: null,
initialNotifierEmail: null
},
'test_local': {
proxyDeployerAddress: null,
proxyAdminAddress: null,
Expand Down
5 changes: 5 additions & 0 deletions eth-contracts/truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ module.exports = {
// recommended as a ganache performance improvement https://github.com/trufflesuite/truffle/issues/3522
,disableConfirmationListener: true
},
audius_dev: {
host: 'eth-ganache',
port: 8545,
network_id: '*',
},
test_local: {
host: '127.0.0.1'
,port: 8556
Expand Down
17 changes: 6 additions & 11 deletions identity-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ FROM node:14.16-alpine

WORKDIR /usr/src/app

# Handle unreachable Alpine repo, revert this eventually:
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
# https://github.com/gliderlabs/docker-alpine/issues/155
RUN sed -i -e 's/dl-cdn/dl-4/' /etc/apk/repositories

RUN apk update && apk add rsyslog python3 python3-dev py3-pip curl

cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
COPY --from=builder /app/node_modules ./node_modules
COPY . .

Expand All @@ -17,17 +23,6 @@ COPY . .
COPY scripts/wait /usr/bin/wait
RUN chmod +x /usr/bin/wait

# Handle unreachable Alpine repo, revert this eventually:
# https://github.com/gliderlabs/docker-alpine/issues/155
RUN sed -i -e 's/dl-cdn/dl-4/' /etc/apk/repositories

RUN apk update && \
apk add rsyslog && \
apk add python3 && \
apk add python3-dev && \
apk add py3-pip && \
apk add curl

EXPOSE 7000

ARG git_sha
Expand Down
13 changes: 13 additions & 0 deletions solana-programs/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
*target
package-lock.json
.vscode
.DS_Store
.python-version
test-ledger
solana-program-config.json
feepayer.json
dist
.dockerignore
.gitignore
README.md
Dockerfile
1 change: 0 additions & 1 deletion solana-programs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*target
package-lock.json
Cargo.lock
.vscode
.DS_Store
.python-version
Expand Down
Loading