-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (41 loc) · 2.13 KB
/
Makefile
File metadata and controls
45 lines (41 loc) · 2.13 KB
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
build:
@echo "----------------------------------------------------------------"
@echo "Update of djangowebexpe image"
@echo "----------------------------------------------------------------"
docker build --no-cache . --tag djangowebexpe
@echo "----------------------------------------------------------------"
@echo "Image is now build you can run instance using 'make run'"
@echo "----------------------------------------------------------------"
run:
@echo "----------------------------------------------------------------"
@echo "Process to run new instance"
@echo "----------------------------------------------------------------"
docker-compose up webexpe
@echo "----------------------------------------------------------------"
@echo "Your docker instance is now launched with name 'webexpeinstance'"
@echo "Your website is now accessible at http://localhost:8000"
@echo "----------------------------------------------------------------"
stop:
@echo "----------------------------------------------------------------"
@echo "Process to stop current instance"
@echo "----------------------------------------------------------------"
docker stop webexpeinstance
@echo "----------------------------------------------------------------"
@echo "App is now stopped"
@echo "----------------------------------------------------------------"
remove:
@echo "----------------------------------------------------------------"
@echo "Process to stop current instance"
@echo "----------------------------------------------------------------"
docker rm webexpeinstance
@echo "----------------------------------------------------------------"
@echo "App is now stopped and removed"
@echo "----------------------------------------------------------------"
clean:
@echo "----------------------------------------------------------------"
@echo "Process to remove image"
@echo "----------------------------------------------------------------"
docker rmi djangowebexpe
@echo "----------------------------------------------------------------"
@echo "djangowebexpe image is now deleted"
@echo "----------------------------------------------------------------"