-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
24 lines (21 loc) · 1.28 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
all: run-node
# Name of our Docker image
DOCKER_IMAGE=limechain/as-substrate:latest
# Name of our Docker container
DOCKER_CONTAINER=as-substrate-node
# Run Docker container in a detached mode
run-node-demo:
@echo "Running the container in detached mode"
ifdef detached
@docker run -p 9933:9933 -p 9944:9944 -p 30333:30333 -v "$(CURDIR)/${spec}":/customSpecRaw.json -d $(DOCKER_IMAGE)
else
@docker run -p 9933:9933 -p 9944:9944 -p 30333:30333 -v "$(CURDIR)/${spec}":/customSpecRaw.json $(DOCKER_IMAGE)
endif
run-node:
ifdef help
@docker run -it limechain/as-substrate:node-v1 --help
else ifeq ($(detached), 1)
@docker run -p ${RPC-PORT}:${RPC-PORT} -p ${WS-PORT}:${WS-PORT} -p ${PORT}:${PORT} -v "$(CURDIR)/${spec}":/raw-chain-spec.json -v /tmp:/tmp --name ${NAME} -d limechain/as-substrate:grandpa --base-path /tmp/${NAME} --port ${PORT} --ws-port ${WS-PORT} --rpc-port ${RPC-PORT} --execution Wasm --offchain-worker Never --validator --name=${NAME} ${OTHER}
else
@docker run -p ${RPC-PORT}:${RPC-PORT} -p ${WS-PORT}:${WS-PORT} -p ${PORT}:${PORT} -v "$(CURDIR)/${spec}":/raw-chain-spec.json -v /tmp:/tmp limechain/as-substrate:grandpa --base-path /tmp/${NAME} --port ${PORT} --ws-port ${WS-PORT} --rpc-port ${RPC-PORT} --execution Wasm --offchain-worker Never --validator --name=${NAME} ${OTHER}
endif