aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-01-20 16:03:08 -0800
committerFuwn <[email protected]>2022-01-20 16:03:08 -0800
commit8070becd846a5b59b0ee32015d02eb00a2652f4e (patch)
treee4bb4d40792d75bcb7649ca56b36239753489ad0 /Makefile
downloadbowl-8070becd846a5b59b0ee32015d02eb00a2652f4e.tar.xz
bowl-8070becd846a5b59b0ee32015d02eb00a2652f4e.zip
bowl: :star:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..339cd0a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+fmt:
+ go fmt github.com/fuwn/bowl...
+
+validate: .bowl/certificates/bowl.crt .bowl/certificates/bowl.key
+
+run: fmt validate
+ go run github.com/fuwn/bowl
+
+build: fmt
+ go build
+
+ssl:
+ mkdir -p .bowl/certificates
+ openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes \
+ -out .bowl/certificates/bowl.crt \
+ -keyout .bowl/certificates/bowl.key \
+ -subj "/CN=bowl.fuwn.me"
+
+docker: fmt
+ docker build -t fuwn/bowl:latest .
+
+dangling:
+ sudo docker rmi $(sudo docker images -f "dangling=true" -q) --force