Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
296b2385
Commit
296b2385
authored
5 years ago
by
Mahesh Kumar Gangula
Browse files
Options
Download
Patches
Plain Diff
Issue #SC-1492 feat: content-service rename to knowledge-mw-service - 1
parent
bb2dbd68
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ansible/roles/stack-sunbird/tasks/knowledge-mw-service.yml
+13
-0
ansible/roles/stack-sunbird/tasks/knowledge-mw-service.yml
ansible/roles/stack-sunbird/tasks/main.yml
+2
-2
ansible/roles/stack-sunbird/tasks/main.yml
ansible/roles/stack-sunbird/templates/sunbird_knowledge-mw-service.env
+0
-0
.../stack-sunbird/templates/sunbird_knowledge-mw-service.env
pipelines/deploy/knowledge-mw-service/Jenkinsfile
+1
-1
pipelines/deploy/knowledge-mw-service/Jenkinsfile
with
16 additions
and
3 deletions
+16
-3
ansible/roles/stack-sunbird/tasks/
content_
service.yml
→
ansible/roles/stack-sunbird/tasks/
knowledge-mw-
service.yml
+
13
−
0
View file @
296b2385
...
...
@@ -4,10 +4,10 @@
ignore_errors
:
yes
-
name
:
Remove content service
shell
:
"
docker
service
rm
content
-service"
shell
:
"
docker
service
rm
knowledge-mw
-service"
ignore_errors
:
yes
-
name
:
Deploy content service
shell
:
"
docker
service
create
--with-registry-auth
--replicas
{{
content_replicas
}}
-p
5000:5000
--name
content
-service
--hostname
content
-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-
content
-service:5000/service/health
||
exit
1'
--health-timeout
3s
--health-retries
3
--network
application_default
--env-file
/home/deployer/env/sunbird_
content
-service.env
{{hub_org}}/{{image_name}}:{{image_tag}}"
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 diff is collapsed.
Click to expand it.
ansible/roles/stack-sunbird/tasks/main.yml
+
2
−
2
View file @
296b2385
...
...
@@ -25,8 +25,8 @@
-
include
:
notification_service.yml
when
:
deploy_notification is defined
-
include
:
content_
service.yml
when
:
deploy_
content
is defined
-
include
:
knowledge-mw-
service.yml
when
:
deploy_
knowledge_mw
is defined
-
include
:
telemetry_service.yml
when
:
deploy_telemetry is defined
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/stack-sunbird/templates/sunbird_
content
-service.env
→
ansible/roles/stack-sunbird/templates/sunbird_
knowledge-mw
-service.env
+
0
−
0
View file @
296b2385
File moved
This diff is collapsed.
Click to expand it.
pipelines/deploy/
content
/Jenkinsfile
→
pipelines/deploy/
knowledge-mw-service
/Jenkinsfile
+
1
−
1
View file @
296b2385
...
...
@@ -10,7 +10,7 @@ node() {
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=
content
-service deploy_
content
=True\" --vault-password-file /var/lib/jenkins/secrets/vault-pass"
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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets