forked from Akaito/route53-updater-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (30 loc) · 1.04 KB
/
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
31
32
33
34
35
build:
@-sudo docker stop route53-updater
@-sudo docker rm route53-updater
@sudo docker build -t codesaru/route53-updater .
# To continually update DNS, create then "sudo crontab -e" to "docker start codesaru/route53-updater".
create:
sudo docker create \
--name=route53-updater \
codesaru/route53-updater
run:
sudo docker run -d --rm \
--env R53_HOSTED_ZONE_ID=A01BCD2EF3GHIJ \
--env DNS_NAME=your.domain.com \
--env AWS_SHARED_CREDENTIALS_FILE=/credentials \
--mount type=bind,source=$(PWD)/credentials,destination=/credentials,readonly=true \
--name route53-updater \
codesaru/route53-updater
run-interactive:
sudo docker run -ti --rm \
--env R53_HOSTED_ZONE_ID=A01BCD2EF3GHIJ \
--env DNS_NAME=your.domain.com \
--env AWS_SHARED_CREDENTIALS_FILE=/credentials \
--mount type=bind,source=$(PWD)/credentials,destination=/credentials,readonly=true \
--name route53-updater \
codesaru/route53-updater
stop:
@sudo docker stop route53-updater
@sudo docker rm route53-updater
attach:
@sudo docker exec -ti route53-updater sh