Deploy from local - Gapminder/dollar-street-framework GitHub Wiki
For deploy from local you need to have you gcp account and project created.
If you in Gapminder development team you need to have access to gapminder gcp development account.
To deploy a new instance you need to:
1. Install docker
sudo apt-get install -y docker-ce
2. Install docker-compose
Run this command to download the current stable release of Docker Compose:
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
3. Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
4. Test the installation.
docker-compose --version
> docker-compose version 1.23.2, build 1110ad01
https://cloud.google.com/sdk/ .
5. Install gcloud sdk6. Install kubernetes
gcloud components install kubectl
7. After gcloud sdk is installed on your local:
-
In your browser login into you gcp dev account.
-
Run gcloud init
gcloud init
gcloud init launches an interactive Getting Started workflow for gcloud. It performs the following setup steps:
- Authorizes gcloud and other SDK tools to access Google Cloud Platform using your user account credentials, or lets you select from accounts whose credentials are already available -- Select your development account.
- Sets properties in a gcloud configuration:
- including the current project -- Select project name. Project name consists of
MODE_ENV-NODE_ENV
- default Google Compute Engine region and zone. -- Select
europe-west-b
region.
- including the current project -- Select project name. Project name consists of
8. Run deployment script from project root
9. Install AWS CLI
For manage AWS storage you need to install AWS CLI. Please follow Amazon instructions to install AWS CLI https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
Instructions on how to create and link AWS storage with DS needs to be added here or in the separate doc.