-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 882 Bytes
/
Makefile
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
27
28
29
30
# for testing the 'certonly' target it is sometimes useful to have a
# 'real domain'; put this down in the file 'test-domain'
TSTDOMAIN=$(shell cat test-domain || echo example.com)
default: build certonly
build:
docker build -q -t cwedgwood/certbot-aws .
docker images
test: build
docker run --rm cwedgwood/certbot-aws --version
certonly: build
TERM= docker run --rm \
-v $(HOME)/.aws/credentials:/root/.aws/credentials \
-v $(PWD)/dryrun-letsencrypt-etc:/etc/letsencrypt \
-v $(PWD)/dryrun-letsencrypt-log:/var/log/letsencrypt \
cwedgwood/certbot-aws certonly \
--installer none --authenticator dns-route53 \
--non-interactive --dry-run \
-d '$(TSTDOMAIN)' -d '*.$(TSTDOMAIN)' \
--agree-tos -m 'postmaster@$(TSTDOMAIN)'
clean:
rm -f *~
sudo rm -rf dryrun-letsencrypt-etc dryrun-letsencrypt-log
.PHONY: default build test certonly clean