|
|
@ -1,6 +1,7 @@ |
|
|
|
SYSTEM = $(shell uname -s)
|
|
|
|
SYSTEM = $(shell uname -s)
|
|
|
|
HOST = host.docker.internal
|
|
|
|
HOST = host.docker.internal
|
|
|
|
DOCKER_IMAGE = blockscout_prod
|
|
|
|
DOCKER_IMAGE = blockscout_prod
|
|
|
|
|
|
|
|
BS_CONTAINER_NAME = blockscout
|
|
|
|
PG_CONTAINER_NAME = postgres
|
|
|
|
PG_CONTAINER_NAME = postgres
|
|
|
|
PG_CONTAINER_IMAGE = postgres:10.4
|
|
|
|
PG_CONTAINER_IMAGE = postgres:10.4
|
|
|
|
THIS_FILE = $(lastword $(MAKEFILE_LIST))
|
|
|
|
THIS_FILE = $(lastword $(MAKEFILE_LIST))
|
|
|
@ -87,7 +88,7 @@ endif |
|
|
|
|
|
|
|
|
|
|
|
start: build postgres |
|
|
|
start: build postgres |
|
|
|
@echo "==> Starting blockscout"
|
|
|
|
@echo "==> Starting blockscout"
|
|
|
|
@docker run --rm \
|
|
|
|
@docker run --rm --name $(BS_CONTAINER_NAME) \
|
|
|
|
$(BLOCKSCOUT_CONTAINNER_PARAMS) \
|
|
|
|
$(BLOCKSCOUT_CONTAINNER_PARAMS) \
|
|
|
|
-p 4000:4000 \
|
|
|
|
-p 4000:4000 \
|
|
|
|
$(DOCKER_IMAGE) /bin/sh -c "mix phx.server"
|
|
|
|
$(DOCKER_IMAGE) /bin/sh -c "mix phx.server"
|
|
|
|