-
Notifications
You must be signed in to change notification settings - Fork 2
/
Taskfile.yml
83 lines (69 loc) · 2.08 KB
/
Taskfile.yml
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
version: "3"
vars:
IMAGE_VERSION: "alpha3"
REGISTRY_URL: ""
IMAGE_NAME: "multigpu"
tasks:
default:
desc: "Display available tasks"
cmds:
- task --list
actionlint:
desc: "Run actionlint"
cmds:
- echo "Running actionlint"
- actionlint -config-file ./.github/actionlint.yml
markdownlint:
desc: "Run markdownlint"
cmds:
- echo "Running markdownlint"
- markdownlint-cli2 "**/*.md"
shellcheck:
desc: "Run shellcheck"
cmds:
- echo "Running shellcheck"
- shellcheck scripts/setup.sh
yamllint:
desc: "Run yamllint"
cmds:
- echo "Running yamllint"
- yamllint -c .linters/yaml-linter.yml .
pylint:
desc: "Run pylint"
cmds:
- echo "Running pylint"
- pylint **/*.py
buildx:
desc: Setup buildx
cmds:
- docker buildx create --name devops --use --bootstrap
docker-build:
desc: Build Docker Container
# deps:
# - task: buildx
cmds:
- DOCKER_BUILDKIT=1 docker buildx build -f ./docker/Dockerfile --platform linux/amd64 --platform linux/arm64 -t {{.DOCKER_REGISTRY_URL}}/library/{{.IMAGE_NAME}}:{{.IMAGE_VERSION}} .
docker-load:
desc: Build Docker Container
# deps:
# - task: buildx
cmds:
- DOCKER_BUILDKIT=1 docker buildx build -f ./docker/Dockerfile --load -t {{.DOCKER_REGISTRY_URL}}/library/{{.IMAGE_NAME}}:{{.IMAGE_VERSION}} .
docker-push:
desc: Build and Push Docker Container
# deps:
# - task: buildx
cmds:
- DOCKER_BUILDKIT=1 docker buildx build --push -f ./docker/Dockerfile --platform linux/amd64 --platform linux/arm64 -t {{.DOCKER_REGISTRY_URL}}/library/{{.IMAGE_NAME}}:{{.IMAGE_VERSION}} .
docker-run:
desc: Run Docker Container
cmds:
- docker run -p 8501:8501 {{.DOCKER_REGISTRY_URL}}/library/{{.IMAGE_NAME}}:{{.IMAGE_VERSION}}
docker-run-it:
desc: Run Docker Container
cmds:
- docker run -it -p 8501:8501 {{.DOCKER_REGISTRY_URL}}/library/{{.IMAGE_NAME}}:{{.IMAGE_VERSION}} /bin/sh
run:
desc: Run the Streamlit app
cmds:
- streamlit run Multi-GPU.py