This directory contains everything you need to run two virtual machines, one for RStudio Server Pro and one for RStudio Connect. Virtualization is provided on VirtualBox, the machines are managed through Vagrant, and provisioning is handled with Ansible.
- Install VirtualBox
- Install Vagrant
- Install Ansible:
pip install ansible
Retrieve a pre-built CentOS image from Vagrant Cloud:
vagrant box add centos/7
From this directory:
- To boot all machines:
vagrant up
- To make a change:
vagrant provision
- To stop all machines:
vagrant halt
- To tear down all machines:
vagrant destroy
(confirmation req. for each)
Optional:
- Boot up just the RStudio Server Pro machine:
vagrant up rsp
- Boot up just the RStudio Connect machine:
vagrant up rsc
- To SSH into RStudio Server Pro:
vagrant ssh rsp
- To SSH into RStudio Connect:
vagrant ssh rsc
The machines need to networked together, or else you wont be able to push-button publish from RSP to RSC. To that end, vagrant private networking is configured to use ip addresses 10.0.0.10 and 10.0.0.11. These addresses can be changed/adjusted as needed in the Vagrantfile.
The RStudio Server IDE will be available at 10.0.0.10:8787
, user: rstudio
password: rstudio
. The RStudio Connect Server will be available at 10.0.0.11:3939
, sign-in to create a demo admin account.