summaryrefslogtreecommitdiff
path: root/docker-image/Justfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-29 08:33:13 +0200
committerPaul Buetow <paul@buetow.org>2026-01-29 08:33:13 +0200
commit683fc17608f4779e71aafb8fbabc42964fd8b936 (patch)
tree502b7f980978c5b160b85f4e45a9e4f177715211 /docker-image/Justfile
parente43ba46b7d4e4f0796f94a5394d6a9fdf609482b (diff)
Add Docker image for f3s deployment
Amp-Thread-ID: https://ampcode.com/threads/T-019c086d-c760-779d-b740-0f748094b62a Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'docker-image/Justfile')
-rw-r--r--docker-image/Justfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/docker-image/Justfile b/docker-image/Justfile
new file mode 100644
index 0000000..ebb9c1e
--- /dev/null
+++ b/docker-image/Justfile
@@ -0,0 +1,21 @@
+VERSION := "1.0.0"
+REGISTRY := "r0.lan.buetow.org:30001"
+IMAGE := "ipv6test"
+
+# Build the Docker image
+build:
+ docker build -t {{IMAGE}}:{{VERSION}} .
+
+# Build and push to f3s registry
+f3s:
+ docker build -t {{IMAGE}}:{{VERSION}} .
+ docker tag {{IMAGE}}:{{VERSION}} {{REGISTRY}}/{{IMAGE}}:{{VERSION}}
+ docker push {{REGISTRY}}/{{IMAGE}}:{{VERSION}}
+
+# Run locally for testing
+run:
+ docker run -it --rm -p 8080:80 {{IMAGE}}:{{VERSION}}
+
+# Shell into the container for debugging
+shell:
+ docker run -it --rm {{IMAGE}}:{{VERSION}} /bin/sh