Instances of a gEAR Portal are most often run within a cloud instance, where you can choose your own operating system and resources. On Google Cloud for a starter instance I chose an e2-standard-2 (2 vCPUs and 48GB RAM) with 300GB of solid state disk space. You’ll definitely want to increase the CPU as you gain more simultaneous users and RAM depending on your dataset sizes. Once you create and start the instance:
sudo apt update
sudo apt upgrade
Reboot if there are kernel updates (or just to be safe if you don’t know.)
cd && mkdir git
sudo apt install git
cd git
git clone https://github.com/IGS/gEAR.git
sudo apt install mysql-server
Follow instructions in our setup.mysql.md document
Not necessary if you want projectR to run on a Google Cloud Run service (configurable in gear.ini)
sudo apt install r-base
Please consult setup.r_rpy2.md
for packages to install in order to install requisite R packages
Not necessary if you want projectR to run in the Apache environment or do not want to setup the RabbitMQ messaging service (configurable in gear.ini)
Follow instructions in setup.rabbit_mq.md document
Follow instructions in setup.python.md document
sudo apt install apache2 apache2-dev
Follow instructions in setup.apache.md document
cd ~/git
git clone https://github.com/jorvis/gEAR.git
cd /var
sudo rm -rf www && sudo ln -s ~/git/gEAR/www
If moving to a new instance and you need to transfer data you need to shift the contents of the following directories:
$HOME/git/gEAR/www/datasets $HOME/git/gEAR/www/analyses
Permissions need to be writeable for your apache user.
cd /var/www
chmod 777 datasets analyses/* uploads/files/
The idea here is that when commiting code, we can use Github Actions to pull the code down on to the server to do things like automated testing.
(to be continued in https://github.com/IGS/gEAR/issues/632)