# print start time
echo "DATE ||| $(date)"

# Variables
RSTUDIOVERSION='rstudio-server-0.99.792-amd64.deb'

# Add CRAN mirror to apt-get sources
add-apt-repository "deb https://cran.rstudio.com/bin/linux/ubuntu trusty/"
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9

# Swap out default Ubuntu mirror for a hopefully faster one
sed -i.bak 's/archive.ubuntu.com/mirrors.rit.edu/' /etc/apt/sources.list

# install LaTeX, nodejs, R, and base Haskell
apt-get update && apt-get install --assume-yes --no-install-recommends \
    apache2 \
    cabal-install \
    ca-certificates \
    ccache \
    gdebi \
    git \
    libcurl4-openssl-dev \
    libmysqlclient-dev \
    libpq-dev \
    libssl-dev \
    libx11-dev \
    libxml2-dev \
    lmodern \
    mysql-client \
    nodejs \
    r-base-dev \
    r-recommended \
    texlive-full

# Install Docker
wget -qO- https://get.docker.com/ | sh

# Add vagrant user to docker group
usermod -aG docker vagrant

# Verify Docker works properly
docker run hello-world

# print start time
echo "DATE ||| $(date)"

# Variables
RSTUDIOVERSION='rstudio-server-0.99.792-amd64.deb'

# Add CRAN mirror to apt-get sources
add-apt-repository "deb https://cran.rstudio.com/bin/linux/ubuntu trusty/"
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9

# Swap out default Ubuntu mirror for a hopefully faster one
sed -i.bak 's/archive.ubuntu.com/mirrors.rit.edu/' /etc/apt/sources.list

# install LaTeX, nodejs, R, and base Haskell
apt-get update && apt-get install --assume-yes \
    wget

# Install Docker
wget -qO- https://get.docker.com/ | sh

# Add vagrant user to docker group
usermod -aG docker vagrant

# Verify Docker works properly
docker run hello-world

Create a barebones vagrant machine with just docker installed
Create a barebones vagrant machine with just docker installed
