forked from jupyterlab-contrib/jupyterlab_code_formatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
47 lines (38 loc) · 1.22 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
version: '3'
vars:
BASE_DIR:
sh: git rev-parse --show-toplevel
env:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
tasks:
dev:build:
desc: Build docker image for dev
cmds:
- BUILDKIT_PROGRESS=plain docker compose -f docker-compose.dev.yml build
dev:up:
desc: Spin up the docker compose stack for dev
cmds:
- docker compose -f docker-compose.dev.yml up -d
- docker exec -it jupyterlab_code_formatter-dev-1 jlpm install
- docker compose -f docker-compose.dev.yml up
dev:down:
desc: Shut down the docker compose stack for dev
cmds:
- docker compose -f docker-compose.dev.yml down
dev:jlpm-watch:
desc: Run `jlpm watch` task inside the dev container.
cmds:
- docker exec -it jupyterlab_code_formatter-dev-1 jlpm watch
dev:jupyter-lab:
desc: Run `jupyter lab` task inside the dev container.
cmds:
- docker exec -it jupyterlab_code_formatter-dev-1 jupyter lab --allow-root
dev:shell:
desc: Get a shell in dev container.
cmds:
- docker exec -it jupyterlab_code_formatter-dev-1 bash
dev:format:
desc: Run formatter in dev container
cmds:
- docker exec -it jupyterlab_code_formatter-dev-1 /plugin/scripts/format.sh