-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (34 loc) · 910 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
DESTDIR=server
all: start
@echo "Done"
docker-all: docker-build docker-start
@echo "DONE"
docker-build:
@echo "building the image from docker file..."
docker build --no-cache --pull -t josbella/will-it-crack .
@echo "image DONE"
docker-start:
@echo "starting the NEW service in container..."
docker run -p 8080:8080 josbella/will-it-crack
service:
@echo "creating the service..."
pip install --upgrade pip
pip install -r requirements.txt
start:
@echo "starting the NEW service..."
pip install --upgrade pip
pip install -r requirements.txt
python server.py
docker-stop:
@echo "stoping the service..."
docker stop $$(docker ps -alq)
@echo "service stopped"
docker-remove:
@echo "removing the image..."
docker rmi -f josbella/will-it-crack
@echo "image removed"
docker-clean: docker-stop docker-remove
@echo "DONE"
clean:
@echo "removing service files created"
rm -rf $(CREATED)