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

Fix failures in docker-compose.yml that prevented containers to run #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
links:
- netstats
entrypoint: /root/start.sh
command: '--datadir=~/.ethereum/devchain --nodekeyhex=091bd6067cb4612df85d9c1ff85cc47f259ced4d4cd99816b14f35650f59c322 --rpcapi "db,personal,eth,net,web3" --rpccorsdomain="*" --networkid=456719 --rpc --rpcaddr="0.0.0.0"'
# command: '--datadir=~/.ethereum/devchain --nodekeyhex=091bd6067cb4612df85d9c1ff85cc47f259ced4d4cd99816b14f35650f59c322 --http.api "personal,eth,net,web3" --http.corsdomain="*" --networkid=456719 --http --http.addr="0.0.0.0"'
volumes:
- ./files/password:/root/files/password:ro
- ./files/genesis.json:/root/files/genesis.json:ro
Expand All @@ -30,7 +30,7 @@ services:
- ./files/genesis.json:/root/files/genesis.json:ro
- ./files/keystore:/root/.ethereum/devchain/keystore:rw
- /etc/localtime:/etc/localtime:ro
command: '--datadir=~/.ethereum/devchain --rpccorsdomain="*" --networkid=456719 --rpc --bootnodes="enode://288b97262895b1c7ec61cf314c2e2004407d0a5dc77566877aad1f2a36659c8b698f4b56fd06c4a0c0bf007b4cfb3e7122d907da3b005fa90e724441902eb19e@XXX:30303"'
command: '--datadir=~/.ethereum/devchain --http.corsdomain="*" --networkid=456719 --http --bootnodes="enode://288b97262895b1c7ec61cf314c2e2004407d0a5dc77566877aad1f2a36659c8b698f4b56fd06c4a0c0bf007b4cfb3e7122d907da3b005fa90e724441902eb19e@XXX:30303"'
netstats:
build: eth-netstats
restart: on-failure
Expand Down
1 change: 1 addition & 0 deletions files/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"config": {
"chainId": 456719,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0
},
Expand Down
2 changes: 1 addition & 1 deletion monitored-geth-client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ethereum/client-go

RUN apk add --update git bash nodejs nodejs-npm perl
RUN apk add --update git bash nodejs npm perl

RUN cd /root &&\
git clone https://github.com/cubedro/eth-net-intelligence-api &&\
Expand Down
2 changes: 1 addition & 1 deletion monitored-geth-client/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e
cd /root/eth-net-intelligence-api
perl -pi -e "s/XXX/$(hostname)/g" app.json
/usr/bin/pm2 start ./app.json
/usr/local/bin/pm2 start ./app.json
sleep 3
geth --datadir=~/.ethereum/devchain init "/root/files/genesis.json"
sleep 3
Expand Down