aboutsummaryrefslogtreecommitdiff
path: root/wekan/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'wekan/Makefile')
-rw-r--r--wekan/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/wekan/Makefile b/wekan/Makefile
new file mode 100644
index 0000000..c80a331
--- /dev/null
+++ b/wekan/Makefile
@@ -0,0 +1,35 @@
1VERSION=7.21
2VERSION_TAG=$(VERSION)
3IMAGE=docker.crute.me/wekan:$(VERSION_TAG)
4LATEST=$(subst :$(VERSION_TAG),,$(IMAGE)):latest
5
6.PHONY: all
7all:
8 sed -i "s#^FROM .*#FROM quay.io/wekan/wekan:v$(VERSION)#" Dockerfile
9 curl -O https://letsencrypt.org/certs/isrgrootx1.pem
10 curl -O https://letsencrypt.org/certs/isrg-root-x1-cross-signed.pem
11 docker pull quay.io/wekan/wekan:v$(VERSION)
12 docker build -t $(IMAGE) .
13
14.PHONY: all-no-cache
15all-no-cache:
16 docker build --no-cache -t $(IMAGE) .
17
18.PHONY: run
19run:
20 docker run -d \
21 -p 9110:9000 \
22 -p 9111:9001 \
23 -v /srv/code:/srv/code \
24 $(IMAGE)
25
26.PHONY: publish
27publish:
28 docker push $(IMAGE)
29 docker tag $(IMAGE) $(LATEST)
30 docker push $(LATEST)
31
32
33.PHONY: clean
34clean:
35 rm -f isrg-root-x1-cross-signed.pem isrgrootx1.pem || true