-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-2.6.0' into release-2.5.0
- Loading branch information
Showing
19 changed files
with
178 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../roles/keycloak-deploy/files/python-keycloak-0.12.0/python_keycloak.egg-info/requires.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
requests==2.18.4 | ||
requests==2.20.0 | ||
httmock==1.2.5 | ||
python-jose==1.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- name: Remove knowledge-mw service | ||
shell: "docker service rm knowledge-mw-service" | ||
ignore_errors: yes | ||
|
||
- name: Deploy knowledge-mw service | ||
shell: "docker service create --with-registry-auth --replicas {{ content_replicas }} -p 5000:5000 --name knowledge-mw-service --hostname knowledge-mw-service --reserve-memory {{ content_reservation_memory }} --limit-memory {{ content_limit_memory }} --limit-cpu {{ content_limit_cpu }} --reserve-cpu {{ content_reservation_cpu }} --health-cmd 'wget -qO- knowledge-mw-service:5000/service/health || exit 1' --health-timeout 3s --health-retries 3 --network application_default --env-file /home/deployer/env/sunbird_knowledge-mw-service.env {{hub_org}}/{{image_name}}:{{image_tag}}" | ||
args: | ||
chdir: /home/deployer/stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- name: Remove learning service | ||
shell: "docker service rm learning-service" | ||
ignore_errors: yes | ||
|
||
- name: Deploy learning service | ||
shell: "docker service create --with-registry-auth --replicas {{ learner_replicas }} -p 9696:9000 --name learning-service --hostname learning-service --reserve-memory {{ learner_reservation_memory }} --limit-memory {{ learner_limit_memory }} --limit-cpu {{ learner_limit_cpu }} --reserve-cpu {{ learner_reservation_cpu }} --health-cmd 'wget -qO- learning-service:9000/health || exit 1' --health-timeout 3s --health-retries 3 --network application_default --env-file /home/deployer/env/sunbird_learning-service.env {{hub_org}}/{{image_name}}:{{image_tag}}" | ||
args: | ||
chdir: /home/deployer/stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
ansible/roles/stack-sunbird/templates/sunbird_learning-service.env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Cassandra Configuration | ||
cassandra.lp.connection={{ lp_cassandra_connection }} | ||
cassandra.lpa.connection={{ dp_cassandra_connection }} | ||
|
||
# Redis Configuration | ||
redis.host=localhost | ||
redis.port=6379 | ||
redis.maxConnections=128 | ||
|
||
#--Maximum Content Package File Size Limit in Bytes (50 MB) | ||
MAX_CONTENT_PACKAGE_FILE_SIZE_LIMIT=52428800 | ||
|
||
#--Maximum Asset File Size Limit in Bytes (20 MB) | ||
MAX_ASSET_FILE_SIZE_LIMIT=20971520 | ||
|
||
#--No of Retry While File Download Fails | ||
RETRY_ASSET_DOWNLOAD_COUNT=1 | ||
|
||
#Current environment | ||
cloud_storage.env=dev | ||
|
||
# Configuration | ||
graph.dir=/data/graphDB | ||
akka.request_timeout=30 | ||
environment.id={{ environment_id }} | ||
graph.ids=["domain"] | ||
graph.passport.key.base={{ graph_passport_key }} | ||
route.domain={{ learning_neo4j_bolt_url }} | ||
route.bolt.write.domain={{ learning_write_elb_url }} | ||
route.bolt.read.domain={{ learning_read_elb_url }} | ||
route.all={{ language_neo4j_bolt_url }} | ||
route.bolt.write.all={{ language_write_elb_url }} | ||
route.bolt.read.all={{ language_read_elb_url }} | ||
|
||
shard.id={{ mw_shard_id }} | ||
platform.auth.check.enabled=false | ||
platform.cache.ttl=3600000 | ||
|
||
#Top N Config for Search Telemetry | ||
telemetry_env=dev | ||
|
||
installation.id=ekstep | ||
|
||
channel.default=in.ekstep | ||
|
||
content.cache.ttl=86400 | ||
content.cache.read=true | ||
content.cache.hierarchy=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@Library('deploy-conf') _ | ||
node() { | ||
try { | ||
stage('checkout public repo') { | ||
cleanWs() | ||
checkout scm | ||
} | ||
|
||
stage('deploy') { | ||
values = docker_params() | ||
currentWs = sh(returnStdout: true, script: 'pwd').trim() | ||
ansiblePlaybook = "$currentWs/ansible/deploy.yml" | ||
ansibleExtraArgs = "--tags \"stack-sunbird\" --extra-vars \"hub_org=$hub_org image_name=$values.image_name image_tag=$values.image_tag service_name=knowledge-mw-service deploy_knowledge_mw=True\" --vault-password-file /var/lib/jenkins/secrets/vault-pass" | ||
values.put('currentWs', currentWs) | ||
values.put('ansiblePlaybook', ansiblePlaybook) | ||
values.put('ansibleExtraArgs', ansibleExtraArgs) | ||
ansible_playbook_run(values) | ||
archiveArtifacts 'metadata.json' | ||
currentBuild.description = "Image: ${values.image_tag}, Private: ${params.private_branch}, Public: ${params.branch_or_tag}" | ||
} | ||
} | ||
catch (err) { | ||
currentBuild.result = "FAILURE" | ||
throw err | ||
} | ||
finally { | ||
slack_notify(currentBuild.result) | ||
email_notify() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters