aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-08-31 16:06:05 +0200
committerWilliam Hergès <william@herges.fr>2025-08-31 16:06:05 +0200
commit1200d0aef43d2ba771f3262e5adf23b8dc8577d0 (patch)
treea835702f86eb7726f5fd74c8e51851df5261c68f
parent05941e243f9bef6c8f461bafae9dbd12a88362b6 (diff)
ci(scripts): justfile for common task
-rw-r--r--create_db.sh5
-rw-r--r--justfile18
2 files changed, 18 insertions, 5 deletions
diff --git a/create_db.sh b/create_db.sh
deleted file mode 100644
index 07deca1..0000000
--- a/create_db.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/bash
-
-podman network create db
-podman run -p 5432:5432 --rm --network db --name postgres --env-file .env -v ./data:/var/lib/postgresql/data -d postgres:alpine
-podman run -p 8080:8080 --rm --network db --name adminer -d adminer
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..f3916dd
--- /dev/null
+++ b/justfile
@@ -0,0 +1,18 @@
+dev:
+ podman network create db
+ podman run -p 5432:5432 --rm --network db --name postgres --env-file .env -v ./data:/var/lib/postgresql/data -d postgres:alpine
+ podman run -p 8080:8080 --rm --network db --name adminer -d adminer
+ go run .
+
+update:
+ git stash
+ git pull
+ git stash pop
+ go run .
+
+stop:
+ podman stop postgres adminer
+ podman network rm db
+
+build:
+ go build . \ No newline at end of file