-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
39 lines (31 loc) · 1.05 KB
/
makefile
File metadata and controls
39 lines (31 loc) · 1.05 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
##CastLabs jwt programing task make file
HTTP_PORT = 8080
help:
@echo "####################################"
@echo "# LP's implementation of CastLabs #"
@echo "# programing task (jwt proxy) #"
@echo "# #"
@echo "# Main availiable targets are: #"
@echo "# - build #"
@echo "# - run #"
@echo "# - test #"
@echo "####################################"
install-py-libs:
pip install PyJWT
pip install requests
run-py:
python3 castProxy.py --log=info
run-py-debug:
python3 castProxy.py --log=debug
build:
@echo "Building the Docker image"
docker build -t jwtproxyprogramingtask_castproxy .
@echo "Docker image built"
run:
@echo "Docker run will run the service and map/pat the port $(HTTP_PORT)"
docker run -d -p 0.0.0.0:$(HTTP_PORT):81/tcp jwtproxyprogramingtask_castproxy python3 castProxy.py --log=info
@echo "Done"
composer-run:
docker-compose up
test:
curl -X POST 'http://localhost:8080/whatever' --header 'testOrig: something'