mirror of
https://github.com/open-metadata/OpenMetadata
synced 2026-05-24 09:39:11 +00:00
* config cleanup * add missing configs * fix auto pilot * fix lifecycle * fix logs and tests * fix test * move integration tests * fix * fix * Address code review feedback - Fix UsageWorkflowConfig to set stageFileLocation instead of queryLogFilePath - Add error handling for parseInt in IngestionLogHandler to catch NumberFormatException * fix * fix lifecycle * prepare cronOMJob * remove PR target * fix * fix * fix * fix * fix * fix tests * fix review * fix review * fix review * fix --------- Co-authored-by: Gitar <gitar@gitar.ai> Co-authored-by: Gitar <noreply@gitar.ai> Co-authored-by: pmbrull <pmbrull@users.noreply.github.com>
66 lines
No EOL
1.7 KiB
Makefile
66 lines
No EOL
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"
|