bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 57 forks source link

Entities Sprint 22.1a Release #21995

Closed severinbeauvais closed 1 week ago

severinbeauvais commented 1 month ago

Prior to moving into production, the following steps should be completed or confirmed:

Deployment Steps

Dev:

Test:

Prod:

Smoke Test Script

JazzarKarim commented 3 weeks ago

When deploying business-pay to DEV:

export OPENSHIFT_DOCKER_REGISTRY="image-registry.apps.silver.devops.gov.bc.ca/cc892f-tools/business-pay"
docker login -u openshift -p $(oc whoami -t)  $OPENSHIFT_DOCKER_REGISTRY
docker build --platform linux/amd64 --build-arg APP_ENV=production -t business-pay -f Dockerfile .
docker tag business-pay image-registry.apps.silver.devops.gov.bc.ca/cc892f-tools/business-pay
docker push image-registry.apps.silver.devops.gov.bc.ca/cc892f-tools/business-pay
oc -n cc892f-tools tag business-pay:latest business-pay:dev

After that, when deploying to TEST:

oc -n cc892f-tools tag business-pay:dev business-pay:test

So, basically, you just need to run one command Sev which is that last one.

severinbeauvais commented 3 weeks ago

After that, when deploying to PROD:

oc -n cc892f-tools tag business-pay:test business-pay:prod
severinbeauvais commented 2 weeks ago

Just a note that deploying Legal API took most of the afternoon and lots of help from Ops Team (Patrick, Andryi and Travis). The CD script kept failing due to some processes not completing, apparently due to insufficient CPU resources and pod scaling. Eventually Legal API was deployed manually (not using CD script).

We may need an action to review CPU allocating and pod scaling to avoid Legal API CD issue next time.

NaveenHebbale commented 1 week ago

Completed