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
75bcb354
Commit
75bcb354
authored
Aug 13, 2019
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added data-access-microservice
parent
d80bca29
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
113 additions
and
0 deletions
+113
-0
Dockerfile
transaction-hub-out/data-access-microservice/Dockerfile
+17
-0
README.md
transaction-hub-out/data-access-microservice/README.md
+8
-0
swagger.yml
...-hub-out/data-access-microservice/app/configs/swagger.yml
+30
-0
debug.py
transaction-hub-out/data-access-microservice/app/debug.py
+6
-0
main.py
transaction-hub-out/data-access-microservice/app/main.py
+13
-0
deployment.yml
...ub-out/data-access-microservice/deployment/deployment.yml
+21
-0
service.yml
...n-hub-out/data-access-microservice/deployment/service.yml
+18
-0
No files found.
transaction-hub-out/data-access-microservice/Dockerfile
0 → 100644
View file @
75bcb354
FROM
python:3
LABEL
maintainer="Alexander Lercher"
ENV
http_proxy http://proxy.uni-klu.ac.at:3128/
ENV
https_proxy http://proxy.uni-klu.ac.at:3128/
RUN
apt-get update
RUN
pip
install
flask
RUN
pip
install
connexion[swagger-ui]
EXPOSE
5000
WORKDIR
/app
COPY
transaction-hub-out/data-access-microservice/app/ /app/
RUN
chmod
a+x main.py
CMD
["python", "./main.py"]
\ No newline at end of file
transaction-hub-out/data-access-microservice/README.md
0 → 100644
View file @
75bcb354
# Data Access Microservice
The data access microservice offers the heuristics and data from SMART to enable other components to apply evaluation and cognition for different use-cases.
## Technologies
-
Python 3.x
(Check Dockerfile for used Python modules)
-
Docker
-
Kubernetes
\ No newline at end of file
transaction-hub-out/data-access-microservice/app/configs/swagger.yml
0 → 100644
View file @
75bcb354
swagger
:
"
2.0"
info
:
title
:
Data Access microservice
description
:
This is the documentation for the data access microservice.
version
:
"
1.0.0"
consumes
:
-
"
application/json"
produces
:
-
"
application/json"
basePath
:
"
/api"
paths
:
/debug
:
post
:
operationId
:
"
debug.echo"
tags
:
-
"
Echo"
summary
:
"
Echo
function
for
debugging
purposes"
description
:
"
Echoes
the
input
back
to
the
caller."
parameters
:
-
in
:
body
name
:
"
Object"
required
:
true
schema
:
type
:
object
responses
:
200
:
description
:
"
Successful
echo
of
request
data"
transaction-hub-out/data-access-microservice/app/debug.py
0 → 100644
View file @
75bcb354
from
flask
import
request
def
echo
():
return
request
.
json
\ No newline at end of file
transaction-hub-out/data-access-microservice/app/main.py
0 → 100644
View file @
75bcb354
import
connexion
# load swagger config
app
=
connexion
.
App
(
__name__
,
specification_dir
=
'configs/'
)
app
.
add_api
(
'swagger.yml'
)
@
app
.
route
(
'/'
,
methods
=
[
'GET'
])
def
api_root
():
return
'Endpoint of data-access-microservice!'
# start app
if
__name__
==
'__main__'
:
app
.
run
(
host
=
'0.0.0.0'
,
port
=
5000
,
debug
=
True
)
transaction-hub-out/data-access-microservice/deployment/deployment.yml
0 → 100644
View file @
75bcb354
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
data-access
spec
:
replicas
:
2
selector
:
matchLabels
:
app
:
data-access
template
:
metadata
:
labels
:
app
:
data-access
spec
:
containers
:
-
name
:
data-access
image
:
172.16.1.20:5000/data-access-microservice
ports
:
-
containerPort
:
5000
\ No newline at end of file
transaction-hub-out/data-access-microservice/deployment/service.yml
0 → 100644
View file @
75bcb354
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
data-access
spec
:
type
:
LoadBalancer
externalIPs
:
-
143.205.173.36
selector
:
app
:
data-access
ports
:
-
name
:
http
port
:
80
targetPort
:
5000
nodePort
:
30205
protocol
:
TCP
\ No newline at end of file
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