Versions Compared

Key

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

The purpose of this article is to describe how to update the backend (API) of HUMBLE.

...

URL API endpoint

Cluster

Service

prd-api.humble-online.com

Humble-multi-tenant

HUM-PRD

acc-api.humble-online.com

Development

HUM-ACC

test.humble-online.com

HUMBLE-Development

HUM-TST

cwd-prd-api.humble-online.com

CroonWolterenDrosProductieOmgeving

CWDProductieService

homij-prd-api.humble-online.com

Homij

HUM-HOM

Goto AWS to the Elastic Container Service (ECS) to see all the clusters and there details https://eu-west-1.console.aws.amazon.com/ecs/home?region=eu-west-1#/clusters

...

Each commit creates a new repository file in the repository directory name as described. The Repo file is tagged with the commit number and pipeline id.

Pipelines

Pipelines Some pipelines are running automatically and can also others must be started by hand.

branch

Pipeline

Description

develop

build_and_deploy_test_api

Creates ECR Repo and restarts the ECS Service and task automatically.

Every night at 3 am the latest version will be deployed automatically.

release

build_and_deploy_acc_api

Creates ECR Repo and restarts the ECS Service and task automatically

master

master

Creates ECR Repo only. ECS Service and task is not automatically restarted.

master (ECR)

deploy_prd_api

Does not create ECR Repo.Deploy the latest master ECR Repo to the Multi Tenant Cluster. ECS Service and task automatically.

master (ECR)

deploy_prd_cwd_api

Does not create ECR Repo. Deploy the latest master ECR Repo to the CWD Cluster

...

. ECS Service and task automatically.

master (ECR)

deploy_prd_homij_api

Does not create ECR Repo. Deploy the latest master ECR Repo to the Homij Cluster. ECS Service and task automatically.

Occasionally : Restart an ECS Service / Task using AWS

Note

Use this only when above mentioned Pipelines not working !

On the production API the new version must be installed by restarting the ECS Service and task.

  • Go to AWS ECS

  • Go to the cluster

  • Click on the Tab sheet Tasks

  • Check the checkbox and click on the Stop button

  • Read the popup message and click again on the red Stop button

  • The tasks will be stopped and restarted, the latest version of the ECR Repo will be loaded

...

Synchronize the database structure and data

...