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

Mount point fix using /etc/localtime file creation and pointing to it #45

Closed
wants to merge 3 commits into from
Closed
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
9 changes: 6 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ services:
- ./files/password:/root/files/password:ro
- ./files/genesis.json:/root/files/genesis.json:ro
- ./files/keystore:/root/.ethereum/devchain/keystore:rw
- /etc/localtime:/etc/localtime:ro
- ~/etc/timezone:/etc/localtime:ro
# - /etc/localtime:/etc/localtime:ro
ports:
- "30303:30303"
- "30303:30303/udp"
Expand All @@ -29,7 +30,8 @@ services:
- ./files/password:/root/files/password:ro
- ./files/genesis.json:/root/files/genesis.json:ro
- ./files/keystore:/root/.ethereum/devchain/keystore:rw
- /etc/localtime:/etc/localtime:ro
- ~/etc/timezone:/etc/localtime:ro
# - /etc/localtime:/etc/localtime:ro
command: '--datadir=~/.ethereum/devchain --rpccorsdomain="*" --networkid=456719 --rpc --bootnodes="enode://288b97262895b1c7ec61cf314c2e2004407d0a5dc77566877aad1f2a36659c8b698f4b56fd06c4a0c0bf007b4cfb3e7122d907da3b005fa90e724441902eb19e@XXX:30303"'
netstats:
build: eth-netstats
Expand All @@ -38,6 +40,7 @@ services:
environment:
- WS_SECRET=eth-net-stats-secret
volumes:
- /etc/localtime:/etc/localtime:ro
- ~/etc/timezone:/etc/localtime:ro
# - /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
2 changes: 1 addition & 1 deletion eth-netstats/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKDIR /eth-netstats
RUN npm install
RUN npm install -g grunt-cli
RUN grunt

RUN sudo mkdir -p ~/etc && touch ~/etc/localtime | /usr/sbin/systemsetup -gettimezone | sed 's/^Time Zone\: //' > ~/etc/localtime
EXPOSE 3000

CMD ["npm", "start"]
1 change: 1 addition & 0 deletions monitored-geth-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ ADD start.sh /root/start.sh
ADD app.json /root/eth-net-intelligence-api/app.json
RUN chmod +x /root/start.sh

RUN sudo mkdir -p ~/etc && touch ~/etc/localtime | /usr/sbin/systemsetup -gettimezone | sed 's/^Time Zone\: //' > ~/etc/localtime
ENTRYPOINT /root/start.sh