Files
wehub-resource-sync bf2343b7e4
Integration Tests - MySQL + Elasticsearch / Detect Changes (push) Waiting to run
Integration Tests - MySQL + Elasticsearch / integration-tests-mysql-elasticsearch (push) Blocked by required conditions
Integration Tests - PostgreSQL + Elasticsearch + Redis / Detect Changes (push) Waiting to run
Integration Tests - PostgreSQL + Elasticsearch + Redis / integration-tests-postgres-elasticsearch-redis (push) Blocked by required conditions
Integration Tests - PostgreSQL + OpenSearch / Detect Changes (push) Waiting to run
Integration Tests - PostgreSQL + OpenSearch / integration-tests-postgres-opensearch (push) Blocked by required conditions
Java Checkstyle / java-checkstyle (push) Waiting to run
Maven Collate Tests / maven-collate-ci (push) Waiting to run
OpenMetadata Service Unit Tests / Detect Changes (push) Waiting to run
OpenMetadata Service Unit Tests / openmetadata-service-unit-tests (push) Blocked by required conditions
OpenMetadata Service Unit Tests / k8s_operator-unit-tests (push) Blocked by required conditions
OpenMetadata Service Unit Tests / openmetadata-service-unit-tests-status (push) Blocked by required conditions
Publish Package to Maven Central Repository / publish-maven-packages (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:35:45 +08:00

66 lines
1.7 KiB
Makefile

# OpenMetadata Kubernetes Operator Makefile
# Variables
IMAGE_NAME ?= docker.getcollate.io/openmetadata/omjob-operator
VERSION ?= 1.12.0-SNAPSHOT
JAR_FILE = target/openmetadata-k8s-operator-$(VERSION)-boot.jar
# Default target
.PHONY: help
help:
@echo "Available targets:"
@echo " compile - Compile the operator"
@echo " test - Run unit tests"
@echo " package - Build fat JAR"
@echo " docker - Build Docker image"
@echo " push - Push Docker image to registry"
@echo " clean - Clean build artifacts"
@echo " run-local - Run operator locally"
# Build targets
.PHONY: compile
compile:
cd .. && mvn compile -pl openmetadata-k8s-operator
.PHONY: test
test:
cd .. && mvn test -pl openmetadata-k8s-operator
.PHONY: package
package:
cd .. && mvn package -pl openmetadata-k8s-operator
# Docker targets
.PHONY: docker
docker: package
@echo "Building Docker image: $(IMAGE_NAME):$(VERSION)"
docker build -t $(IMAGE_NAME):$(VERSION) .
docker tag $(IMAGE_NAME):$(VERSION) $(IMAGE_NAME):latest
.PHONY: push
push:
@echo "Pushing Docker image: $(IMAGE_NAME):$(VERSION)"
docker push $(IMAGE_NAME):$(VERSION)
docker push $(IMAGE_NAME):latest
# Development targets
.PHONY: run-local
run-local: package
@echo "Running operator locally..."
java -jar $(JAR_FILE)
.PHONY: clean
clean:
cd .. && mvn clean -pl openmetadata-k8s-operator
docker rmi $(IMAGE_NAME):$(VERSION) $(IMAGE_NAME):latest 2>/dev/null || true
# Integration targets
.PHONY: verify
verify: test
@echo "Running additional verification..."
cd .. && mvn verify -pl openmetadata-k8s-operator
# Development convenience
.PHONY: dev
dev: clean compile test
@echo "Development build complete"