Merge branch 'master' into ab-make-number-of-pages-of-coinmarketcap-config

pull/1802/head
Victor Baranov 6 years ago committed by GitHub
commit 950877166e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      docker/Dockerfile
  2. 12
      docker/README.md

@ -1,6 +1,6 @@
FROM bitwalker/alpine-elixir-phoenix
RUN apk --no-cache --update add automake libtool inotify-tools autoconf python
RUN apk --no-cache --update add alpine-sdk gmp-dev automake libtool inotify-tools autoconf python
EXPOSE 4000
@ -33,7 +33,7 @@ RUN cd apps/block_scout_web/assets/ && \
RUN cd apps/explorer/ && \
npm install && \
cd -
apk del --force-broken-world alpine-sdk gmp-dev automake libtool inotify-tools autoconf python
# RUN mix do ecto.drop --force, ecto.create, ecto.migrate

@ -3,14 +3,14 @@
For now this integration is not production ready. It made only for local usage only !
## How to use ?
First of all blockscout requires `PostgreSQL` server for working.
First of all, blockscout requires `PostgreSQL` server for working.
It will be provided by starting script (new docker image will be created named `postgres`)
**Starting command**
`make start` - will set everything up and start blockscout in container.
To connect it to your local environment you will have to configure it using [env variables](#env-variables)
Exmaple connecting to local `ganache` instance running on port `2000` on Mac/Windows:
Example connecting to local `ganache` instance running on port `2000` on Mac/Windows:
```bash
COIN=DAI \
ETHEREUM_JSONRPC_VARIANT=ganache \
@ -27,15 +27,15 @@ On Linux docker is starting using `--network=host` and all services should be av
### Migrations
By default `Makefile` will do migrations for you on `PostgreSQL` creation.
But you could run migrations manualy using `make migrate` command.
By default, `Makefile` will do migrations for you on `PostgreSQL` creation.
But you could run migrations manually using `make migrate` command.
**WARNING** Migrations will clean up your local database !
## Env variables
BlockScout support 3 different JSON RPC Variants.
Vriant could be configured using `ETHEREUM_JSONRPC_VARIANT` environment variable.
BlockScout supports 3 different JSON RPC Variants.
Variant could be configured using `ETHEREUM_JSONRPC_VARIANT` environment variable.
Example:
```bash

Loading…
Cancel
Save