Updating My Custom Service When a new SOAJS image is published

Updating My Custom Service When a new SOAJS image is published

 

Objective


Become familiar with how the SOAJS Dashboard notifies you about SOAJS image updates & upgrades and learn how to pull and apply them and apply them on related custom services deployed in any Environment.

 

 

Steps


  1. Locate Update Notifications

  2. Understand what the Update is about

  3. Apply the Update

 

 

Step 1


The Dashboard contains a notification system that informs you whenever new image updates or upgrades are published by the SOAJS team.

These notifications appear Under Deploy pillar → Updates & Upgrades.

In Updates & Upgrades you will see notifications about new image updates or upgrades with a link so you can learn more about them.

 

 

Step 2


Follow the instructions of Step 2 & Step 3 in this page to update your SOAJS image. 

 

 

Step 3


Applying latest update on a deployed custom service in any Environment:

  1. Go to Deploy pillar → Clouds & Deployments

  2. Lookup the service you want to update

    1. Open the Service Operations menu

    2. Click Redeploy Service

Redeploy Service


This operation will load the catalog recipe again, if the catalog recipe has changed then the service will be affected then it redeploys the service with the new recipe changes.

The SOAJS deployer inside the SOAJS image will perform a git clone operation that will clone the latest code updates from branch master.

Once the code is pulled, the deployer will run an NPM INSTALL command to install the dependencies needed and will start your service.

While the deployer is running, your old service remains operational until the new service is flagged as running by either Docker Swarm or Kubernetes depending on which of the two drivers you have chosen to deploy your SOAJS cloud with.

When the new service becomes ready, then the old one will be terminated; your SOAJS Service is now updated and is using the new image upgrades.