diff --git a/docker-compose.yml b/docker-compose.yml index f033542..8f3e5fd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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" @@ -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 @@ -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" diff --git a/eth-netstats/Dockerfile b/eth-netstats/Dockerfile index 80ae015..9258b0e 100644 --- a/eth-netstats/Dockerfile +++ b/eth-netstats/Dockerfile @@ -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"] diff --git a/monitored-geth-client/Dockerfile b/monitored-geth-client/Dockerfile index d77cd78..6b4dccc 100644 --- a/monitored-geth-client/Dockerfile +++ b/monitored-geth-client/Dockerfile @@ -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