fischer-agentkit/deploy/offline/Makefile

38 lines
1010 B
Makefile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Fischer AgentKit — 离线安装包构建编排
# 目标:在联网环境打包镜像 + Chart拷贝到离线集群安装。
#
# 用法:
# make all # 构建镜像 + 打包 chart联网环境
# make install # 离线集群安装(需先拷贝 dist/ 过去)
# make clean # 清理 dist/
SHELL := /bin/bash
.DEFAULT_GOAL := all
# 可覆盖变量
IMAGE_REPO ?= fischer-agentkit
IMAGE_TAG ?= 0.1.0
CHART_DIR ?= ../helm/agentkit
DIST_DIR ?= dist
NAMESPACE ?= agentkit
RELEASE ?= agentkit
.PHONY: all build-images package-chart install clean
all: build-images package-chart
# 构建镜像并保存为 tarball
build-images:
@bash scripts/build-images.sh $(IMAGE_REPO) $(IMAGE_TAG) $(DIST_DIR)
# 打包 Helm chart 为 tgz
package-chart:
@bash scripts/package-chart.sh $(CHART_DIR) $(DIST_DIR)
# 离线安装:加载镜像 + helm install
install:
@bash scripts/install.sh $(DIST_DIR) $(NAMESPACE) $(RELEASE)
clean:
rm -rf $(DIST_DIR)