Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

nasa-jpl-memex/memex-terra

Repository files navigation

Terra

Setup

git clone [email protected]:memex-explorer/memex-terra.git

# Install python requirements
pip install -r requirements.txt

# Install JS/CSS requirements
cd src && bower update

To run the CherryPy application

cd src && python main.py

Deployment

Deployment is done using fabric, this is not in the requirements.txt file and needs to be installed separately if you want to deploy.

pip install fabric

The deploy task assumes that docker is installed on the target machine.

It sets up 3 containers: one for mongodb, girder, and terra.

Note: The following commands should be run from the deploy directory.

To deploy to a specific host(or hosts), over ssh:

fab --hosts=some-host-1,some-host-2 deploy

You can also see the docker ps output of the hosts by passing status:

fab --hosts=some-host-1,some-host-2 status