more pokt node fixes

This commit is contained in:
czarly
2022-03-16 12:57:37 +04:00
parent 623c458776
commit 2f48795651
5 changed files with 5 additions and 83 deletions

View File

@@ -1,9 +0,0 @@
#!/bin/sh
if [ ! -f /home/app/.pocket/setupdone ]
then
mkdir -p /home/app/.pocket/data
echo "wget -q -O - '$POCKET_SNAPSHOT' | tar -xv -C /home/app/.pocket/data/"
wget -q -O - $POCKET_SNAPSHOT | tar -xv -C /home/app/.pocket/data/
touch /home/app/.pocket/setupdone
fi

View File

@@ -1,46 +0,0 @@
[
{
"id": "0001",
"url": "https://${DOMAIN}/pokt"
},
{
"id": "0004",
"url": "https://${DOMAIN}/bsc"
},
{
"id": "0005",
"url": "https://${DOMAIN}/fuse"
},
{
"id": "0021",
"url": "https://${DOMAIN}/erigon"
},
{
"id": "0022",
"url": "https://${DOMAIN}/erigon"
},
{
"id": "0023",
"url": "https://${DOMAIN}/ropsten"
},
{
"id": "0025",
"url": "https://${DOMAIN}/rinkeby"
},
{
"id": "0026",
"url": "https://${DOMAIN}/goerli"
},
{
"id": "0027",
"url": "https://${DOMAIN}/xdai"
},
{
"id": "0028",
"url": "https://${DOMAIN}/erigon"
},
{
"id": "0040",
"url": "https://${DOMAIN}/harmony"
}
]

View File

@@ -1,18 +0,0 @@
[
{
"id": "0020",
"url": "https://${DOMAIN}/goerli"
},
{
"id": "0022",
"url": "https://${DOMAIN}/rinkeby"
},
{
"id": "0023",
"url": "https://${DOMAIN}/ropsten"
},
{
"id": "0002",
"url": "https://${DOMAIN}/pokttest"
}
]

View File

@@ -47,8 +47,8 @@ services:
- "prometheus-scrape.job_name=haproxy"
- "prometheus-scrape.metrics_path=/metrics"
pocket:
image: poktnetwork/pocket-core:stagenet-latest
pocket:
build: pokt
ports:
- "127.0.0.1:8081:8081"
- "26657:26656"
@@ -57,17 +57,12 @@ services:
- 26660
- 8081
- 8083
command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet
#command: pocket start --simulateRelay
environment:
- POCKET_CORE_KEY=$POCKET_CORE_KEY
- POCKET_CORE_PASSPHRASE=$POCKET_CORE_PASSPHRASE
- POCKET_SNAPSHOT=$POCKET_SNAPSHOT
volumes:
- ./bootstrap_skript/pokt_mainnet.sh:/home/app/.pocket/pokt_mainnet.sh
- ./chains/chains_mainnet.json:/home/app/.pocket/config/chains.json
- ./pokt/config.json:/home/app/.pocket/config/config.json
- pocket:/home/app/.pocket
- pocket:/home/app/.pocket/data
restart: unless-stopped
labels:
- "traefik.enable=true"

View File

@@ -1,10 +1,10 @@
#!/bin/sh
if [ ! -f /home/app/.pocket/setupdone ]
if [ ! -f /home/app/.pocket/data/setupdone ]
then
mkdir -p /home/app/.pocket/data
echo "wget -q -O - '$POCKET_SNAPSHOT' | tar -xv -C /home/app/.pocket/data/"
wget -q -O - $POCKET_SNAPSHOT | tar -xv -C /home/app/.pocket/data/
touch /home/app/.pocket/setupdone
touch /home/app/.pocket/data/setupdone
fi