-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (35 loc) · 1.36 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
.PHONY: tests
up:
docker-compose up --build
down:
docker-compose down
build:
docker-compose build
streamlit:
docker exec -it streamlit_app bash
streamlit-build:
docker build . -f streamlit_app/Dockerfile -t streamlit_app:latest
streamlit-run:
docker run --name streamlit_app -p 8001:8501 --rm -it streamlit_app:latest streamlit run app.py
dash:
docker exec -it dash_app bash
dash-build:
docker build . -f dash_app/Dockerfile -t dash_app:latest
dash-run:
docker run --name dash_app -p 8002:8050 --rm -it dash_app:latest python app.py
panel:
docker exec -it panel_app bash
panel-build:
docker build . -f panel_app/Dockerfile -t panel_app:latest
panel-run:
docker run --name panel_app -p 8003:5006 --rm -it panel_app:latest panel serve app.py --autoreload --show --allow-websocket-origin=localhost:8003
tests-build:
docker build . -f tests/Dockerfile -t tests_e2e:latest
tests:
make tests-build
docker run --name tests_e2e --network="host" --rm -it tests_e2e:latest bash
tests-run:
make tests-build
docker run --name tests_e2e --network="host" --rm -it tests_e2e:latest pytest streamlit -s --base-url http://localhost:8001
docker run --name tests_e2e --network="host" --rm -it tests_e2e:latest pytest dash -s --base-url http://localhost:8002
docker run --name tests_e2e --network="host" --rm -it tests_e2e:latest pytest panel -s --base-url http://localhost:8003