-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
95 lines (86 loc) · 2.71 KB
/
Dockerfile
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
84
85
86
87
88
89
90
91
92
93
94
# Use kubeflow:jovyan_base, which is the base docker-stack image built on nvhpc image
FROM ulissigroup/kubeflow:extras-notebook
# Add channels for pytorch geometric requirements, pytorch, etc
RUN conda config --add channels pytorch
RUN conda config --add channels pyg
RUN conda config --add channels nvidia
USER $NB_UID
# Install requirements needed to use OCP requirements
RUN mamba install --quiet --yes \
'conda-merge' \
'conda-build' && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
# Install dask/dask-kubernetes, and necessary pytorch_geometric requirements along with updated CUDA
RUN mamba install --quiet --yes \
'pytorch=1.11' \
'cudatoolkit=11.3' \
'pyg=2.1.0' && \
mamba clean --all -f -y && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
RUN mamba install --quiet --yes \
'schema' \
'dask-kubernetes' \
'ipywidgets' \
'joblib' \
'numba' \
'pynvml' \
'dask>=2023.2.0' \
'dask-cuda' \
'jupyter-server-proxy' \
'networkx' \
'future' \
'fireworks' \
'sqlalchemy' \
'jsonpickle' \
'spglib' \
'scikit-learn' \
'cerberus' \
'scikit-image' \
'matplotlib' \
'python-kaleido' \
'monty' \
'maggma' \
'requests' \
'typing-extensions' \
'pydantic' \
'numba' \
'sphinx' \
'graph-tool' \
'pandoc' \
'black' \
'pyyaml' \
'pre-commit' \
'tensorboard' \
'jupyter-book' \
'tqdm' \
'wandb' \
'pillow' \
'pytest' \
'lmdb' \
'python-lmdb' \
'submitit' \
'pympler' \
'backoff' \
'pymatgen>=2022.0.17' \
'setuptools=59.5.0' \
'ase>=3.22.1' && \
mamba clean --all -f -y && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# Needed to get dimenet++ working since pyg 2.0.4 broke it
#RUN pip install --no-deps git+https://github.com/pyg-team/pytorch_geometric.git@a7e6be4
RUN pip install --no-deps git+https://github.com/superstar54/x3dase.git
RUN pip install --no-deps git+https://github.com/ulissigroup/CatKit.git
RUN pip install --no-deps git+https://github.com/brookwander/Open-Catalyst-Dataset.git
RUN pip install --no-deps git+https://github.com/lab-cosmo/chemiscope.git
RUN pip install mp-api
RUN pip install pymatgen-analysis-alloys
# Add OCP
# WORKDIR /home/jovyan
# RUN git clone https://github.com/Open-Catalyst-Project/ocp.git && \
# cd ocp && python setup.py develop
# ENV PYTHONPATH=/home/jovyan/ocp/
CMD ["sh","-c", "jupyter notebook --notebook-dir=/home/jovyan --ip=0.0.0.0 --no-browser --allow-root --port=8888 --NotebookApp.token='' --NotebookApp.password='' --NotebookApp.allow_origin='*' --NotebookApp.base_url=${NB_PREFIX}"]