-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
59 lines (49 loc) · 1.61 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
v-build:
@echo "\nDownloading needed environment..."
@vagrant box add ubuntu/xenial64
@echo "\nDONE\n"
@echo "Building your Vagrant Simian environment..."
@vagrant up
v-exec:
@echo "\nEntering your Vagrant Simian environment..."
@vagrant ssh
build:
@echo "\nBuilding your Simian environment..."
@docker build -f scripts/docker/Dockerfile -t simian .
@echo "\nDONE\n"
exec:
@echo "\nExecuting your Simian environment..."
@docker-compose -f scripts/docker/docker-compose.yml up -d
@docker exec -it simian /bin/bash
@echo "\nDONE\n"
run:
@echo "\nRunning/Re-mounting your Simian environment..."
@docker-compose -f scripts/docker/docker-compose.yml up --build -d
@docker exec -it simian /bin/bash
@echo "\nDONE\n"
test:
@echo "\nRunning Simian tests..."
@docker exec -it simian /bin/bash -c "python3 -m pytest"
@echo "\nDONE\n"
install:
@echo "\nInstalling Simian dependencies..."
@docker exec -it simian /bin/bash -c "pip3 install -r requirements.txt"
@echo "\nDONE\n"
rm:
@echo "\nRemoving Simian's docker container!..."
@docker rm simian
@echo "\nDONE\n"
rm-network:
@echo "\nRemoving Simian's docker network!..."
@docker network rm simian-network
@echo "\nDONE\n"
rmi:
@echo "\nRemoving Simian's docker image!..."
@docker rmi simian
help:
@echo "\n\t\t\t\tSimian"
@echo "\n\tmake build - Builds the docker image that contains the app"
@echo "\tmake run - Runs the previously created docker image and enters the container"
@echo "\tmake rm - Removes the container created by the app"
@echo "\tmake rm-network - Removes the default network created by the app"
@echo "\tmake help - Outputs this list\n"