-
-
Save onlyanegg/872ac872bedaccca445876c09e48af2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BLOCKSCOUT_VERSION=unknown | |
COIN=POA | |
DB_HOST=postgres | |
DB_PASSWORD=- | |
DB_PORT=5432 | |
DB_USERNAME=postgres | |
ETHEREUM_JSONRPC_HTTP_URL=http://gochain0:8545 | |
ETHEREUM_JSONRPC_WS_URL=ws://gochain0:8546 | |
ETHEREUM_JSONRPC_TRACE_URL=http://localhost:8545 | |
ETHEREUM_JSONRPC_VARIANT=geth | |
HEART_BEAT_TIMEOUT=30 | |
HEART_COMMAND=sudo systemctl restart explorer.service | |
LOGO=/images/blockscout_logo.svg | |
NETWORK=POA Network | |
SUBNETWORK=Sokol Testnet | |
NETWORK_ICON=_test_network_icon.html | |
LINK_TO_OTHER_EXPLORERS=true | |
DATABASE_URL=postgresql://postgres@postgres:5432/blockscout | |
SECRET_KEY_BASE=00000000000000000000000000000000/0000000000000000000000000000000 | |
BLOCKSCOUT_HOST=0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3 | |
RUN apk add elixir npm git make automake libtool inotify-tools gcc g++ gmp gmp-dev | |
WORKDIR /opt | |
RUN git clone -b production-core --depth 1 https://github.com/poanetwork/blockscout | |
WORKDIR /opt/blockscout | |
RUN mix local.hex --force && mix do deps.get, local.rebar --force, deps.compile, compile | |
WORKDIR /opt/blockscout/apps/block_scout_web/assets | |
RUN npm install && node_modules/webpack/bin/webpack.js --mode production | |
WORKDIR /opt/blockscout/apps/explorer | |
RUN npm install | |
WORKDIR /opt/blockscout | |
RUN mix phx.digest | |
WORKDIR /opt/blockscout/apps/block_scout_web | |
RUN mix phx.gen.cert blockscout blockscout.local && \ | |
echo $'\n\ | |
127.0.0.1 localhost blockscout blockscout.local\n\ | |
255.255.255.255 broadcasthost\n\ | |
::1 localhost blockscout blockscout.local' > /etc/hosts | |
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.5.0/wait /wait | |
RUN chmod +x /wait | |
WORKDIR /opt/blockscout | |
EXPOSE 4000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blockscout_1 | 2020-03-20T18:50:50.300 [warn] The on_load function for module libsecp256k1 returned: | |
blockscout_1 | {:error, {:load_failed, 'Failed to load NIF library: \'Error loading shared library /opt/blockscout/_build/dev/lib/libsecp256k1/priv/libsecp256k1_nif.so: No such file or directory\''}} | |
blockscout_1 | | |
blockscout_1 | 2020-03-20T18:50:51.072 application=tzdata [info] tzdata release in place is from a file last modified Tue, 26 Mar 2019 05:40:14 GMT. Release file on server was last modified Wed, 11 Sep 2019 19:35:17 GMT. | |
blockscout_1 | 2020-03-20T18:50:53.551 [warn] The on_load function for module libsecp256k1 returned: | |
blockscout_1 | {:error, {:load_failed, 'Failed to load NIF library: \'Error loading shared library /opt/blockscout/_build/dev/lib/libsecp256k1/priv/libsecp256k1_nif.so: No such file or directory\''}} | |
blockscout_1 | | |
blockscout_1 | ** (Mix) Could not start application mnesia: could not find application file: mnesia.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment