Prototype VR Application for viewing observations of the sky.
This project is a collaboration between the Met Office Informatics Lab & Met Office College.
You will need a valid Github
account and an AWS IAM
with keys to access s3
and dynamoDB
.
docker-compose
in DEVEnsure 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:
Homepage URL
: http://docker-machine
Authorization callback URL
: http://docker-machine/auth/github/callback
You must have the following environment variables set:
MOC_VR_AWS_ACCESS_KEY_ID
= AWS IAM access key idMOC_VR_AWS_SECRET_ACCESS_KEY
= AWS IAM secret access key tokenMOC_VR_OAUTH_CLIENT_ID
= github (DEV) oauth2 client id tokenMOC_VR_OAUTH_CLIENT_SECRET
= github (DEV) oauth2 client secret tokenDOMAIN
= docker-machine
SESSION_SECRET
= a secret for your sessionsNavigate to the project folder and run docker-compose -f dev-docker-compose.yml up -d --build
.
Service is now running on http://docker-machine
.
To destroy running containers use docker-compose -f dev-docker-compose.yml down
terraform
in PRODYou 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.
credentials.sh
You must have the following environment variables set:
MOC_VR_AWS_ACCESS_KEY_ID
= AWS IAM access key idMOC_VR_AWS_SECRET_ACCESS_KEY
= AWS IAM secret access key tokenMOC_VR_OAUTH_CLIENT_ID
= github oauth2 client id tokenMOC_VR_OAUTH_CLIENT_SECRET
= github oauth2 client secret tokenDOMAIN
= moc-vr.informaticslab.co.uk
SESSION_SECRET
= a secret for your sessionsBuild 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
.
Teardown service using terraform destroy terraform
.
docker-compose
To redeploy the service on the same infrastructure (this should not be required as we have watchtower
):
master
branch. master
will trigger a build of the image in quay.io
. sudo su
. cd /
. docker-compose pull
to obtain the latest docker image of the app. docker-compose down
to stop and remove the current app containers. docker-compose up -d --build
to spin up the updated containers. Used to handle multipart uploads
https://github.com/richardgirges/express-fileupload