-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (32 loc) · 871 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
31
32
33
34
35
36
37
38
39
40
41
42
DOCKER_CERT_PATH := ./certs
DOCKER_HOST := tcp://159.89.141.210:2376
DOCKER_MACHINE_NAME := rancher
ifeq ($(machine),)
machine = rancher
endif
ifeq ($(machine_size),)
machine_size = s-2vcpu-4gb
endif
ifeq ($(vhost),)
vhost = rancher.secretpool.org
endif
ifeq ($(access_token),)
access_token = 107c684cc64c22cc9d5e89804993d060d3d3f23409555bbf45617a41aa34d84f
endif
all: deploy
deploy:
docker-compose up -d
create-password:
docker run --entrypoint htpasswd registry:2 -Bbn admin wMl2?5VgSuEaVCbC > auth/htpasswd
docker cp auth/htpasswd rancher_rancher-registry_1:/auth
logs:
docker-compose logs -f
ssh:
docker exec -it rancher_rancher-registry_1 bash
provision-server:
docker-machine create \
--driver digitalocean \
--digitalocean-access-token $(access_token) \
--digitalocean-region sfo2 \
--digitalocean-size $(machine_size) \
$(machine)