-
Notifications
You must be signed in to change notification settings - Fork 0
/
.computational-environments.sh
executable file
·48 lines (35 loc) · 1.67 KB
/
.computational-environments.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/bash
################################################################################
## Install VirtualBox
################################################################################
## Setup repository
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian xenial contrib"
## Install
sudo apt-get update
sudo apt-get -y --no-install-recommends install virtualbox-5.1
sudo apt-get -y install dkms
################################################################################
## Install Docker
################################################################################
## Dependencies
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
## TODO: Check keys
apt-key adv --list-public-keys --with-fingerprint --with-colons Docker Release | grep fpr
## Should equal
echo "9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88"
## Set up *stable* repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
## Install Community Eddition
sudo apt-get update
sudo apt-get -y install docker-ce
## Verify that Docker CE or Docker EE is installed correctly by running the hello-world image.
sudo docker run hello-world
## Create a docker group
sudo groupadd docker
sudo usermod -aG docker $USER
## Pull rocker/verse.
## To avoid sudo needs logout to reevaluate user group memberships.
sudo docker pull rocker/verse