-
Notifications
You must be signed in to change notification settings - Fork 3
/
justfile
40 lines (28 loc) · 936 Bytes
/
justfile
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
set dotenv-load
dir := justfile_directory()
image_name := env_var_or_default("DSL_IMAGE", "notebooks")
find_notebooks := "find notebooks/ -name *.ipynb ! -path *ipynb_checkpoints* ! -path *Trash*"
default:
@just --list
# Build docker image
dockerize:
docker compose build dev-notebooks
# Run a script using local docker image
run script:
docker compose run --rm {{image_name}} bundle exec ruby ./lib/run.rb -s {{script}}
# Run the test suite
test:
docker compose run --rm {{image_name}} bin/rake spec
# Get a bash shell on local docker image
bash:
docker compose run --rm {{image_name}} bash
# Start jupyterlab
lab:
docker compose up {{image_name}}
# Pull latest docker image from github container repo
pull:
docker compose pull notebooks
clean-notebooks:
{{find_notebooks}} -exec jupyter nbconvert --clear-output {} \;
adoc-notebooks: clean-notebooks
{{find_notebooks}} -exec jupyter nbconvert --to asciidoc {} \;