Discussion forum: Deployment process for all the services.
This document will help to deploy all the services which are parts of the Discussion forum
nodebb (along with the plugins)
Discussion Middleware
sunbird portal
Nodebb:
Git repository: https://github.com/project-sunbird/sunbird-nodebb
this repository needs to be deployed by DevOps with the latest branch. The repo contains a docker file that tells the commands to be run.
There there will be some steps that install the necessary plugins (with the latest commit hash)
RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-oidc.git#<latest commit hash>
RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-api.git#<latest commit hash>
RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-telemetry.git#<latest commit hash>
RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-azure-storage.git#<latest commit hash>
RUN npm install https://github.com/NodeBB/nodebb-plugin-write-api.git#<latest commit hash>
The above steps install the plugins with the latest commit hashes of the respective plugins.
So if any code change has been done then the commit hash also needs to be updated so that the plugins are also updated.
Note: Sunbird portal nodebb is deployed with the version v1.16.0
2. Discussions-middleware:
Git repository: https://github.com/Sunbird-Ed/discussions-middleware
This repo also needs to be deployed by the DevOps team with the latest branch.
Below environment variables needs to be added:
nodebb_service_url => https://dev.abcd.org
authorization_token => nodebb master token
nodebb_api_slug => /discussions/api
3. Sunbird portal:
Git repository: https://github.com/Sunbird-Ed/SunbirdEd-portal
This repo also needs to be deployed by the DevOps team with the latest branch.
Below environment variable needs to be added:
discussions_middleware => http://localhost:3002