Links

6. Deploy DIGIT

Now we have all the deployments configs ready, you can now run the following command and provide the necessary details asked and this interactive installer, it will take care of the rest.
What you can try to deploy is:
  • DIGIT's core platform services
  • PGR
  • TL (Trade License)
  • PT (Property Tax)
  • WS (Water & Sewerage)
  • etc

Pre-requisites

  1. 1.
    DIGIT uses golang (required v1.13.3) automated scripts to deploy the builds onto Kubernetes - Linux or Windows or Mac
  2. 2.
    All DIGIT services are packaged using helm charts
    Installing Helm
  3. 3.
    kubectl is a CLI to connect to the kubernetes cluster from your machine
  4. 4.
    Install CURL for making api calls
  5. 5.
    Install Visualstudio IDE Code for better code/configuration editing capabilities
  6. 6.
    Install Postman to run digit bootstrap scripts

Run Deployer

  1. 1.
    Run the egov-deployer golang script from the DIGIT-Devops repo
[email protected]:# cd DIGIT-DevOps/deploy-as-code/deployer
[email protected]:# go run standalone_installer.go
#Be prepared for the following questions
1. Do you have the Kubernetes Setup?
2. Provide the path of the intented env kubeconfig file
3. Which version of the DIGIT that you want to install
4. What DIGIT Modules that you choose to install (Choose PGR)
5. All, done, Now do you want to preview the deployment manifests
6. Are you good to proceed with the DIGIT Installation
All Done.
All done, wait and watch for 10 min. The DIGIT setup is complete and the application will be running on the given URL.
Note:
  • If you do not have your domain yet, you can edit the host file entries and map the nginx-ingress-service loadbalancer id like below
    • When you find it, add the following lines to the host file, save and close the file.
    • aws-load-balancer-id digit.try.com
  • If you have a GoDaddy account or similar and a DNS records edit access you can map the load balancer id to desired DNS Create a cname record with the load balancer ID and domain.
You can now test the DIGIT application status in the command prompt/terminal by using the below command.
curl -Is http://digit.try.com/employee/login | head -n 1
OutPut:
HTTP/2 200
Note: Initially pgr-services would be in crashloopbackoff state, but after performing the post-deployment steps the pgr-services will start running.
All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.