-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Adrian Wilke edited this page Feb 25, 2019
·
27 revisions
Based on a Ubuntu 16.04 virtual machine
sudo apt-get update
sudo apt-get upgrade --yes
sudo apt-get dist-upgrade --yes
sudo do-release-upgrade
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo docker run hello-world
Source: https://docs.docker.com/install/linux/docker-ce/ubuntu/#os-requirements
Download and unzip the latest version as ZIP file:
wget https://github.com/dice-group/nbgraderutils/archive/master.zip
unzip master.zip
cd nbgraderutils-master
Edit the file scripts/2-run-container.sh
The directory which is used to access files for backups will be overwritten:
MOUNT_DIR_HOST="/mnt/nbgjava"
# Create the docker image
# A log file build.log will be updated during the execution
sudo ./docker/1-build-image.sh
# Create the docker container
sudo ./docker/2-run-container.sh
This script copies example assignments to the docker container.
It also creates 3 test users.
sudo ./scripts/initialize.sh
sudo ./scripts/change-password.sh nbgadmin <PSW1>
sudo ./scripts/change-password.sh nbguser <PSW2>
sudo ./scripts/change-password.sh nbgtesta <PSW3>
sudo ./scripts/change-password.sh nbgtestb <PSW4>
sudo ./scripts/change-password.sh nbgtestc <PSW5>
You should be able to login and create notebooks via your browser: https://localhost:8000.
- Debug Information to handle errors
- CreateStudents Scripts to generate additional student accounts
- HTTPS Create certificates using letsencrypt
- Backup Using SSH/rsync to create backups
- Config Change the default configuration settings