Files
oc-peer/Makefile

50 lines
1.1 KiB
Go
Raw Normal View History

2025-01-10 18:07:15 +01:00
.DEFAULT_GOAL := all
build: clean
bee pack
run:
bee run -gendoc=true -downdoc=true
2025-03-28 08:46:50 +01:00
purge:
lsof -t -i:8093 | 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:16 +01:00
2025-01-10 18:07:15 +01:00
debug:
bee run -downdebug -gendebug
clean:
rm -rf oc-peer.tar.gz
docker:
2025-06-16 09:15:44 +02:00
DOCKER_BUILDKIT=1 docker build -t oc-peer -f Dockerfile . --build-arg=HOST=$(HOST)
2026-02-09 09:46:31 +01:00
docker tag oc-peer opencloudregistry/oc-peer:latest
2025-01-10 18:07:15 +01:00
publish-kind:
2026-02-09 09:46:31 +01:00
kind load docker-image opencloudregistry/oc-monitord:latest --name $(CLUSTER_NAME) | true
2025-01-10 18:07:15 +01:00
publish-registry:
2026-02-05 12:07:06 +01:00
docker push opencloudregistry/oc-peer:latest
2025-01-10 18:07:15 +01:00
2025-06-16 09:15:44 +02:00
docker-deploy:
docker compose up -d
run-docker: docker publish-kind publish-registry docker-deploy
prepare-multiarch:
2026-02-06 09:35:34 +01:00
docker buildx create --name multiarch --driver docker-container --use | true
docker run --privileged --rm tonistiigi/binfmt --install all | true
docker-multiarch:
DOCKER_BUILDKIT=1 docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t opencloudregistry/oc-peer:latest --push .
2026-02-05 12:07:06 +01:00
ci: prepare-multiarch docker-multiarch
all: docker publish-kind
2025-01-10 18:07:15 +01:00
2025-03-28 08:46:50 +01:00
.PHONY: build run clean docker publish-kind publish-registry