informatics-lab / moc-vr

met office college vr observation platform
GNU General Public License v3.0
0 stars 1 forks source link
a-frame vr weather

Description

Prototype VR Application for viewing observations of the sky.
This project is a collaboration between the Met Office Informatics Lab & Met Office College.

Building and Running

Credentials

You will need a valid Github account and an AWS IAM with keys to access s3 and dynamoDB.

Spinning up with docker-compose in DEV

Ensure you have Docker installed.
Edit your /etc/hosts file adding docker-machine as the alias for the ip address of your docker-machine VM. Ensure https://github.com/organizations/met-office-lab/settings/applications/505508 has the following properties set:

Environment Variables

You must have the following environment variables set:

Running

Navigate to the project folder and run docker-compose -f dev-docker-compose.yml up -d --build.
Service is now running on http://docker-machine.

Tear Down

To destroy running containers use docker-compose -f dev-docker-compose.yml down

Spinning up with terraform in PROD

You must have a local AWS IAM with privileges to create the infrastructure laid out in the terraform config and a credentials.sh with the following.

File contents credentials.sh

You must have the following environment variables set:

Running

Build and run the service on AWS terraform apply terraform.
Wait a few minutes for the servers to configure etc.
Service is now running on http://moc-vr.informaticslab.co.uk.

Tear Down

Teardown service using terraform destroy terraform.

Redeploying app in Production with docker-compose

To redeploy the service on the same infrastructure (this should not be required as we have watchtower):

Current Application Architecture

Auth

AWS Services

Credits

Used to handle multipart uploads
https://github.com/richardgirges/express-fileupload