-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (37 loc) · 1.41 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
36
37
38
39
40
41
42
43
build:
- docker build -t astakhovaskold/klinics-webapp -f Dockerfile .
run:
- docker run -p 3000:3000 --name=klinics-webapp_prod --network=klinics-webapp_klinics-network --env-file .env.production -d astakhovaskold/klinics-webapp
rm:
- docker rm -f klinics-webapp_prod
rebuild:
- make rm && make build && make run
drone-ci:
- docker run \
--detach \
--volume=/var/lib/drone:/data \
--env=DRONE_GITHUB_CLIENT_ID=0fd372a92edbd546133f \
--env=DRONE_GITHUB_CLIENT_SECRET=8985f3f8dd55e0ee5fef0dafa0d48d8040dcb336 \
--env=DRONE_RPC_SECRET=115cbc88b04ae6f6f9d61a16a1cc64c9 \
--env=DRONE_SERVER_HOST=localhost \
--env=DRONE_SERVER_PROTO=https \
--env=DRONE_USER_CREATE=username:astakhovaskold,machine:false,admin:true \
--publish=8888:80 \
--restart=always \
--detach=true \
--name=drone \
drone/drone:2
drone-runner:
- docker run --detach \
--volume=/var/run/docker.sock:/var/run/docker.sock \
--env=DRONE_RPC_PROTO=http \
--env=DRONE_RPC_HOST=localhost:8888 \
--env=DRONE_RPC_SECRET=115cbc88b04ae6f6f9d61a16a1cc64c9 \
--env=DRONE_RUNNER_CAPACITY=2 \
--env=DRONE_RUNNER_NAME=drone-runner \
--publish=3000:3000 \
--restart=always \
--name=runner \
drone/drone-runner-docker:1
drone-up:
- docker container rm -f drone runner && make drone-ci && make drone-runner