Update Makefile

This commit is contained in:
Shawn 2023-12-12 21:12:27 -08:00
parent acba67182c
commit 668947903a

View file

@ -39,3 +39,12 @@ clean-dbs:
pull-image:
docker pull shaspitz/geth-poa:v0
DOCKER_NETWORK_NAME="primev_net"
create-docker-network:
@echo "Creating Docker network: $(DOCKER_NETWORK_NAME)..."
@if ! docker network inspect $(DOCKER_NETWORK_NAME) >/dev/null 2>&1; then \
docker network create --driver bridge --subnet 172.29.0.0/16 $(DOCKER_NETWORK_NAME); \
else \
echo "Network $(DOCKER_NETWORK_NAME) already exists."; \
fi