From ebceca849cf34874a40a0ebe9a23eefd52752ddb Mon Sep 17 00:00:00 2001 From: Chaitanya Prakash Bapat Date: Thu, 14 Jun 2018 17:38:42 -0400 Subject: [PATCH 1/3] Fixes #44 Fixes the issue of Mount denied - Path /etc/localtime is not shared from OS X and is not known to Docker. One needs to create file /etc/timezone and add `America/New_york` --- docker-compose.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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" From 61fe9cf06891e9e30ab84f6d38e5d097fe9d9331 Mon Sep 17 00:00:00 2001 From: Chaitanya Prakash Bapat Date: Fri, 6 Jul 2018 12:04:32 -0400 Subject: [PATCH 2/3] Automate /etc/localtime fix Added command to automate process of creating /etc/localtime file and adding the Time Zone information --- monitored-geth-client/Dockerfile | 1 + 1 file changed, 1 insertion(+) 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 From e97d826b1028d0fb59c140274f7f5fe8093ec761 Mon Sep 17 00:00:00 2001 From: Chaitanya Prakash Bapat Date: Fri, 6 Jul 2018 12:05:14 -0400 Subject: [PATCH 3/3] Automate /etc/localtime fix Added command to automate process of creating /etc/localtime file and adding the Time Zone information --- eth-netstats/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]