-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (56 loc) · 2.05 KB
/
Makefile
File metadata and controls
73 lines (56 loc) · 2.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
help: ## make help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
build-gc: ## -> make run-gc or make shell-gc
docker build -t python-workshop-gc -f gc.Dockerfile .
run-gc:
docker run -it --rm \
-v ./gc:/d3fau1t/workshop/gc \
-v ./pyproject.toml:/d3fau1t/workshop/pyproject.toml \
-v ./poetry.lock:/d3fau1t/workshop/poetry.lock \
python-workshop-gc
shell-gc:
docker run -it --rm \
-v ./gc:/d3fau1t/workshop/gc \
python-workshop-gc \
/bin/bash
build-cc: ## -> make shell-cc
docker build -t python-workshop-concurrent -f concurrent.Dockerfile .
shell-cc:
docker run -it --rm \
-v ./concurrent:/d3fau1t/workshop \
python-workshop-concurrent \
/bin/bash
build-cc-py312: ## -> make shell-cc-py312
docker build -t python-workshop-concurrent-py312 -f concurrent-py312.Dockerfile .
shell-cc-py312:
docker run -it --rm \
-v ./concurrent:/d3fau1t/workshop \
python-workshop-concurrent-py312 \
/bin/bash
build-list-vs-array: ## -> make shell-list-vs-array
docker build -t python-workshop-list-vs-array -f list-vs-array.Dockerfile .
shell-list-vs-array:
docker run -it --rm \
-v ./list-vs-array:/d3fau1t/workshop/list-vs-array \
python-workshop-list-vs-array \
/bin/bash
build-use-pydantic-v1: ## -> make shell-use-pydantic-v1
docker build -t python-workshop-use-pydantic-v1 -f use-pydantic-v1.Dockerfile .
shell-use-pydantic-v1:
docker run -it --rm \
python-workshop-use-pydantic-v1 \
/bin/bash
build-use-pydantic-v2: ## -> make shell-use-pydantic-v2
docker build -t python-workshop-use-pydantic-v2 -f use-pydantic-v2.Dockerfile .
shell-use-pydantic-v2:
docker run -it --rm \
python-workshop-use-pydantic-v2 \
/bin/bash
build-json-vs-orjson: ## -> make shell-json-vs-orjson
docker build -t python-workshop-json-vs-orjson -f json-vs-orjson.Dockerfile .
shell-json-vs-orjson:
docker run -it --rm \
-v ./json-vs-orjson:/d3fau1t/workshop \
-p 12800:12800 \
python-workshop-json-vs-orjson \
/bin/bash