Skip to content

GSS Run Book

How to contribute your code?

Backend

  1. fork the staging repo: https://sqbu-github.cisco.com/SAP/global-service-status-service
  2. git clone the code from your remote fork repo
  3. (OPTION) modify application.yaml (global-service-status-service/server/src/main/resources/application.yaml) locally with your own awsAccessKeyId and awsSecretAccessKey.

run_book_1.png After the provision of AWS privilege, you can create you own awsAccessKeyId and awsSecretAccessKey. Once expired, you can login AWS(https://cloudsso.cisco.com/idp/startSSO.ping?PartnerSpId=https://signin.aws.amazon.com/saml to refresh. run_book_2.png 4. start backend coding 5. debug and test

cd {codeBase}/docker-dev; docker-compose up -d --build
make sure the PostgreSQL and REDIS are running successfully in docker.

a) configure the properties of PostgreSQL DB run_book_3.png

b) init the DB schema by running all scripts in global-service-status\global-service-status-service\migration\postgres\scripts in PostgreSQL console

c) add some test data by running all sql scripts in attachment file(TestData.zip) in PostgreSQL console

d) debug "GlobalServiceStatusServiceApplication" with your IDE 6. checkin your code a) push your branch to github after the local test

b) stage: create a PR from fork stage to SAP stage[default deploy to dev env and approve deploy to stage env]

c) master: create a PR from SAP stage to SAP master[default deploy to stage and approve deploy to prod env] you will receive a message at the space 'Build&Deploy Notifications' after code is merged, see the Note below

Frontend

  1. fork the staging repo: https://sqbu-github.cisco.com/SAP/global-service-status-webui-vuej
  2. git clone the code from your remote fork repo
  3. establish a local database connection and initialize local test data
  4. start backend coding
  5. debug and test
    install node.js and npm
    run command: npm run serve (will show local status page)
  6. checkin your code

    a) push your branch to github after the local test

    b) stage: create a PR from fork stage to SAP stage[default deploy to dev env and approve deploy to stage env]

    c) master: create a PR from SAP stage to SAP master[default deploy to stage and approve deploy to prod env]

    you will receive a message at the space 'Build&Deploy Notifications' after code is merged, see the Note below
    

Note

  1. The result of the Jenkins build package and each deployed approve link will be sent to the spark room: "Build&Deploy Notifications". So no matter which environment is deployed, you need to click the link of the room to do the approve operation.
  2. Jenkins job: (build package)
    backend: https://engci-private-sjc.cisco.com/jenkins/pda/view/Portal/job/GSS%20Pipeline2/job/global-service-status-service
    frontend: https://engci-private-sjc.cisco.com/jenkins/pda/view/Portal/job/GSS%20Pipeline2/job/global-service-status-webui-vuejs