File tree 3 files changed +49
-0
lines changed
3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM continuumio/miniconda3:4.7.12
2
+
3
+ ADD ./environment.yml ./environment.yml
4
+
5
+ RUN conda install -n base -c conda-forge mamba && \
6
+ mamba env update -n base -f ./environment.yml && \
7
+ conda clean -afy
8
+
Original file line number Diff line number Diff line change
1
+ IMAGE := informer
2
+ ROOT := $(shell dirname $(realpath $(firstword ${MAKEFILE_LIST}) ) )
3
+ PARENT_ROOT := $(shell dirname ${ROOT})
4
+ PORT := 8888
5
+
6
+ DOCKER_PARAMETERS := \
7
+ --user $(shell id -u) \
8
+ -v ${ROOT}:/app \
9
+ -w /app \
10
+ -e HOME=/tmp
11
+
12
+ init :
13
+ docker build -t ${IMAGE} .
14
+
15
+ jupyter :
16
+ docker run -d --rm ${DOCKER_PARAMETERS} -e HOME=/tmp -p ${PORT} :8888 ${IMAGE} \
17
+ bash -c " jupyter lab --ip=0.0.0.0 --no-browser --NotebookApp.token=''"
18
+
19
+ run_module : .require-module
20
+ docker run -i --rm ${DOCKER_PARAMETERS} \
21
+ ${IMAGE} ${module}
22
+
23
+ bash_docker :
24
+ docker run -it --rm ${DOCKER_PARAMETERS} ${IMAGE}
25
+
26
+ .require-module :
27
+ ifndef module
28
+ $(error module is required)
29
+ endif
Original file line number Diff line number Diff line change
1
+ name : regional_pmm
2
+ channels :
3
+ - conda-forge
4
+ - defaults
5
+ dependencies :
6
+ - python=3.6
7
+ - pip
8
+ - matplotlib==3.1.1
9
+ - numpy==1.19.4
10
+ - pandas==0.25.1
11
+ - scikit-learn==0.21.3
12
+ - pytorch==1.8.0
You can’t perform that action at this time.
0 commit comments