oc-scheduler/Makefile

41 lines
783 B
Makefile
Raw Normal View History

2025-01-15 16:23:49 +01:00
.DEFAULT_GOAL := all
build: clean
bee pack
2025-03-06 09:33:09 +01:00
run:
2025-01-15 16:23:49 +01:00
bee run -gendoc=true -downdoc=true
2025-03-28 08:47:44 +01:00
purge:
lsof -t -i:8090 | xargs kill | true
run-dev:
bee generate routers && bee run -gendoc=true -downdoc=true -runmode=prod
dev: purge run-dev
2025-03-06 09:33:09 +01:00
2025-01-15 16:23:49 +01:00
debug:
bee run -downdebug -gendebug
clean:
rm -rf oc-peer.tar.gz
docker:
DOCKER_BUILDKIT=1 docker build -t oc-scheduler -f Dockerfile . --build-arg=HOST=$(HOST)
docker tag oc-scheduler:latest oc/oc-scheduler:0.0.1
2025-01-15 16:23:49 +01:00
publish-kind:
kind load docker-image oc/oc-scheduler:0.0.1 --name opencloud | true
2025-01-15 16:23:49 +01:00
publish-registry:
@echo "TODO"
docker-deploy:
docker compose up -d
run-docker: docker publish-kind publish-registry docker-deploy
2025-01-15 16:23:49 +01:00
all: docker publish-kind publish-registry
2025-03-28 08:47:44 +01:00
.PHONY: build run clean docker publish-kind publish-registry