containers/.taskfiles/docker.yaml

21 lines
639 B
YAML
Raw Normal View History

2024-11-03 20:28:20 +00:00
version: "3"
tasks:
create-image:
desc: Build local docker image (nixos-builder)
cmds:
- nerdctl build --platform linux/amd64 -t nixos-builder --no-cache apps/lix-builder
shell:
desc: Drop into a build shell
env:
app: "{{ .app }}"
cmds:
- nerdctl run -v "$(pwd)/apps/{{.app}}":/root/working-dir -w /root/working-dir --platform linux/amd64 -it nixos-builder -c "nix develop"
cache:
desc: Start an attic server
dir: "attic"
cmds:
- nerdctl run -it --rm --name=attic -p 8080:8080 -v ./config:/var/empty/.config/attic -v ./data:/var/empty/.local/share/attic docker.io/heywoodlh/attic