Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tutorial-krr4mat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nomad-lab
ai-toolkit
tutorial-krr4mat
Commits
614ac010
Commit
614ac010
authored
Feb 26, 2024
by
Adam Fekete
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
01a65ba5
No related branches found
No related tags found
No related merge requests found
Pipeline
#195266
failed
Feb 26, 2024
Stage: build
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile.backup
+124
-0
124 additions, 0 deletions
Dockerfile.backup
requirements.in
+2
-23
2 additions, 23 deletions
requirements.in
setup.py
+0
-17
0 additions, 17 deletions
setup.py
with
126 additions
and
40 deletions
Dockerfile.backup
0 → 100644
+
124
−
0
View file @
614ac010
ARG
BUILDER_BASE_IMAGE=jupyter/tensorflow-notebook:2ce7c06a61a1
FROM
$BUILDER_BASE_IMAGE
# ================================================================================
# Linux applications and libraries
# ================================================================================
USER
root
ENV
DEBIAN_FRONTEND noninteractive
RUN
apt update
--yes
\
&&
apt
install
--yes
--quiet
--no-install-recommends
\
build-essential
\
# g++-10
\
# gcc-10
\
cmake
\
git
\
# libblas-dev
\
# liblapack-dev
\
lsof
\
libgsl-dev
\
&&
apt clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
# RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
# RUN update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-10 100
# ================================================================================
# QMMLPACK
# ================================================================================
WORKDIR
/opt/qmmlpack
COPY
dependencies/qmmlpack .
USER
root
ENV
PYTHONPATH /opt/qmmlpack/python:$PYTHONPATH
# Workaround: for the test TMPDIR has to be defined
ENV
TMPDIR "/tmp/"
# Workaround: the build precess fails witout pytest installed
USER
${NB_UID}
RUN
pip
install
--no-cache-dir
\
pytest
\
&&
fix-permissions
"
${
CONDA_DIR
}
"
\
&&
fix-permissions
"/home/
${
NB_USER
}
"
USER
root
RUN
./make
--debug
--verbose
cpp
--include-path
/usr/include/gsl/
--library-path
/usr/lib/
RUN
./make
--debug
--verbose
python
--include-path
/usr/include/gsl/
--library-path
/usr/lib/
RUN
chown
-R
$NB_USER
:
$NB_GID
$PWD
USER
$NB_USER
#RUN make -v install
#
# # The CML_PLUGINS environment variable tells cmlkit to register the cscribe plugin, which provides the dscribe interface.
# ENV CML_PLUGINS "cscribe"
# ENV CML_DATASET_PATH $HOME/tutorials/data/cmlkit/
# # ================================================================================
# # CMLKIT
# # ================================================================================
#
# WORKDIR /opt/cmlkit
#
# COPY dependencies/cmlkit ./cmlkit
# USER root
# RUN pip install ./cmlkit
# ================================================================================
# Python environment
# ================================================================================
USER
${NB_UID}
# RUN mamba install --yes \
# 'numpy' \
# 'pandas' \
# 'hdbscan' \
# 'scikit-learn' \
# 'plotly' \
# 'bokeh' \
# 'matplotlib' \
# 'ipywidgets' \
# && mamba clean --all -f -y \
# && fix-permissions "${CONDA_DIR}" \
# && fix-permissions "/home/${NB_USER}"
# RUN pip install --no-cache-dir --index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple \
# 'nomad-lab' \
# 'numpy' \
# 'pandas' \
# 'hdbscan' \
# 'scikit-learn' \
# 'plotly' \
# 'bokeh' \
# 'matplotlib' \
# 'ipywidgets' \
# 'jupyter_jsmol==2021.3.0' \
# && fix-permissions "${CONDA_DIR}" \
# && fix-permissions "/home/${NB_USER}"
# # Install from the requirements.txt file
# COPY --chown=${NB_UID}:${NB_GID} requirements.in /tmp/
# RUN pip install --no-cache-dir --requirement /tmp/requirements.in \
# && fix-permissions "${CONDA_DIR}" \
# && fix-permissions "/home/${NB_USER}"
# ================================================================================
# Switch back to jovyan to avoid accidental container runs as root
# ================================================================================
USER
${NB_UID}
WORKDIR
${HOME}
COPY
--chown=${NB_UID}:${NB_GID} data/ data/
COPY
--chown=${NB_UID}:${NB_GID} assets/ assets/
COPY
--chown=${NB_UID}:${NB_GID} krr4mat.ipynb .
This diff is collapsed.
Click to expand it.
requirements.in
+
2
−
23
View file @
614ac010
# pip-compile requirements.in -o requirements.txt
tensorflow==1.13.1
keras==2.2.4
git+https://github.com/raghakot/keras-vis.git
numpy==1.21.6
scipy==1.2.3
h5py==2.9.0
matplotlib
scikit-image==0.15.0
protobuf~=3.20.0
# pandas
# scikit-image
# scikit-learn
# tensorflow-cpu==1.15.0
# keras
# keras-vis
# numpy==1.21.6
# scipy==1.2.3
# matplotlib
# scikit-image==0.15.0
# protobuf~=3.20.0
# Succesfull test of this tutorial was conducted for:
# 'tensorflow==1.13.1', 'keras==2.2.4', 'numpy==1.16.4', 'scipy==1.1.0', 'matplotlib', 'pandas', 'seaborn', 'pymatgen==2020.3.13', 'sklearn'
cscribe
seaborn
\ No newline at end of file
This diff is collapsed.
Click to expand it.
setup.py
deleted
100644 → 0
+
0
−
17
View file @
01a65ba5
import
json
from
setuptools
import
setup
,
find_packages
with
open
(
'
metainfo.json
'
)
as
file
:
metainfo
=
json
.
load
(
file
)
setup
(
name
=
'
krr4mat
'
,
version
=
'
0.1
'
,
author
=
'
,
'
.
join
(
metainfo
[
'
authors
'
]),
author_email
=
metainfo
[
'
email
'
],
url
=
metainfo
[
'
url
'
],
description
=
metainfo
[
'
title
'
],
long_description
=
metainfo
[
'
description
'
],
packages
=
find_packages
(),
install_requires
=
[
'
seaborn
'
,
'
cscribe
'
],
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment