diff --git a/README.md b/README.md index 2f96ab95a138f4a7a2c7d9fea086f609f4257e08..1b5a23d655bcaf8b89369382c292fc29ab4e22da 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,30 @@ # my_jupyter -Un docker per jupyter notebooks basato su jupyter/datascience-notebook e con qualche kernel aggiuntivo, ad ora gnuplot e bash \ No newline at end of file +Un docker per jupyter notebooks basato su jupyter/datascience-notebook e con qualche kernel aggiuntivo, ad ora gnuplot e bash + +Operazioni preliminari da eseguire su una VM ubuntu 18.04 appena istanziata: + +``` +sudo apt update +sudo apt -y upgrade +sudo apt -y install wget apt-transport-https ca-certificates curl software-properties-common aptitude +sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - +sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" +sudo apt update +sudo apt -y install docker-ce git +sudo mkdir /mnt/jupyter +sudo chown 1000 /mnt/jupyter +sudo /usr/bin/docker run -d \ + --name jupyter \ + --rm \ + --user root \ + -p 443:8888 \ + -v /mnt/jupyter:/home/jovyan/work \ + -e GEN_CERT=yes \ + -e GRANT_SUDO=yes \ + -e JUPYTER_ENABLE_LAB=yes \ + -e NB_UID=1000 \ + -e CHOWN_HOME=yes \ + -e CHOWN_HOME_OPTS='-R' \ + infn-cc/jupyter +``` \ No newline at end of file