-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
110 lines (90 loc) · 3.16 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.DEFAULT_GOAL := default
version := v0.1.1
.PHONY: lint ## pip install pre-commit
lint:
pre-commit install
pre-commit run --all-files
.PHONY: pt
pt:
docker buildx build -f vs-pytorch.dockerfile -t lychee0/vs-pytorch .
docker tag lychee0/vs-pytorch lychee0/vs-pytorch:latest
docker tag lychee0/vs-pytorch lychee0/vs-pytorch:dev
docker tag lychee0/vs-pytorch lychee0/vs-pytorch:cuda-dev
docker tag lychee0/vs-pytorch lychee0/vs-pytorch:cuda-${version}
docker tag lychee0/vs-pytorch lychee0/vs-pytorch:cuda
.PHONY: pt-release-dev
pt-release-dev:
docker login
docker push lychee0/vs-pytorch:dev
docker push lychee0/vs-pytorch:cuda-dev
.PHONY: pt-release
pt-release:
docker login
docker push lychee0/vs-pytorch:latest
docker push lychee0/vs-pytorch:cuda
docker push lychee0/vs-pytorch:cuda-${version}
.PHONY: pt-rocm
pt-rocm:
docker buildx build -f vs-pytorch-rocm.dockerfile -t lychee0/vs-pytorch .
docker tag lychee0/vs-pytorch lychee0/vs-pytorch:rocm-dev
docker tag lychee0/vs-pytorch lychee0/vs-pytorch:rocm-${version}
docker tag lychee0/vs-pytorch lychee0/vs-pytorch:rocm
.PHONY: pt-rocm-release-dev
pt-rocm-release-dev:
docker login
docker push lychee0/vs-pytorch:rocm-dev
.PHONY: pt-rocm-release
pt-rocm-release:
docker login
docker push lychee0/vs-pytorch:rocm
docker push lychee0/vs-pytorch:rocm-${version}
.PHONY: pg
pg:
docker buildx build -f vs-playground.dockerfile -t lychee0/vs-playground --build-arg BASE_CONTAINER_TAG=cuda .
docker tag lychee0/vs-playground lychee0/vs-playground:latest
docker tag lychee0/vs-playground lychee0/vs-playground:dev
docker tag lychee0/vs-playground lychee0/vs-playground:cuda-dev
docker tag lychee0/vs-playground lychee0/vs-playground:cuda-${version}
docker tag lychee0/vs-playground lychee0/vs-playground:cuda
.PHONY: pg-release-dev
pg-release-dev:
docker login
docker push lychee0/vs-playground:dev
docker push lychee0/vs-playground:cuda-dev
.PHONY: pg-release
pg-release:
docker login
docker push lychee0/vs-playground:latest
docker push lychee0/vs-playground:cuda
docker push lychee0/vs-playground:cuda-${version}
.PHONY: pg-rocm
pg-rocm:
docker buildx build -f vs-playground.dockerfile -t lychee0/vs-playground --build-arg BASE_CONTAINER_TAG=rocm .
docker tag lychee0/vs-playground lychee0/vs-playground:rocm-dev
docker tag lychee0/vs-playground lychee0/vs-playground:rocm-${version}
docker tag lychee0/vs-playground lychee0/vs-playground:rocm
.PHONY: pg-rocm-release-dev
pg-rocm-release-dev:
docker login
docker push lychee0/vs-playground:rocm-dev
.PHONY: pg-rocm-release
pg-rocm-release:
docker login
docker push lychee0/vs-playground:rocm
docker push lychee0/vs-playground:rocm-${version}
.PHONY: release-dev
release-dev: pt pt-release-dev pg pg-release-dev
.PHONY: release
release: pt pt-release pg pg-release
.PHONY: release-rocm-dev
release-rocm-dev: pt-rocm pt-rocm-release-dev pg-rocm pg-rocm-release-dev
.PHONY: release-rocm
release-rocm: pt-rocm pt-rocm-release pg-rocm pg-rocm-release
.PHONY: dev
dev:
docker compose -f docker-compose.yml down
docker compose -f docker-compose.yml up -d
.PHONY: dev-rocm
dev-rocm:
docker compose -f docker-compose-rocm.yml down
docker compose -f docker-compose-rocm.yml up -d