-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathJustfile
More file actions
38 lines (29 loc) · 1.19 KB
/
Justfile
File metadata and controls
38 lines (29 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env -S just --justfile
# boxkit - Justfile for local development and testing
# Container provisioning logic lives in scripts/
# Build boxkit image locally (without chunkah - chunkah requires buildah)
build-boxkit:
podman build --target=builder -f Containerfiles/boxkit -t boxkit:local .
# Build fedora-example image locally (without chunkah - chunkah requires buildah)
build-fedora-example:
podman build --target=builder -f Containerfiles/fedora-example -t fedora-example:local .
# Build all images
build-all: build-boxkit build-fedora-example
# Run boxkit in distrobox
run-boxkit:
@distrobox create -i boxkit:local -n boxkit 2>/dev/null || true
distrobox enter boxkit
# Run fedora-example in distrobox
run-fedora-example:
@distrobox create -i fedora-example:local -n fedora-example 2>/dev/null || true
distrobox enter fedora-example
# Clean built images
clean:
podman rmi -f boxkit:local fedora-example:local 2>/dev/null || true
@echo "✓ Local images cleaned"
# Clean distrobox containers
clean-distrobox:
@distrobox rm -f boxkit fedora-example 2>/dev/null || true
@echo "✓ Distrobox containers removed"
# Full cleanup
clean-all: clean clean-distrobox