-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (40 loc) · 2.46 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
serve:
panel serve Dashboard.py --prefix analogs --autoreload --log-level=debug --static-dirs fonts=./fonts
profile:
panel serve Dashboard.py --prefix analogs --autoreload --log-level=debug --admin --profiler snakeviz --static-dirs fonts=./fonts
build-local:
docker build --target base -t analogues-spatiaux:dev .
run-local:
docker rm -f analogues-spatiaux-en analogues-spatiaux-fr
docker run -p 5006:5006 -d --mount type=volume,source=analogues-spatiaux-share,target=/notebook_dir/writable-workspace -e LANG=en -e BOKEH_ALLOW_WS_ORIGIN=* --name analogues-spatiaux-en analogues-spatiaux:dev
docker run -p 5007:5006 -d --mount type=volume,source=analogues-spatiaux-share,target=/notebook_dir/writable-workspace -e LANG=fr -e BOKEH_ALLOW_WS_ORIGIN=* --name analogues-spatiaux-fr analogues-spatiaux:dev
rm-local:
docker stop analogues-spatiaux-en;docker rm analogues-spatiaux-en
docker stop analogues-spatiaux-fr;docker rm analogues-spatiaux-fr
docker volume rm analogues-spatiaux-share
build-test:
docker build -t analogues-spatiaux:test-locust ./test/test_locust
docker build -t analogues-spatiaux:test-loadwright ./test/test_loadwright
run-test-locust:
docker run -d -p 8089:8089 analogues-spatiaux:test-locust
run-test-loadwright:
docker run -d analogues-spatiaux:test-loadwright
rm-test:
CONTAINER_NAME="$(shell docker ps -a -q --filter ancestor='analogues-spatiaux:test-locust' --format="{{.ID}}")";docker stop $$CONTAINER_NAME;docker rm $$CONTAINER_NAME
CONTAINER_NAME="$(shell docker ps -a -q --filter ancestor='analogues-spatiaux:test-loadwright' --format="{{.ID}}")";docker stop $$CONTAINER_NAME;docker rm $$CONTAINER_NAME
build-release:
docker build -t registry.gitlab.com/crim.ca/clients/ccdp/analogues-spatiaux:dev .
push-release:
docker push registry.gitlab.com/crim.ca/clients/ccdp/analogues-spatiaux:dev
deploy-staging:
IAC_CONFIG=/home/grol/venv/ccdp/analogues-spatiaux-iac/base.yaml,/home/grol/venv/ccdp/analogues-spatiaux-iac/staging.yaml IAC_ENV_LOCAL_FILE=/mnt/c/Users/gruweol/.iac-openstack/env.local make -C ../../iac-openstack iac-update-stack
deploy-prod:
IAC_CONFIG=/home/grol/venv/ccdp/analogues-spatiaux-iac/base.yaml,/home/grol/venv/ccdp/analogues-spatiaux-iac/prod.yaml IAC_ENV_LOCAL_FILE=/mnt/c/Users/gruweol/.iac-openstack/env.local make -C ../../iac-openstack iac-update-stack
build-deploy-staging:
$(MAKE) build-release
$(MAKE) push-release
$(MAKE) deploy-staging
build-deploy-prod:
$(MAKE) build-release
$(MAKE) push-release
$(MAKE) deploy-prod