The python script add katenary.io without "www" to generate the certificate and to be able to accept https://katenary.io to make the redirection.
31 lines
804 B
Makefile
31 lines
804 B
Makefile
RELEASE=website
|
|
NS=katenary
|
|
|
|
build: dist chart
|
|
|
|
chart: dist
|
|
katenary convert -f -p deploy -i https://repo.katenary.io/Katenary/katenary/raw/branch/master/doc/docs/statics/icon.svg
|
|
|
|
dist: $(wildcard src/* compose.yaml)
|
|
rm -rf dist
|
|
podman run --rm -it -u $(id -u):$(id -g) -v $(PWD):/app -w /app node:alpine sh -c "yarn install && yarn parcel build --no-source-maps"
|
|
|
|
deploy: build
|
|
helm -n $(NS) upgrade --install $(RELEASE) ./chart/ -f override.yaml --create-namespace --post-render=./post-render.py
|
|
sleep 1
|
|
kubectl -n $(NS) rollout restart deployment $(RELEASE)-server
|
|
|
|
venv:
|
|
python -m venv venv && venv/bin/pip install -U requests
|
|
|
|
add-redirect: venv
|
|
kubectl -n $(NS) apply -f <(./venv/bin/python add-domain.py)
|
|
|
|
serve:
|
|
$(MAKE) stop
|
|
rm -rf dist
|
|
podman compose up
|
|
|
|
stop:
|
|
-podman compose down
|