{"action":"created","issue":{"url":"https://api.github.com/repos/poanetwork/blockscout/issues/993","repository_url":"https://api.github.com/repos/poanetwork/blockscout","labels_url":"https://api.github.com/repos/poanetwork/blockscout/issues/993/labels{/name}","comments_url":"https://api.github.com/repos/poanetwork/blockscout/issues/993/comments","events_url":"https://api.github.com/repos/poanetwork/blockscout/issues/993/events","html_url":"https://github.com/poanetwork/blockscout/pull/993","id":373948262,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NzU5NzYw","number":993,"title":"Dockerize blockscout (for local usage) [Questions inside]","user":{"login":"konstantinzolotarev","id":286431,"node_id":"MDQ6VXNlcjI4NjQzMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/286431?v=4","gravatar_id":"","url":"https://api.github.com/users/konstantinzolotarev","html_url":"https://github.com/konstantinzolotarev","followers_url":"https://api.github.com/users/konstantinzolotarev/followers","following_url":"https://api.github.com/users/konstantinzolotarev/following{/other_user}","gists_url":"https://api.github.com/users/konstantinzolotarev/gists{/gist_id}","starred_url":"https://api.github.com/users/konstantinzolotarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstantinzolotarev/subscriptions","organizations_url":"https://api.github.com/users/konstantinzolotarev/orgs","repos_url":"https://api.github.com/users/konstantinzolotarev/repos","events_url":"https://api.github.com/users/konstantinzolotarev/events{/privacy}","received_events_url":"https://api.github.com/users/konstantinzolotarev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-25T13:30:11Z","updated_at":"2018-10-26T07:49:39Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/poanetwork/blockscout/pulls/993","html_url":"https://github.com/poanetwork/blockscout/pull/993","diff_url":"https://github.com/poanetwork/blockscout/pull/993.diff","patch_url":"https://github.com/poanetwork/blockscout/pull/993.patch"},"body":"What do you think about such Docker integration ? \r\n\r\nI added Makefile with set of targets for starting postgres locally (using docker)\r\nConfig network (for linux `--network=host` for Mac/Windows it using `host.docker.internal` to call testchain/postgres)\r\n\r\nNow using ENV vars and `make start` command users will be able to start local blockscout instance connected to local evm (testchain)\r\n\r\nStart example: \r\n```bash\r\nETHEREUM_JSONRPC_VARIANT=ganache \\ \r\nETHEREUM_JSONRPC_HTTP_URL=http://host.docker.internal:2000 \\ \r\nETHEREUM_JSONRPC_WEB_SOCKET_URL=ws://host.docker.internal:2000 \\ \r\nmake start\r\n```\r\n\r\nShould I add more information into README.md file ?\r\n\r\n## Motivation\r\n\r\nMy motivation was give an ability to use blockscout locally without need to install elixir/erlang dependencies.\r\n\r\n## Changelog\r\n\r\n### Enhancements\r\n* Added Dockerfile for building docker image\r\n* Added `Makefile` with set of targets to perform build/run/migrate actions.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/poanetwork/blockscout/issues/comments/433319551","html_url":"https://github.com/poanetwork/blockscout/pull/993#issuecomment-433319551","issue_url":"https://api.github.com/repos/poanetwork/blockscout/issues/993","id":433319551,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzMxOTU1MQ==","user":{"login":"konstantinzolotarev","id":286431,"node_id":"MDQ6VXNlcjI4NjQzMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/286431?v=4","gravatar_id":"","url":"https://api.github.com/users/konstantinzolotarev","html_url":"https://github.com/konstantinzolotarev","followers_url":"https://api.github.com/users/konstantinzolotarev/followers","following_url":"https://api.github.com/users/konstantinzolotarev/following{/other_user}","gists_url":"https://api.github.com/users/konstantinzolotarev/gists{/gist_id}","starred_url":"https://api.github.com/users/konstantinzolotarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstantinzolotarev/subscriptions","organizations_url":"https://api.github.com/users/konstantinzolotarev/orgs","repos_url":"https://api.github.com/users/konstantinzolotarev/repos","events_url":"https://api.github.com/users/konstantinzolotarev/events{/privacy}","received_events_url":"https://api.github.com/users/konstantinzolotarev/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T07:49:39Z","updated_at":"2018-10-26T07:49:39Z","author_association":"CONTRIBUTOR","body":"It was just a draft for personal use. Was not sure if it's needed. For sure will add all missing integrations/docs. "}}
{"actor":{"display_login":"konstantinzolotarev"}}