-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update requirements.txt (add simphony-osp-simlammps) * Use .binder directory * Use custom docker image for Binder * Fix minor issues in some notebooks
- Loading branch information
Showing
5 changed files
with
85 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
FROM debian:bullseye-slim | ||
|
||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
|
||
# Install required packages: Jupyter and packages required to run notebooks. | ||
RUN apt-get -qq update && \ | ||
apt-get install --yes --no-install-recommends \ | ||
wget \ | ||
python3 python3-pip \ | ||
ipython3 python3-ipykernel \ | ||
jupyter jupyter-notebook jupyter-nbconvert \ | ||
python3-jupyterlab-server \ | ||
python3-lammps \ | ||
graphviz ffmpeg && \ | ||
apt-get -qq purge && \ | ||
apt-get -qq clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Hardlink liblammps | ||
RUN ln /usr/lib/x86_64-linux-gnu/liblammps.so.0 /usr/lib/python3/dist-packages/lammps/liblammps.so | ||
|
||
# create user with a home directory | ||
ARG NB_USER | ||
ARG NB_UID | ||
ENV USER ${NB_USER} | ||
ENV HOME /home/${NB_USER} | ||
|
||
RUN adduser --disabled-password \ | ||
--gecos "Default user" \ | ||
--uid ${NB_UID} \ | ||
${NB_USER} | ||
WORKDIR ${HOME} | ||
|
||
# Make sure the contents of our repo are in ${HOME} | ||
COPY . ${HOME} | ||
RUN chown -R ${NB_UID} ${HOME} | ||
USER ${NB_USER} | ||
|
||
# Add ~/.local/bin to PATH | ||
ENV PATH="${HOME}/.local/bin:${PATH}" | ||
|
||
|
||
# Update nbconvert | ||
RUN pip install --no-cache-dir nbconvert==6.4.3 | ||
|
||
# Install requirements | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Install multiprocess | ||
RUN pip install multiprocess | ||
|
||
# Install simlammps ontology | ||
RUN wget https://raw.githubusercontent.com/simphony/simlammps/main/simphony_osp_simlammps/simlammps.ttl | ||
RUN wget https://raw.githubusercontent.com/simphony/simlammps/main/simphony_osp_simlammps/simlammps.yml | ||
RUN pico install simlammps.yml | ||
|
||
# Install city and emmo ontologies | ||
RUN pico install city emmo | ||
|
||
# Fix problem with lammps not priting output to Python variables | ||
ENV PYTHONUNBUFFERED=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters