2019-03-22 17:10:53 +01:00
|
|
|
# These default settings can be overriden by exporting env variables
|
2019-03-23 13:12:22 +02:00
|
|
|
|
|
|
|
GIT_REVISION ?= $(git rev-parse HEAD)
|
|
|
|
|
2019-06-20 17:06:35 +03:00
|
|
|
NETWORK ?= testnet1
|
|
|
|
NETWORK_TYPE ?= libp2p_spec
|
2019-03-22 17:10:53 +01:00
|
|
|
|
2019-06-20 17:06:35 +03:00
|
|
|
IMAGE_TAG ?= $(NETWORK)
|
2019-03-22 17:10:53 +01:00
|
|
|
IMAGE_NAME ?= statusteam/nimbus_beacon_node:$(IMAGE_TAG)
|
|
|
|
|
|
|
|
build: $(NIX_INSTALL)
|
|
|
|
docker build \
|
2019-03-23 13:12:22 +02:00
|
|
|
--build-arg="GIT_REVISION=$(GIT_REVISION)" \
|
2019-03-22 17:10:53 +01:00
|
|
|
--build-arg="NETWORK=$(NETWORK)" \
|
2019-06-20 17:06:35 +03:00
|
|
|
--build-arg="NETWORK_TYPE=$(NETWORK_TYPE)" \
|
2019-03-22 17:10:53 +01:00
|
|
|
-t $(IMAGE_NAME) .
|
|
|
|
|
|
|
|
push: build
|
|
|
|
docker push $(IMAGE_NAME)
|