Installer for data-pack-importer
Vagrant isolates all dependencies and requirements into a Virtual Machine (Ubuntu 16.04). The "host" is your local computer while the "guest" is a isolated VM.
This is meant to run on almost any system. However, you will need a substantial amount of RAM (4 GB) and disk space (5 GB) - if you're on a slow computer (i.e. only 4GB RAM), see below for details.
- Install VirtualBox.
- Install Vagrant.
- If you're on Windows 7, update Powershell to v4 (ref)
- Clone this repository
- Open a terminal and change into repository i.e. with
cd /path/to/repo
- In the terminal:
vagrant box add ubuntu/xenial64
- In the terminal:
vagrant up
(this takes a while if doing it for the first time) until finished. Eventually you should see e.g.==> default: Notice: Finished catalog run in 123.45 seconds
- Open web browser: http://localhost:8787, username:
vagrant
password:vagrant
- The location for shared files between host and guest is within the same repository.
- Check status:
vagrant status
- To stop vagrant:
vagrant halt
in the host machine - To update vagrant with code changes from the
data-pack-importer
repository, call either:install_github(repo="jason-p-pickering/data-pack-importer", ref="prod")
in the R console, or runvagrant up --provision
from the host machine. - If you experience that Vagrant takes a lot of CPU, you can change it in the
Vagrantfile
before callingvagrant up
and set it tov.cpus = 1
and maybe alsov.memory = 2048
- To SSH into the guest machine, use
vagrant ssh
- To see history of RStudio commands, ssh into the machine and open the file e.g. with
less ~/.rstudio/history_database