Versions Compared

Key

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

...

  1. Follow the instructions on the Platform Bootstrap to set up local backend stack. 
  2. Build and launch a local backend stack.  From an up-to-date clone of Synapse-Repository-Services on your local box:

    1. Build the local stack by running 'mvn clean install -Dorg.sagebionetworks.database.drop.schema=true'.

    2. Now launch it:
      1. cd integration-test
      2. mvn cargo:run
    3. Verify the services are running correctly by visiting http://localhost:8080/services-repository-develop-SNAPSHOT/repo/v1/version you should see something like this:

      Code Block
      {"version":"develop-SNAPSHOT"}


  3. In the SWC project root pom.xml, change the synapse.version tag to develop-SNAPSHOT (so that the dependency is pointing to the code that's running on your local stack).
  4. Set the repository endpoints in your maven settings.xml file by adding the following properties:
<org.sagebionetworks.

...

...

...

<org.sagebionetworks.searchservice.endpoint>http://localhost:8080/services-repository-develop-SNAPSHOT/</org.sagebionetworks.searchservice.endpoint>
<org.sagebionetworks.portal.endpoint>http://127.0.0.1:8888/Portal.html</org.sagebionetworks.portal.endpoint>

...

Restart the Portal app to load these properties from settings.xml.

How to point to

...

a remote stack

Set the repository endpoints endpoint parameters in your maven settings.xml file by adding the following properties :

<org.sagebionetworks.authenticationservice.privateendpoint>https://auth-staging.prod.sagebase.org/auth/v1</org.sagebionetworks.authenticationservice.privateendpoint>
<org.sagebionetworks.authenticationservice.publicendpoint>https://auth-staging.prod.sagebase.org/auth/v1</org.sagebionetworks.authenticationservice.publicendpoint>
<org.sagebionetworks.repositoryservice.endpoint>https://repo-staging.prod.sagebase.org/repo/v1</org.sagebionetworks.repositoryservice.endpoint>
<org.sagebionetworks.fileservice.endpoint>https://file-staging.prod.sagebase.org/file/v1</org.sagebionetworks.fileservice.endpoint>
<org.sagebionetworks.searchservice.endpoint>https://search-staging.prod.sagebase.org/</org.sagebionetworks.searchservice.endpoint>
<org.sagebionetworks.portal.endpoint>http://127.0.0.1:8888/Portal.html</org.sagebionetworks.portal.endpoint>

Restart the Portal app to load these properties from settings.xml.

How to point to prod

Set the repository endpoints in your maven settings.xml file by adding the following properties(update the values to match the stack that you want to point to):

<org.sagebionetworks.
authenticationservice.privateendpoint>https://auth-prod.prod.sagebase.org/auth/v1</org
stack.instance>232</org.sagebionetworks.
authenticationservice
stack.
privateendpoint>
instance>
<org.sagebionetworks.
authenticationservice.publicendpoint>https://auth-prod.prod.sagebase.org/auth/v1<
stack>prod</org.sagebionetworks.
authenticationservice.publicendpoint>
stack>
<org.sagebionetworks.
repositoryservice
stack.
endpoint>https://
repo
-prod
.
prod.sagebase.org/repo/v1</
beanstalk.number>0</org.sagebionetworks.
repositoryservice.endpoint>
<org.sagebionetworks.fileservice.endpoint>https://file-prod.prod.sagebase.org/file/v1</org.sagebionetworks.fileservice.endpoint>
stack.repo.beanstalk.number>
<org.sagebionetworks

...

.

...

...

</org.sagebionetworks.portal.

...

endpoint>

Restart the Portal app to load these properties from settings.xml.

...