-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap_vm.sh
More file actions
executable file
·45 lines (37 loc) · 835 Bytes
/
bootstrap_vm.sh
File metadata and controls
executable file
·45 lines (37 loc) · 835 Bytes
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
#!/bin/bash
#####
# Update package list, install some default packages.
#####
apt-get update
apt-get -y upgrade
apt-get install -y git curl emacs
#####
# Install docker.io, using instructions from:
# https://docs.docker.com/installation/ubuntulinux/
#####
curl -sSL https://get.docker.com/ubuntu/ | sudo sh
##
# Allow for non-root access.
##
sudo gpasswd -a vagrant docker
sudo service docker restart
##
# Set up a readme
##
TFILE=/home/vagrant/DOCKER_NOTES.md
SFILE=/vagrant/NOTES.md
if [ -f $SFILE ]; then
cp $SFILE $TFILE
fi
##
# Download the IDV file used by
# the dockerfile, if need be.
##
if [ ! -f /vagrant/dockerfile-idv/IDV5.tar.bz2 ]; then
curl -O ftp://ftp.unidata.ucar.edu/pub/netcdf/IDV5.tar.bz2
mv IDV5.tar.bz2 /vagrant/dockerfile-idv/
fi
#####
# Cleanup
#####
chown -R vagrant:vagrant /home/vagrant