Versions Compared

Key

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

...

  • Create Service principle for aks cluster

    Code Block
    languagebash
    az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/<subscription_id>" --name sunbird_installation_version
  • Create Maxmind DB Licence key

  • Create an ssh public key

    • Code Block
      ssh-keygen -C installation_test_key -b 4096 -f /tmp/deployer_key
      vim /tmp/deployer_key.pub
  • Login to http://portal.azure.com → select Cloud shell

  • Code Block
    git clone https://github.com/project-sunbird/sunbird-devops -b releaese-<version>
    cd sunbird-devops/deploy
    vim azure-provision.yaml
    # Update the mandatory variables.
    ansible-playbook azure-provision.yaml
  • Go to the created vnet → Click on connected devices to get all ips

  • Update the IP address for the modules

    Code Block
    sed -i 's/10.1.4.4/10.0.1.6DP     vm IP/g' ./{Core,KnowledgePlatform,DataPipeline}/{common.yml,hosts} # DP
    sed -i 's/10.1.4.5/10.0.1.8DB     vm IP/g' ./{Core,KnowledgePlatform,DataPipeline}/{common.yml,hosts} # DB
    sed -i 's/10.1.4.6/10.0.1.5KP     vm IP/g' ./{Core,KnowledgePlatform,DataPipeline}/{common.yml,hosts} # KP
    sed -i 's/10.1.4.7/10.0.1.7Yarn   vm IP/g' ./{Core,KnowledgePlatform,DataPipeline}/{common.yml,hosts} # YARN
    sed -i 's/10.1.4.8/10.0.1.9Others vm IP/g' ./{Core,KnowledgePlatform,DataPipeline}/{common.yml,hosts} # OTHERS
  • Update the Variable files (common.yaml, secrets.yaml) in Core,KnowledgePlatform,DataPipeline
    Note: Blob, Docker registry secrets will be printed on the console of the azure-provision ansible task, which ran above

  • Setup Jenkins as per the doc http://docs.sunbird.org/3.9.0/developer-docs/server-installation/jenkins-setup/

  • In the Build and deploy step(http://docs.sunbird.org/3.9.0/developer-docs/server-installation/build-and-deploy/ ), skip all the prerequisites and proceed to Code Builds Section. Maxmind DBS will be present in

    Code Block
    Blob storage -> artifacts -> geoip2_db.{zip, tar.gz}
    you can give the url of artifact in Jenkins build, if promted
  • To get all the branches to build, run the https://10.20.0.14/jenkins/job/Release/job/OtherReleaseJobs/job/GetBranches/
    Replay the job and change the release-x.x.x and run the job.
    It will generate a branches.txt file, which will contain all branch info.

...