~dricottone/docker-moinmoin19

ref: d09397e5d0c7f12fa603df394d6b8da9718c3c44 docker-moinmoin19/Makefile -rw-r--r-- 909 bytes
d09397e5Dominic Ricottone Minor cleanup 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
UPSTREAM_URL_MOIN="http://static.moinmo.in/files/moin-1.9.11.tar.gz"
UPSTREAM_URL_SIG="http://static.moinmo.in/files/moin-1.9.11.tar.gz.asc"
UPSTREAM_SHA256="02be31d55f39d4fe0c6253df8b49e01b76d095634cbd1b56d185f66e1e0c3cf5"
UPSTREAM_GPG="FAF7B393"

CONMAN=docker

.PHONY: clean
clean:
	$(CONMAN) image rm --force my-moin || true
	rm -rf build/*

build/moin.tar.gz:
	mkdir -p build
	curl ${UPSTREAM_URL_MOIN} --output build/moin.tar.gz
	curl ${UPSTREAM_URL_SIG} --output build/moin.tar.gz.asc
	echo "${UPSTREAM_SHA256} build/moin.tar.gz" | sha256sum --check
	gpg --keyserver keyserver.ubuntu.com --recv-key ${UPSTREAM_GPG}
	gpg --verify build/moin.tar.gz.asc build/moin.tar.gz
	tar xzf build/moin.tar.gz --directory build/

.PHONY: image
image: build/moin.tar.gz
	test -f /var/deploy/conf/moinmoin/wikiconfig.py && cp /var/deploy/conf/moinmoin/wikiconfig.py moinmoin/ || true
	$(CONMAN) build --tag my-moin .