Skip to content

Commit

Permalink
fix release build
Browse files Browse the repository at this point in the history
  • Loading branch information
stupid-boar committed May 12, 2022
1 parent dc86fce commit ef08dbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ RUN mkdir -p mainnet/data mainnet/config testnet/data testnet/config && \
wget https://github.com/binance-chain/bsc/releases/download/${VERSION}/mainnet.zip && \
wget https://github.com/binance-chain/bsc/releases/download/${VERSION}/testnet.zip && \
unzip mainnet.zip -d mainnet/config && unzip testnet.zip -d testnet/config && rm -rf mainnet.zip testnet.zip bsc
RUN /build/geth --datadir mainnet/data init mainnet/config/mainnet/genesis.json
RUN /build/geth --datadir mainnet/data init mainnet/config/genesis.json
RUN /build/geth --datadir testnet/data init testnet/config/genesis.json
RUN sed '/\[Node.LogConfig\]/d;/File[Root|Path]/d;/MaxBytesSize/d;/Level/d;/DataDir/d;/NoUSB/d;/IPCPath/d;/HTTPHost/d;/HTTPVirtualHosts/d;/InsecureUnlockAllowed/d;/HTTPPort/d;/HTTPModules/d;/WSPort/d;/WSModules/d;/\[Node\]/d;s/PriceLimit = 1000000000/PriceLimit = 2000000000/;s/GasPrice = 1000000000/GasPrice = 2000000000/' testnet/config/config.toml > testnet/config/config-pure.toml && \
sed '/\[Node.LogConfig\]/d;/File[Root|Path]/d;/MaxBytesSize/d;/Level/d;/DataDir/d;/NoUSB/d;/IPCPath/d;/HTTPHost/d;/HTTPVirtualHosts/d;/InsecureUnlockAllowed/d;/HTTPPort/d;/HTTPModules/d;/WSPort/d;/WSModules/d;/\[Node\]/d;s/PriceLimit = 1000000000/PriceLimit = 5000000000/;s/GasPrice = 1000000000/GasPrice = 5000000000/' mainnet/config/mainnet/config.toml > mainnet/config/mainnet/config-pure.toml
sed '/\[Node.LogConfig\]/d;/File[Root|Path]/d;/MaxBytesSize/d;/Level/d;/DataDir/d;/NoUSB/d;/IPCPath/d;/HTTPHost/d;/HTTPVirtualHosts/d;/InsecureUnlockAllowed/d;/HTTPPort/d;/HTTPModules/d;/WSPort/d;/WSModules/d;/\[Node\]/d;s/PriceLimit = 1000000000/PriceLimit = 5000000000/;s/GasPrice = 1000000000/GasPrice = 5000000000/' mainnet/config/config.toml > mainnet/config/config-pure.toml

RUN cat testnet/config/config-pure.toml
RUN cat mainnet/config/mainnet/config-pure.toml
RUN cat mainnet/config/config-pure.toml

FROM alpine:latest
WORKDIR /usr/share/bsc
Expand Down

0 comments on commit ef08dbd

Please # to comment.