Skip to content

Commit b587d6a

Browse files
committed
2024-13
1 parent 1fef972 commit b587d6a

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ENV DEBIAN_FRONTEND=noninteractive
55
ENV TZ=Europe/Prague
66

77
USER root
8-
RUN apt update && apt install -y git g++ libz-dev procps curl wget docker.io && curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && install -m 755 kubectl /usr/local/bin && apt clean && rm -rf /var/lib/apt/lists/*
8+
RUN apt update && apt install -y git g++ libz-dev procps curl wget docker.io vim && curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && install -m 755 kubectl /usr/local/bin && apt clean && rm -rf /var/lib/apt/lists/*
99

1010
RUN mkdir /opt/ASMSA && chown -R jovyan /opt/ASMSA
1111
RUN adduser jovyan docker
@@ -26,8 +26,9 @@ RUN pip install git+https://github.com/onnx/tensorflow-onnx
2626

2727
RUN cd /tmp && git clone --single-branch -b k8s https://github.com/ljocha/GromacsWrapper.git && pip install ./GromacsWrapper && rm -rf GromacsWrapper
2828

29-
COPY IMAGE prepare.ipynb tune.ipynb train.ipynb md.ipynb /opt/ASMSA/
30-
COPY ions.mdp minim-sol.mdp npt.mdp nvt.mdp /opt/ASMSA/
29+
#COPY IMAGE prepare.ipynb tune.ipynb train.ipynb md.ipynb /opt/ASMSA/
30+
#COPY ions.mdp minim-sol.mdp npt.mdp nvt.mdp /opt/ASMSA/
31+
COPY README-hub.md /opt/ASMSA
3132
# COPY tuning.py tuning.sh start-notebook.sh /usr/local/bin/
3233
COPY start-notebook.sh /usr/local/bin/
3334
# WORKDIR /home/jovyan

IMAGE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cerit.io/ljocha/asmsa:2024-12
1+
cerit.io/ljocha/asmsa:2024-13

README-hub.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ASMSA in JupyterHub
22

3-
When one starts the ASMSA container in JupyterHub at the first time, the (persistent) home -- this directory is empty.
3+
When one starts the ASMSA container in JupyterHub at the first time, the (persistent) home -- this directory -- is empty.
44

55
Populate it with running terminal and the command
66

start-notebook.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
source /opt/bin/activate
44

55
cd /home/jovyan
6-
mv ASMSA ASMSA.$(date | tr ' ' -)
6+
# mv ASMSA ASMSA.$(date | tr ' ' -)
77

8-
(cd /opt && tar cf - ASMSA) | tar xf -
9-
cd ASMSA
8+
[ -f README.md ] || cp /opt/ASMSA/README-hub.md README.md
9+
10+
# (cd /opt && tar cf - ASMSA) | tar xf -
11+
# cd ASMSA
1012

1113
#--SingleUserNotebookApp.default_url=/lab --SingleUserNotebookApp.max_body_size=6291456000
1214
exec jupyterhub-singleuser --ip 0.0.0.0 "$@"

0 commit comments

Comments
 (0)