-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 994 Bytes
/
Makefile
File metadata and controls
48 lines (37 loc) · 994 Bytes
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
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 --pull -t predict_demo .
@echo "image DONE"
docker-start:
@echo "starting the NEW service in container..."
docker run -p 8080:8080 predict_demo
docker-inter:
@echo "starting the NEW service in container interactively..."
docker run -p 8080:8080 -it predict_demo
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 predict_demo
@echo "image removed"
docker-clean: docker-stop docker-remove
@echo "DONE"
clean:
@echo "removing service files created"
rm -rf $(CREATED)