move pokt config inside the container
This commit is contained in:
9
pokt/DockerFile
Normal file
9
pokt/DockerFile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM poktnetwork/pocket-core:RC-0.7.1
|
||||
|
||||
COPY config.json /home/app/.pocket/config/config.json
|
||||
COPY chains.json /home/app/.pocket/config/chains.json
|
||||
COPY bootstrap.sh /home/app/.pocket/bootstrap.sh
|
||||
|
||||
RUN chown 1005:1001 /home/app/.pocket/config/chains.json
|
||||
|
||||
CMD ["bash", "/home/app/.pocket/bootstrap.sh", "&&", "pocket", "start", "--seeds=${POCKET_MAIN_SEEDS}", "--mainnet"]
|
||||
10
pokt/bootstrap.sh
Executable file
10
pokt/bootstrap.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
|
||||
46
pokt/chains.json
Normal file
46
pokt/chains.json
Normal file
@@ -0,0 +1,46 @@
|
||||
[
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user