init linker

This commit is contained in:
Waylon Walker 2025-08-27 19:44:33 -05:00
commit bf3419a7f0
11 changed files with 4268 additions and 0 deletions

34
justfile Normal file
View file

@ -0,0 +1,34 @@
version := `cat version`
# tailwind:
# tailwindcss --input tailwind/app.css --output static/app-{{version}}.css
# tailwindcss --input tailwind/app.css --output static/app.css
update-uv-installer:
[ -d container ] || mkdir container
curl -LsSf https://astral.sh/uv/install.sh > container/install-uv.sh
chmod +x container/install-uv.sh
lock: lock-requirements
lock-requirements:
uv lock --script linker.py
uv export --script linker.py > requirements.txt
build: build-container
build-container:
podman build -t registry.wayl.one/linker:latest -t registry.wayl.one/linker:{{version}} -f container/Containerfile .
run: run-container
run-container:
podman run -p 8000:8000 registry.wayl.one/linker:{{version}}
deploy: deploy-container
push-container: deploy-container
deploy-container:
podman push registry.wayl.one/linker:latest
podman push registry.wayl.one/linker:{{version}}
run-local:
uv run --script linker.py