2024-06-06 20:18:48 +03:00
|
|
|
include internal.mk
|
|
|
|
|
|
|
|
index_url ?= ''
|
|
|
|
|
2024-06-06 20:54:55 +03:00
|
|
|
build-container:
|
2024-06-06 20:18:48 +03:00
|
|
|
$(MAKE) -C ./projects/$(project)/container build index_url=$(index_url)
|
2024-03-29 17:50:13 +03:00
|
|
|
|
|
|
|
remove-containers:
|
|
|
|
docker compose -f deploy/docker-compose.yaml down || true
|
|
|
|
docker stop $(project) anvil-node && docker rm $(project) anvil-node || true
|
|
|
|
|
|
|
|
build-multiplatform:
|
|
|
|
$(MAKE) -C ./projects/$(project)/container build-multiplatform
|
|
|
|
|
2024-06-06 20:18:48 +03:00
|
|
|
deploy-container: stop-container
|
2024-03-29 17:49:24 +03:00
|
|
|
cp ./projects/$(project)/container/config.json deploy/config.json
|
2024-03-29 17:50:13 +03:00
|
|
|
docker compose -f deploy/docker-compose.yaml up -d
|
2024-06-06 20:18:48 +03:00
|
|
|
docker logs infernet-node -f
|
|
|
|
|
|
|
|
stop-container:
|
|
|
|
docker compose -f deploy/docker-compose.yaml kill || true
|
|
|
|
docker compose -f deploy/docker-compose.yaml rm -f || true
|
|
|
|
docker kill $(project) || true
|
|
|
|
docker rm $(project) || true
|
|
|
|
|
|
|
|
watch-logs:
|
2024-03-29 17:50:13 +03:00
|
|
|
docker compose -f deploy/docker-compose.yaml logs -f
|
2024-03-29 17:49:24 +03:00
|
|
|
|
|
|
|
deploy-contracts:
|
|
|
|
$(MAKE) -C ./projects/$(project)/contracts deploy
|
|
|
|
|
|
|
|
call-contract:
|
|
|
|
$(MAKE) -C ./projects/$(project)/contracts call-contract
|
2024-03-29 17:50:13 +03:00
|
|
|
|
|
|
|
build-service:
|
|
|
|
$(MAKE) -C ./projects/$(project)/$(service) build
|
|
|
|
|
|
|
|
run-service:
|
|
|
|
$(MAKE) -C ./projects/$(project)/$(service) run
|