Commit 1c854527 authored by Luigi Sbailo's avatar Luigi Sbailo
Browse files

Fix workdir

parent 7b6ef526
......@@ -254,43 +254,48 @@ RUN ln -s /opt/tutorials/*/assets/* .
WORKDIR $TUTORIALS_HOME/data
RUN mkdir data && ln -s /opt/tutorials/*/data/* .
WORKDIR $HOME
# Testing tutorials
RUN cp -r tutorials test_tutorials
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/ARISE.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/atomic_features.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/clustering_tutorial.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/cmlkit.ipynb"
# RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/CO2_SGD.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/compressed_sensing.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/convolutional_nn.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/decision_tree.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/descriptor_role.ipynb"
# RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/error_estimates.ipynb"
# RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/exploratory_analysis.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/gap_si_surface.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/grain_boundaries.ipynb"
# RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/kaggle_competition.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/krr4mat.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/nn_regression.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/perovskites_tolerance_factor.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=5000 --to notebook --execute "test_tutorials/query_nomad_archive.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/sgd_alloys_oxygen_reduction_evolution.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/soap_atomic_charges.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/tcmi.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "test_tutorials/tetradymite_PRM2020.ipynb"
WORKDIR $HOME/test_tutorials
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "ARISE.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "atomic_features.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "clustering_tutorial.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "cmlkit.ipynb"
# RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "CO2_SGD.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "compressed_sensing.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "convolutional_nn.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "decision_tree.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "descriptor_role.ipynb"
# RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "error_estimates.ipynb"
# RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "exploratory_analysis.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "gap_si_surface.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "grain_boundaries.ipynb"
# RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "kaggle_competition.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "krr4mat.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "nn_regression.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "perovskites_tolerance_factor.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=5000 --to notebook --execute "query_nomad_archive.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "sgd_alloys_oxygen_reduction_evolution.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "soap_atomic_charges.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "tcmi.ipynb"
RUN jupyter nbconvert --ExecutePreprocessor.timeout=1000 --to notebook --execute "tetradymite_PRM2020.ipynb"
# Remove following tutorial because test is too long
# RUN jupyter nbconvert --ExecutePreprocessor.timeout=20000 --to notebook --execute "test_tutorials/domain_of_applicability.ipynb"
# RUN jupyter nbconvert --ExecutePreprocessor.timeout=20000 --to notebook --execute "domain_of_applicability.ipynb"
RUN rm -r test_tutorials
# ================================================================================
# Switch back to jovyan to avoid accidental container runs as root
# ================================================================================
WORKDIR $HOME
# Fix permissions
RUN fix-permissions $TUTORIALS_HOME \
&& fix-permissions $HOME/.local/share/jupyter \
&& fix-permissions $CONDA_DIR
# ================================================================================
# Switch back to jovyan to avoid accidental container runs as root
# ================================================================================
USER $NB_UID
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment