Skip to content
Snippets Groups Projects
Commit ecdb7fec authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add startup

parent 896c008b
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
NOTEBOOK_DIR=$HOME/notebooks
cat << EOF > Dockerfile
FROM docker.km3net.de/km3book:1.0.0
RUN useradd -d $NOTEBOOK_DIR -u $(id -u) -s /bin/bash $USER
RUN apt-get install -qq -y vim
USER $USER
CMD jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --notebook-dir=$NOTEBOOK_DIR
#CMD bash
EXPOSE 22
EOF
docker build -t km3book:1.0.0 -f Dockerfile .
docker run -p 8000:8888 -p 2200:22 -u $(id -u) -v $NOTEBOOK_DIR:$NOTEBOOK_DIR -it km3book:1.0.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment