feat: Railiance package and deploy (HARNESS-WP-0001-T06)
Container image, k8s namespace/deployment/smoke job, host venv install path, and deterministic agent-harness smoke (sandbox commit+push+hub) for remote verification without Claude Code on the worker host.
This commit is contained in:
parent
4144eba160
commit
67f1791491
15 changed files with 520 additions and 1 deletions
33
Makefile
Normal file
33
Makefile
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
.PHONY: test image image-export deploy-rsync help
|
||||
|
||||
UV ?= $(shell command -v uv 2>/dev/null || echo uv)
|
||||
IMAGE ?= agent-harness:railiance01
|
||||
TAR ?= /tmp/agent-harness-railiance01.tar
|
||||
|
||||
help: ## Show targets
|
||||
@grep -Eh '^[a-zA-Z_-]+:.*?##' $(MAKEFILE_LIST) | \
|
||||
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-16s\033[0m %s\n", $$1, $$2}'
|
||||
|
||||
test: ## Run unit tests
|
||||
PYTHONPATH=".:$$HOME/llm-connect" python3 -m pytest tests/ -q
|
||||
|
||||
image: ## Build container image (vendors ../llm-connect when present)
|
||||
rm -rf llm_connect_vendor
|
||||
mkdir -p llm_connect_vendor
|
||||
if [ -d ../llm-connect/llm_connect ]; then \
|
||||
cp -a ../llm-connect/llm_connect ../llm-connect/pyproject.toml ../llm-connect/README.md llm_connect_vendor/ 2>/dev/null || \
|
||||
cp -a ../llm-connect/llm_connect ../llm-connect/pyproject.toml llm_connect_vendor/; \
|
||||
touch llm_connect_vendor/README.md; \
|
||||
fi
|
||||
docker build -f Containerfile -t $(IMAGE) .
|
||||
rm -rf llm_connect_vendor
|
||||
|
||||
image-export: image ## Save image tar for k3s import
|
||||
docker save -o $(TAR) $(IMAGE)
|
||||
@ls -lh $(TAR)
|
||||
|
||||
deploy-rsync: ## Rsync tree to railiance01:~/agent-harness
|
||||
rsync -az --delete \
|
||||
--exclude '.git' --exclude '__pycache__' --exclude '.pytest_cache' \
|
||||
--exclude 'llm_connect_vendor' --exclude '*.egg-info' \
|
||||
./ railiance01:agent-harness/
|
||||
Loading…
Add table
Add a link
Reference in a new issue