Files
oc-scheduler/Makefile

43 lines
864 B
Go
Raw Permalink 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)
2026-02-09 09:47:22 +01:00
docker tag oc-scheduler opencloudregistry/oc-scheduler:latest
2025-01-15 16:23:49 +01:00
publish-kind:
2026-02-09 09:47:22 +01:00
kind load docker-image opencloudregistry/oc-scheduler:latest --name $(CLUSTER_NAME) | true
2025-01-15 16:23:49 +01:00
publish-registry:
2026-02-05 12:08:15 +01:00
docker push opencloudregistry/oc-scheduler:latest
2025-01-15 16:23:49 +01:00
docker-deploy:
docker compose up -d
run-docker: docker publish-kind publish-registry docker-deploy
2026-02-05 12:08:15 +01:00
all: docker publish-kind
ci: docker publish-registry
2025-01-15 16:23:49 +01:00
2025-03-28 08:47:44 +01:00
.PHONY: build run clean docker publish-kind publish-registry