Update Makefile

This commit is contained in:
Shawn 2023-12-12 21:12:27 -08:00
parent d972c74f5e
commit 8a87924515

View file

@ -35,3 +35,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