From aa92bf82770c11c4c2e0e4a7dda64cffda297b53 Mon Sep 17 00:00:00 2001 From: Evgeny Kolyakov Date: Sat, 29 Jan 2022 11:06:00 +0200 Subject: [PATCH 1/6] mainnet fix --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 868200d..856eba6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,10 +10,10 @@ ARG VERSION RUN curl --silent "https://api.github.com/repos/binance-chain/bsc/releases/tags/v${VERSION}" | jq -c '.assets[] | select( .browser_download_url | contains("mainnet.zip") or contains("geth_linux")) | .browser_download_url' | xargs -n1 curl -LOJ && \ unzip mainnet.zip -d / && \ - sed -i 's/^HTTPHost.*/HTTPHost = "0.0.0.0"/' /config.toml && \ - sed -i '/^WSPort.*/a WSHost = "0.0.0.0"' /config.toml && \ - sed -i 's/^HTTPVirtualHosts.*/HTTPVirtualHosts = ["*"]/' /config.toml && \ - sed -i '/Node\.LogConfig/,/^$/d' /config.toml && \ + sed -i 's/^HTTPHost.*/HTTPHost = "0.0.0.0"/' /mainnet/config.toml && \ + sed -i '/^WSPort.*/a WSHost = "0.0.0.0"' /mainnet/config.toml && \ + sed -i 's/^HTTPVirtualHosts.*/HTTPVirtualHosts = ["*"]/' /mainnet/config.toml && \ + sed -i '/Node\.LogConfig/,/^$/d' /mainnet/config.toml && \ mv geth_linux /usr/local/bin/bsc && \ chmod +x /usr/local/bin/bsc From 46f289f2cd3bda4ed483dfd27ea86f0026489b04 Mon Sep 17 00:00:00 2001 From: Evgeny Kolyakov Date: Thu, 24 Feb 2022 17:44:53 +0200 Subject: [PATCH 2/6] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 856eba6..c227642 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get update -y \ ARG VERSION -RUN curl --silent "https://api.github.com/repos/binance-chain/bsc/releases/tags/v${VERSION}" | jq -c '.assets[] | select( .browser_download_url | contains("mainnet.zip") or contains("geth_linux")) | .browser_download_url' | xargs -n1 curl -LOJ && \ +RUN curl -LOJ "https://github.com/bnb-chain/bsc/releases/download/v${VERSION}/mainnet.zip" && \ unzip mainnet.zip -d / && \ sed -i 's/^HTTPHost.*/HTTPHost = "0.0.0.0"/' /mainnet/config.toml && \ sed -i '/^WSPort.*/a WSHost = "0.0.0.0"' /mainnet/config.toml && \ From ff36bc802cab39fbf4bdfe52de7d05b525f3bdcf Mon Sep 17 00:00:00 2001 From: Evgeny Kolyakov Date: Thu, 24 Feb 2022 17:47:23 +0200 Subject: [PATCH 3/6] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index c227642..9201cfc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ RUN apt-get update -y \ ARG VERSION RUN curl -LOJ "https://github.com/bnb-chain/bsc/releases/download/v${VERSION}/mainnet.zip" && \ + curl -LOJ "https://github.com/bnb-chain/bsc/releases/download/v${VERSION}/geth_linux" && \ unzip mainnet.zip -d / && \ sed -i 's/^HTTPHost.*/HTTPHost = "0.0.0.0"/' /mainnet/config.toml && \ sed -i '/^WSPort.*/a WSHost = "0.0.0.0"' /mainnet/config.toml && \ From db08008dd70541ba81c57d0f40888c2a7b665ac4 Mon Sep 17 00:00:00 2001 From: Evgeny Kolyakov Date: Fri, 25 Feb 2022 09:49:00 +0200 Subject: [PATCH 4/6] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 9201cfc..c9455ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,7 @@ ARG VERSION RUN curl -LOJ "https://github.com/bnb-chain/bsc/releases/download/v${VERSION}/mainnet.zip" && \ curl -LOJ "https://github.com/bnb-chain/bsc/releases/download/v${VERSION}/geth_linux" && \ unzip mainnet.zip -d / && \ + mv /mainnet/* /. && rm -rf /mainnet && \ sed -i 's/^HTTPHost.*/HTTPHost = "0.0.0.0"/' /mainnet/config.toml && \ sed -i '/^WSPort.*/a WSHost = "0.0.0.0"' /mainnet/config.toml && \ sed -i 's/^HTTPVirtualHosts.*/HTTPVirtualHosts = ["*"]/' /mainnet/config.toml && \ From 2c6d517e2528635fc3803394ab7b8ca9b0f34457 Mon Sep 17 00:00:00 2001 From: Evgeny Kolyakov Date: Fri, 25 Feb 2022 09:50:13 +0200 Subject: [PATCH 5/6] Update Dockerfile --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c9455ce..9f68949 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,10 +12,10 @@ RUN curl -LOJ "https://github.com/bnb-chain/bsc/releases/download/v${VERSION}/ma curl -LOJ "https://github.com/bnb-chain/bsc/releases/download/v${VERSION}/geth_linux" && \ unzip mainnet.zip -d / && \ mv /mainnet/* /. && rm -rf /mainnet && \ - sed -i 's/^HTTPHost.*/HTTPHost = "0.0.0.0"/' /mainnet/config.toml && \ - sed -i '/^WSPort.*/a WSHost = "0.0.0.0"' /mainnet/config.toml && \ - sed -i 's/^HTTPVirtualHosts.*/HTTPVirtualHosts = ["*"]/' /mainnet/config.toml && \ - sed -i '/Node\.LogConfig/,/^$/d' /mainnet/config.toml && \ + sed -i 's/^HTTPHost.*/HTTPHost = "0.0.0.0"/' /config.toml && \ + sed -i '/^WSPort.*/a WSHost = "0.0.0.0"' /config.toml && \ + sed -i 's/^HTTPVirtualHosts.*/HTTPVirtualHosts = ["*"]/' /config.toml && \ + sed -i '/Node\.LogConfig/,/^$/d' /config.toml && \ mv geth_linux /usr/local/bin/bsc && \ chmod +x /usr/local/bin/bsc From 7f583464c994bd972bfb1d89c69c4fcc9be75273 Mon Sep 17 00:00:00 2001 From: Evgeny Kolyakov Date: Sat, 9 Apr 2022 07:54:41 +0300 Subject: [PATCH 6/6] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9f68949..5936b9e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,10 @@ RUN apt-get update -y \ ARG VERSION +# mv /mainnet/* /. && rm -rf /mainnet && \ RUN curl -LOJ "https://github.com/bnb-chain/bsc/releases/download/v${VERSION}/mainnet.zip" && \ curl -LOJ "https://github.com/bnb-chain/bsc/releases/download/v${VERSION}/geth_linux" && \ unzip mainnet.zip -d / && \ - mv /mainnet/* /. && rm -rf /mainnet && \ sed -i 's/^HTTPHost.*/HTTPHost = "0.0.0.0"/' /config.toml && \ sed -i '/^WSPort.*/a WSHost = "0.0.0.0"' /config.toml && \ sed -i 's/^HTTPVirtualHosts.*/HTTPVirtualHosts = ["*"]/' /config.toml && \