Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
64618ea6
Commit
64618ea6
authored
4 years ago
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed deployment names and ports
Changed deployment script: arg has to match name exactly
parent
15ef25dd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
21 deletions
+62
-21
deploy.py
bin/deploy.py
+2
-2
deployment.yml
...ommunity-detection-microservice/deployment/deployment.yml
+2
-2
deployment.yml
...le-stage-discovery-microservice/deployment/deployment.yml
+7
-8
deployment.yml
...b/semantic-linking-microservice/deployment/deployment.yml
+41
-1
network_constants.py
src/modules/network_constants.py
+10
-8
No files found.
bin/deploy.py
View file @
64618ea6
...
@@ -17,7 +17,7 @@ def print_help():
...
@@ -17,7 +17,7 @@ def print_help():
def
get_microservice_name_from_path
(
path
)
->
str
:
def
get_microservice_name_from_path
(
path
)
->
str
:
'''
'''
Extracts the microservice name from the path.
Extracts the microservice name from the path.
:param path: The path, eg. src
\
data-hub
\
stage-discovery-microservice
\
deployment
:param path: The path, eg. src
\
\
data-hub
\\
stage-discovery-microservice
\
\
deployment
'''
'''
name
=
path
.
split
(
os
.
path
.
normpath
(
'/'
))[
-
2
]
name
=
path
.
split
(
os
.
path
.
normpath
(
'/'
))[
-
2
]
...
@@ -75,7 +75,7 @@ if __name__ == '__main__':
...
@@ -75,7 +75,7 @@ if __name__ == '__main__':
img_name
=
None
img_name
=
None
if
len
(
sys
.
argv
)
>
2
:
if
len
(
sys
.
argv
)
>
2
:
img_name
=
sys
.
argv
[
2
]
img_name
=
sys
.
argv
[
2
]
deployment_file_paths
=
[
p
for
p
in
deployment_file_paths
if
(
img_name
in
p
)]
deployment_file_paths
=
[
p
for
p
in
deployment_file_paths
if
(
img_name
==
get_microservice_name_from_path
(
p
)
)]
error_val
=
0
error_val
=
0
if
command
==
'delete'
or
command
==
'redeploy'
:
if
command
==
'delete'
or
command
==
'redeploy'
:
...
...
This diff is collapsed.
Click to expand it.
src/data-hub/proactive-community-detection-microservice/deployment/deployment.yml
View file @
64618ea6
...
@@ -10,7 +10,7 @@ spec:
...
@@ -10,7 +10,7 @@ spec:
-
name
:
http
-
name
:
http
port
:
80
port
:
80
targetPort
:
5000
targetPort
:
5000
nodePort
:
3010
9
nodePort
:
3010
5
protocol
:
TCP
protocol
:
TCP
---
---
apiVersion
:
apps/v1
apiVersion
:
apps/v1
...
@@ -45,7 +45,7 @@ spec:
...
@@ -45,7 +45,7 @@ spec:
-
name
:
http
-
name
:
http
port
:
27017
port
:
27017
targetPort
:
27017
targetPort
:
27017
nodePort
:
301
11
nodePort
:
301
06
protocol
:
TCP
protocol
:
TCP
---
---
apiVersion
:
apps/v1
apiVersion
:
apps/v1
...
...
This diff is collapsed.
Click to expand it.
src/data-hub/role-stage-discovery-microservice/deployment/deployment.yml
View file @
64618ea6
...
@@ -33,38 +33,37 @@ spec:
...
@@ -33,38 +33,37 @@ spec:
ports
:
ports
:
-
containerPort
:
5000
-
containerPort
:
5000
---
---
# todo change DB name!
apiVersion
:
v1
apiVersion
:
v1
kind
:
Service
kind
:
Service
metadata
:
metadata
:
name
:
community-detection
-db
name
:
role-stage-discovery
-db
spec
:
spec
:
type
:
LoadBalancer
type
:
LoadBalancer
selector
:
selector
:
app
:
community-detection
-db
app
:
role-stage-discovery
-db
ports
:
ports
:
-
name
:
http
-
name
:
http
port
:
27017
port
:
27017
targetPort
:
27017
targetPort
:
27017
nodePort
:
301
10
nodePort
:
301
04
protocol
:
TCP
protocol
:
TCP
---
---
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
name
:
community-detection
-db
name
:
role-stage-discovery
-db
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
app
:
community-detection
-db
app
:
role-stage-discovery
-db
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
app
:
community-detection
-db
app
:
role-stage-discovery
-db
spec
:
spec
:
containers
:
containers
:
-
name
:
community-detection
-db
-
name
:
role-stage-discovery
-db
image
:
mongo
image
:
mongo
env
:
env
:
-
name
:
MONGO_INITDB_ROOT_USERNAME
-
name
:
MONGO_INITDB_ROOT_USERNAME
...
...
This diff is collapsed.
Click to expand it.
src/data-hub/semantic-linking-microservice/deployment/deployment.yml
View file @
64618ea6
...
@@ -31,4 +31,44 @@ spec:
...
@@ -31,4 +31,44 @@ spec:
-
name
:
semantic-linking
-
name
:
semantic-linking
image
:
alexx882/semantic-linking-microservice
image
:
alexx882/semantic-linking-microservice
ports
:
ports
:
-
containerPort
:
5000
-
containerPort
:
5000
\ No newline at end of file
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
semantic-linking-db
spec
:
type
:
LoadBalancer
selector
:
app
:
semantic-linking-db
ports
:
-
name
:
http
port
:
27017
targetPort
:
27017
nodePort
:
30102
protocol
:
TCP
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
semantic-linking-db
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
semantic-linking-db
template
:
metadata
:
labels
:
app
:
semantic-linking-db
spec
:
containers
:
-
name
:
semantic-linking-db
image
:
mongo
env
:
-
name
:
MONGO_INITDB_ROOT_USERNAME
value
:
root
-
name
:
MONGO_INITDB_ROOT_PASSWORD
value
:
root
ports
:
-
containerPort
:
27017
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/modules/network_constants.py
View file @
64618ea6
...
@@ -7,15 +7,17 @@ RABBIT_MQ_PORT = 5672
...
@@ -7,15 +7,17 @@ RABBIT_MQ_PORT = 5672
## Trace Retrieval
## Trace Retrieval
TRACE_RETRIEVAL_HOSTNAME
=
'trace-retrieval'
TRACE_RETRIEVAL_HOSTNAME
=
'trace-retrieval'
TRACE_RETRIEVAL_REST_PORT
=
80
TRACE_RETRIEVAL_REST_PORT
=
80
TRACE_RETRIEVAL_DB_HOSTNAME
=
'trace-retrieval
-db'
TRACE_RETRIEVAL_DB_HOSTNAME
=
f
'{TRACE_RETRIEVAL_HOSTNAME}
-db'
TRACE_RETRIEVAL_DB_PORT
=
27017
TRACE_RETRIEVAL_DB_PORT
=
27017
# TRACE_RETRIEVAL_DB_HOSTNAME = 'articonf1.itec.aau.at'
# TRACE_RETRIEVAL_DB_PORT = 30003
## Semantic Linking
SEMANTIC_LINKING_HOSTNAME
=
'semantic-linking'
SEMANTIC_LINKING_REST_PORT
=
80
SEMANTIC_LINKING_DB_HOSTNAME
=
f
'{SEMANTIC_LINKING_HOSTNAME}-db'
SEMANTIC_LINKING_DB_PORT
=
27017
## Community Detection
## Community Detection
COMMUNITY_DETECTION_HOSTNAME
=
'
community-detection
'
COMMUNITY_DETECTION_HOSTNAME
=
'
role-stage-discovery
'
COMMUNITY_DETECTION_REST_PORT
=
80
COMMUNITY_DETECTION_REST_PORT
=
80
COMMUNITY_DETECTION_DB_HOSTNAME
=
'community-detection-db'
COMMUNITY_DETECTION_DB_HOSTNAME
=
f
'{COMMUNITY_DETECTION_HOSTNAME}-db'
COMMUNITY_DETECTION_DB_PORT
=
27017
COMMUNITY_DETECTION_DB_PORT
=
27017
# COMMUNITY_DETECTION_DB_HOSTNAME = 'localhost'
\ No newline at end of file
# COMMUNITY_DETECTION_DB_PORT = 30110
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment