2025-01-08 21:45:38 +01:00
|
|
|
.DEFAULT_GOAL := all
|
|
|
|
|
|
|
|
|
|
build: clean
|
|
|
|
|
bee pack
|
|
|
|
|
|
|
|
|
|
run:
|
|
|
|
|
bee run -gendoc=true -downdoc=true
|
|
|
|
|
|
2025-03-28 08:49:39 +01:00
|
|
|
purge:
|
|
|
|
|
lsof -t -i:8089 | xargs kill | true
|
|
|
|
|
|
|
|
|
|
run-dev:
|
|
|
|
|
bee generate routers && bee run -gendoc=true -downdoc=true -runmode=prod
|
|
|
|
|
|
|
|
|
|
dev: purge run-dev
|
2025-03-06 09:32:22 +01:00
|
|
|
|
2025-01-08 21:45:38 +01:00
|
|
|
debug:
|
|
|
|
|
bee run -downdebug -gendebug
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
rm -rf oc-workspace.tar.gz
|
|
|
|
|
|
|
|
|
|
docker:
|
2025-06-16 09:20:41 +02:00
|
|
|
DOCKER_BUILDKIT=1 docker build -t oc-workspace -f Dockerfile . --build-arg=HOST=$(HOST)
|
2026-02-09 09:50:21 +01:00
|
|
|
docker tag oc-workspace opencloudregistry/oc-workspace:latest
|
2025-01-08 21:45:38 +01:00
|
|
|
|
|
|
|
|
publish-kind:
|
2026-02-09 09:50:21 +01:00
|
|
|
kind load docker-image opencloudregistry/oc-workspace:latest --name $(CLUSTER_NAME) | true
|
2025-01-08 21:45:38 +01:00
|
|
|
|
|
|
|
|
publish-registry:
|
2026-02-05 12:12:42 +01:00
|
|
|
docker push opencloudregistry/oc-workspace:latest
|
2025-01-08 21:45:38 +01:00
|
|
|
|
2025-06-16 09:20:41 +02:00
|
|
|
docker-deploy:
|
|
|
|
|
docker compose up -d
|
|
|
|
|
|
|
|
|
|
run-docker: docker publish-kind publish-registry docker-deploy
|
|
|
|
|
|
2026-02-05 12:12:42 +01:00
|
|
|
all: docker publish-kind
|
|
|
|
|
|
2026-02-06 09:05:09 +01:00
|
|
|
prepare-multiarch:
|
2026-02-06 09:29:00 +01:00
|
|
|
docker buildx create --name multiarch --driver docker-container --use | true
|
2026-02-06 09:05:09 +01:00
|
|
|
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-workspace:latest --push .
|
|
|
|
|
|
2026-02-20 10:31:58 +01:00
|
|
|
ci: docker publish-registry
|
2025-01-08 21:45:38 +01:00
|
|
|
|
2025-03-28 08:49:39 +01:00
|
|
|
.PHONY: build run clean docker publish-kind publish-registry
|