-
Notifications
You must be signed in to change notification settings - Fork 4
/
dev-init
executable file
·41 lines (35 loc) · 1.05 KB
/
dev-init
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
36
37
38
39
40
41
#!/bin/sh
set -e
source secrets
if ! carina get howtowhale-dev; then
carina create --wait --template "Swarm 1.11.2 on LXC" howtowhale-dev
fi
carina credentials howtowhale-dev
eval $(carina env howtowhale-dev)
dvm use
echo "Add an A record to your DNS now pointing to the IP address below:"
docker run --rm --net=host -e constraint:node==*master* racknet/ip public ipv4
read -p "Press ENTER to continue"
docker run \
--name letsencrypt-data \
--volume /etc/letsencrypt \
--volume /var/lib/letsencrypt \
--entrypoint /bin/mkdir \
quay.io/letsencrypt/letsencrypt \
-p /etc/letsencrypt/webrootauth/
docker run \
--rm --interactive --tty \
--volumes-from letsencrypt-data \
nginx \
openssl dhparam -out /etc/letsencrypt/dhparams.pem 2048
docker run \
--rm \
--volumes-from letsencrypt-data \
--publish 443:443 \
--publish 80:80 \
quay.io/letsencrypt/letsencrypt certonly \
--server https://acme-v01.api.letsencrypt.org/directory \
--domain dev.howtowhale.com \
--authenticator standalone \
--email me@carolynvanslyck.com \
--agree-tos