-
Notifications
You must be signed in to change notification settings - Fork 5
Home
This project contains code that sets up a server for R Shiny, for projects mainly related to New Zealand.
The following sections document an overview of the installation process, in case someone else needs to do the same.
We set up a server, with the following resources.
- Ubuntu 16.04 LTS
- 20 GB disk space
- 4 CPU
- 4 GB of memory
- 50 GB attached extra volume for the R scripts & data
- Associated a public IP address
The servers were provided by our Cloud solution with a default firewall & security policies (e.g. passwordless SSH logins).
In order to ease installation of the packages with Ansible, we also executed a few commands.
apt update && apt upgrade -y
apt-get -y install python
Once you have the server up and ready to serve, you must execute Ansible.
ansible-playbook -v -u ubuntu -s -i hosts --limit=catalyst playbook.yml
That will take a long time, due to the list of R packages to be installed. Alternatively, you can comment out that portion from the playbook, and install it later.
You have a few different way to proceed for testing it. You can invoke R in a terminal in the server, and run some scripts with some of the modules installed. Or you can open your browser and go to the server NGINX site, which should serve the default R Shiny installation page.