summaryrefslogtreecommitdiff
path: root/docker-image/Justfile
diff options
context:
space:
mode:
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