Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build.sh #291

Open
wants to merge 46 commits into
base: release-4.3.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
1bac78f
SB-28693 chore: node version upgraded to 16
vinukumar-vs Mar 16, 2022
35e41f1
SB-28693 chore: node version upgraded to 16
vinukumar-vs Mar 16, 2022
74c5ca1
SB-28693 chore: node version upgraded to 16
vinukumar-vs Mar 16, 2022
66af3fd
SB-28693 chore: node version upgraded to 16
vinukumar-vs Mar 16, 2022
3a3f163
SB-28693 chore: node version upgraded to 14
vinukumar-vs Mar 16, 2022
7ff4db9
SB-28693 chore: node version upgraded to 14
vinukumar-vs Mar 16, 2022
163093a
SB-28693 chore: node version upgraded to 14, Added missing dateformat…
vinukumar-vs Mar 16, 2022
fa903bf
SB-28693 chore: node version upgraded to 14, Added missing dateformat…
vinukumar-vs Mar 16, 2022
af4d2a8
SB-28693 chore: node version upgraded to 14, Added missing dateformat…
vinukumar-vs Mar 16, 2022
5c63dcb
SB-28693 chore: node version upgraded to 14, Removed date-fns library…
vinukumar-vs Mar 16, 2022
9ddb29b
SB-28693 chore: node version upgraded to 14, npm cache clear.
vinukumar-vs Mar 16, 2022
84138dd
SB-28693 chore: node version upgraded to 14, updated date-fns library…
vinukumar-vs Mar 16, 2022
b5cb2d8
Issue #SB-28693 chore: CircleCI sonar command changed by using latest…
vinukumar-vs Mar 17, 2022
63b2dd7
Issue #SB-28693 chore: CircleCI sonar command changed
vinukumar-vs Mar 17, 2022
a8f36a7
Issue #SB-28693 chore: CircleCI sonar command changed
vinukumar-vs Mar 17, 2022
3a7e83e
Issue #SB-28693 chore: CircleCI sonar command changed
vinukumar-vs Mar 17, 2022
2a65009
Issue #SB-28693 chore: CircleCI sonar command changed
vinukumar-vs Mar 17, 2022
6dfd20c
Issue #SB-28693 chore: CircleCI sonar command changed
vinukumar-vs Mar 17, 2022
6b72a36
Issue #SB-28693 chore: CircleCI sonar command changed
vinukumar-vs Mar 17, 2022
3ee4af7
Issue #SB-28693 chore: CircleCI sonar command changed
vinukumar-vs Mar 17, 2022
d06cabe
Issue #SB-28693 chore: CircleCI sonar command changed
vinukumar-vs Mar 17, 2022
d1e0b32
Issue #SB-28693 chore: excluded node_module from sonar
vinukumar-vs Mar 21, 2022
d97cb63
Issue #SB-28693 chore: Changed dockre to machine to use latest cirlceCI
vinukumar-vs Mar 21, 2022
64aa176
Issue #SB-28693 chore: revert - excluded node_module from sonar
vinukumar-vs Mar 21, 2022
982f136
Merge pull request #270 from vinukumar-vs/release-4.8.0
rajeevsathish Mar 21, 2022
3de4903
Issue #SB-28693 feat: DIAL Code Context Info APIs
Mar 21, 2022
3dcf015
Issue #SB-28693 merge: Merge pull request #272 from Jayaprakash8887/S…
vinukumar-vs Mar 21, 2022
411e1b2
Issue #SB-28693 feat: DIAL Code Context Info APIs
Mar 21, 2022
976009f
Issue #SB-28693 merge: Merge pull request #273 from Jayaprakash8887/S…
vinukumar-vs Mar 21, 2022
6fc187b
Issue #SB-28693 feat: DIAL Code Context Info APIs
Mar 21, 2022
5e12c05
Issue #SB-28693 feat: DIAL Code Context Info APIs
Mar 21, 2022
ea590f3
Issue #SB-28693 merge: Merge pull request #274 from Jayaprakash8887/S…
vinukumar-vs Mar 21, 2022
a9759b6
Issue #SB-28693 feat: DIAL Code Context Info APIs
Mar 21, 2022
23d96e7
Issue #SB-28693 merge: Merge pull request #275 from Jayaprakash8887/S…
vinukumar-vs Mar 21, 2022
513b7ab
Issue #SB-28693 feat: DIAL Code Context Info APIs
Mar 24, 2022
05dbd47
Issue #SB-28693 merge: Merge pull request #276 from Jayaprakash8887/S…
vinukumar-vs Mar 24, 2022
abcf293
Added env variable to mention content upload data limit
karthik-tarento Mar 31, 2022
d9ee8dc
ISsue #SB-29457 merge: Merge pull request #277 from sunbird-cb/relea…
vinukumar-vs Apr 14, 2022
5e8fdd8
Issue #SB-29760 fix: update the dialcode images zip file name
HarishGangula May 10, 2022
32a7ac9
Issue #SB-29760 merge: Merge pull request #280 from HarishGangula/dia…
vinukumar-vs May 11, 2022
8d23ccd
Issue #SB-30224 merge: Merge pull request #284 from project-sunbird/r…
vinukumar-vs Jun 15, 2022
89cd919
Update build.sh
vayu068 Aug 7, 2022
683c683
Update build.sh
vayu068 Aug 7, 2022
ca4ca4a
Merge pull request #1 from vayu068/release-4.3.0
vayu068 Aug 7, 2022
b15515c
Revert "Update build.sh"
vayu068 Aug 7, 2022
c435c00
Merge pull request #2 from vayu068/revert-1-release-4.3.0
vayu068 Aug 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ version: 2.1
jobs:
build:
docker:
- image: circleci/node:10.0.0
working_directory: ~/project/src
- image: circleci/node:12.13.0
parallelism: 2
working_directory: ~/project/src
steps:
- checkout
- run: npm cache clean --force
- run: git submodule update --init --recursive src/libs
- run: mkdir -p opt/content && cp -r src/* opt/content/
- restore_cache:
Expand All @@ -21,15 +23,12 @@ jobs:
- run:
name: Run test cases
command: 'cd src && npm install --unsafe-perm && npm run coverage'
- run:
name: Install sonar scanner
command: 'sudo npm install -g sonarqube-scanner'

- run:
name: Sonar scanner
command: |
sonar-scanner

- run:
name: install sonar scanner
command: sudo npm install -g [email protected]
- run:
name: Run SonarScan
command: sonar-scanner

workflows:
version: 2.1
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ The code in this repository is licensed under MIT unless otherwise noted. Please
* sunbird_telemetry_sync_batch_size e.g: 20
* sunbird_learner_service_local_base_url e.g: 'http://learner-service:9000'
* sunbird_content_service_local_base_url e.g: 'http://localhost:5000'
* sunbird_content_upload_data_limit: Content upload data limit e.g.: 50mb (string)

## Setup Instructions
* Clone the project.eg .(git clone --recursive url)
* Run "git submodule update --init --recursive" to pull the latest sunbird-js-utils sub module
* Run "git submodule init"
* Run "git submodule update"
* Run "git submodule update --init --recursive" to pull the latest sunbird-js-utils sub module (if you want to pull from specific branch, "git submodule foreach git pull origin 'branch_name'" )
* Change to src folder
* Run `npm install`
* Run `node app.js`
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ name=knowledge-mw-service
node=$2
org=$3

[[ -f ImageMagick-i386-pc-solaris2.11.tar.gz ]] || wget https://www.imagemagick.org/download/binaries/ImageMagick-i386-pc-solaris2.11.tar.gz
[[ -f ImageMagick-i386-pc-solaris2.11.tar.gz ]] || wget https://imagemagick.org/archive/binaries/ImageMagick-i386-pc-solaris2.11.tar.gz
docker build -f ./Dockerfile --label commitHash=$(git rev-parse --short HEAD) -t ${org}/${name}:${build_tag} .
echo {\"image_name\" : \"${name}\", \"image_tag\" : \"${build_tag}\", \"node_name\" : \"$node\"} > metadata.json
3 changes: 2 additions & 1 deletion setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

##Setup Instructions
* Clone the project.
* Run "git submodule foreach git pull origin master" to pull the latest sunbird-js-utils sub module
* RUN "git submodule init" followed by "git submodule update" to load submodules to the latest version.
* Run "git submodule foreach git pull origin master" to pull the latest sunbird-js-utils sub module. Rename `master` to specific remote branch name if you want to load from specific branch.
* Change to src folder
* Run `npm install`
* Run `node app.js`
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sonar.projectName=sunbird-content-service
sonar.language=js
sonar.projectKey=project-sunbird_sunbird-content-service
sonar.host.url=https://sonarcloud.io
sonar.exclusions=src/test/**
sonar.exclusions=src/test/**, **/node_modules/**
sonar.javascript.lcov.reportPaths=src/coverage/lcov.info
sonar.organization=project-sunbird
sonar.projectVersion=1.0
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const contentProviderConfigPath = path.join(__dirname, '/config/contentProviderA
var contentProviderApiConfig = JSON.parse(fs.readFileSync(contentProviderConfigPath))
const telemtryEventConfig = JSON.parse(fs.readFileSync(path.join(__dirname, 'config/telemetryEventConfig.json')))

var reqDataLimitOfContentUpload = '50mb'
var reqDataLimitOfContentUpload = process.env.sunbird_content_upload_data_limit || '50mb'

const port = process.env.sunbird_content_service_port ? process.env.sunbird_content_service_port : 5000
const defaultChannel = process.env.sunbird_default_channel || 'sunbird'
Expand Down
10 changes: 6 additions & 4 deletions src/config/contentProviderApiConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
"GENERATE_DIALCODE_URI": "/dialcode/v3/generate",
"GET_DIALCODE_URI": "/dialcode/v3/read",
"UPDATE_DIALCODE_URI": "/dialcode/v3/update",
"GET_DIALCODEV4_URI": "/dialcode/v4/read",
"UPDATE_DIALCODEV4_URI": "/dialcode/v4/update",
"LIST_DIALCODE_URI": "/dialcode/v3/list",
"CONTENT_LINK_DIALCODE_URI": "/content/v3/dialcode/link",
"SEARCH_DIALCODE_URI": "/dialcode/v3/search",
Expand All @@ -38,25 +40,25 @@
"UPDATE_COLLABORATOR": "/content/v1/collaborator/update",
"RESERVE_DIALCODE": "/content/v3/dialcode/reserve",
"RELEASE_DIALCODE": "/content/v3/dialcode/release",

"CHANNEL_URI": "/channel/v3/read",
"CHANNEL_LIST_URI": "/channel/v3/list",
"CHANNEL_SEARCH_URI": "/channel/v3/search",
"CHANNEL_CREATE_URI": "/channel/v3/create",
"CHANNEL_UPDATE_URI": "/channel/v3/update",

"FRAMEWORK_URI": "/framework/v3/read",
"FRAMEWORK_LIST_URI": "/framework/v3/list",
"FRAMEWORK_CREATE_URI": "/framework/v3/create",
"FRAMEWORK_UPDATE_URI": "/framework/v3/update",
"FRAMEWORK_COPY_URI": "/framework/v3/copy",
"FRAMEWORK_PUBLISH_URI":"/framework/v3/publish",

"FRAMEWORK_TERM_URI": "/framework/v3/term/read",
"FRAMEWORK_TERM_SEARCH_URI": "/framework/v3/term/search",
"FRAMEWORK_TERM_CREATE_URI": "/framework/v3/term/create",
"FRAMEWORK_TERM_UPDATE_URI": "/framework/v3/term/update",

"FRAMEWORK_CATEGORY_INSTANCE_URI": "/framework/v3/category/read",
"FRAMEWORK_CATEGORY_INSTANCE_SEARCH_URI": "/framework/v3/category/search",
"FRAMEWORK_CATEGORY_INSTANCE_CREATE_URI": "/framework/v3/category/create",
Expand Down
2 changes: 1 addition & 1 deletion src/libs
Loading