-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (45 loc) · 930 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
43
44
45
46
47
48
49
50
51
SHELL=/bin/bash
.PHONY: build
build: build-core build-nginx
## Builds core Ecumene container
.PHONY: build-core
build-core:
docker build \
--file src/Dockerfile \
--tag ecumene-core:dev \
src
## Builds external proxy container
.PHONY: build-nginx
build-nginx:
docker build \
--file nginx/Dockerfile \
--tag ecumene-nginx:dev \
nginx
## Runs core as webserver
## This command is missing volume mounts
.PHONY: run-web
run-web: build-core
docker run \
-p 8080:8080 \
--env-file .env \
--name ecumene-web \
ecumene-core:dev \
"web"
## Runs core as Discord bot
## This command is missing volume mounts
.PHONY: run-bot
run-bot: build-core
docker run \
--env-file .env \
--name ecumene-bot \
ecumene-core:dev \
"bot"
## Runs core as task scheduler
## This command is missing volume mounts
.PHONY: run-task
run-task: build-core
docker run \
--env-file .env \
--name ecumene-task \
ecumene-core:dev \
"task"