-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (39 loc) · 1.31 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
install:
@echo 'Download latest docker image'
build:
@echo 'Build docker image from Dockerfile'
docker build -q -t info_service:latest .
run: kill
@echo 'Run docker image as a container'
#docker run --rm -d --name info_service -p 5000:5000 info_service:latest
docker-compose up -d
kill:
@echo 'Kill docker container if running'
docker kill info_service || true
develop-build: kill
@echo 'Run docker container with latest file changes'
docker-compose build
develop: kill
@echo 'Run docker container with latest file changes'
docker-compose up
#@echo $(curl -s $(docker port ngrok_tunnel 4040)/api/tunnels | grep -P "http://.*?ngrok.io" -oh)
debug:
@echo 'Build and run local container'
docker exec -it info_service sh
tests: run
@echo 'Run tests'
docker exec -it info_service python -m unittest
#docker exec -it info_service nose2 -v
#docker exec -it info_service coverage run app/test/*.py
#docker exec -it info_service coverage html app/*.py
release:
@echo 'Release new version'
@echo 'Update changelog'
@echo 'Release on Github'
@echo 'Release on Dockerhub'
docker login
docker tag market-information-service VikashKothary/market-information-service:0.0.0
docker push VikashKothary/market-information-service:0.0.0
clear-docker:
@echo 'Clear all docker images'
sh scripts/clear_docker.sh > /dev/null