Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. log in to: http://sagebionetworks.artifactoryonline.com/
  2. Go to the Artifacts tab
  3. Go to: libs-snapshots-local > org > sagebionetworks > [project] > [version]- SNAPSHOT > [project]-[version]-SNAPSHOT.war
  4. Click download
  5. Now log into the AWS console
  6. click on the "Elastic Beanstalk" tab
  7. Select the 'stack' (Synapse or Synapse-Staging)
  8. A number of "Environments" will be listed.  Click on "Environment Details" for the environment of interest.
  9. Click on "Deploy a different version."
  10. Click the radio button "Upload and deploy a new version"
  11. To name the .war, follow the naming convention given here: http://sagebionetworks.jira.com/wiki/display/PLFM/Branching+and+Tagging
  12. Upload the .war file that you downloaded from Artifactory.
  13. Your new .war file will now be deployed to Elastic Beanstalk.

Create or Configure MySQL RDS Service

See Synapse Database Setup for details on how to create a new schema for a new stack or instance.  The staging and production stacks use Amazon's RDS service.  Currently, both stacks use different databases in the same RDS instance.  The same RDS service also holds the ID Generator db, as well as data for Crowd.

Create Beanstalk Environments (Skip this section if using existing Environments.)

...

Create two more, so that there is one for Auth services, one for Repo services, and one for SynapseWeb

Create Host Name

Sign in to GoDaddy, select sagebase.org,  and launch Domain Manager. 

Create synapse-prod (.sagebase.org) and point it to prod-synapseweb.elasticbeanstalk.com

Ditto for auth-prod and reposvc-prod

Create or Configure MySQL RDS Service

See Synapse Database Setup for details on how to create a new schema for a new stack or instance.  The staging and production stacks use Amazon's RDS service.  Currently, both stacks use different databases in the same RDS instance.  The same RDS service also holds the ID Generator db, as well as data for Crowd.

Configure Environments

The configuration of all environments for all Synapse components should be the same, with the exception that we leave port 80 on the web app load balancer open and closed everywhere else.

...

Note that if you are setting up a .properties file, any field that is a password should be encryped.  You can encrypt strings by running StringEncrypter, passing in two arg's: (1) the string to be encoded, (2) the aforementioned encryption key.

Create Host Name

Sign in to GoDaddy, select sagebase.org,  and launch Domain Manager. 

Create synapse-prod (.sagebase.org) and point it to prod-synapseweb.elasticbeanstalk.com

Ditto for auth-prod and reposvc-prod

How to run the Data Loader

...