-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
35 lines (33 loc) · 1.01 KB
/
docker-compose.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
version: '3.4'
services:
julia_build:
image: julia:1.9.2-bullseye
volumes:
- ./requirements/classes/${CLASS}:/tmp/env/
- ./scripts:/tmp/scripts/
working_dir: /tmp/env
command: >
bash -c "julia -e 'import Pkg; Pkg.activate(\"julia_env\");
include(expanduser(\"/tmp/scripts/install_julia_packages.jl\"));
include(expanduser(\"/tmp/env/requirements.jl\"));
install(julia_packages);
'"
jh_image:
image: ${CLASS}:latest
build:
context: .
target: ${TARGET}
cache_from:
- us-east1-docker.pkg.dev/jupyterhub-docker-images/${CLASS}:latest
args:
CLASS: ${CLASS}
SQLITE: ${SQLITE:-false}
PYTHON_VERSION: ${PYTHON_VERSION:-3.9.17}
volumes:
- ./requirements/out:/home/jovyan/tmp/out
user: root
command: >
bash -c "
conda env export --name ${CLASS} > /home/jovyan/tmp/out/environment.yml &&
conda env export --name ${CLASS} --no-build > /home/jovyan/tmp/out/environment.nb.yml
"