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
82d0e4fd
Commit
82d0e4fd
authored
Jul 06, 2021
by
Manuel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tmp' into feature/trust
parents
13f19551
1fd3a864
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
Dockerfile
src/rest-gateway/Dockerfile
+5
-5
deployment.yml
src/rest-gateway/deployment/deployment.yml
+16
-16
No files found.
src/rest-gateway/Dockerfile
View file @
82d0e4fd
FROM
python:3
FROM
python:3
LABEL
maintainer="Alexander Lercher"
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
apt-get update
RUN
pip
install
flask
RUN
pip
install
connexion[swagger-ui]
EXPOSE
5000
EXPOSE
5000
WORKDIR
/app
WORKDIR
/app
COPY
src/
rest-gateway
/app/requirements.txt /app/
COPY
src/
data-hub/reputation-calculation-microservice
/app/requirements.txt /app/
RUN
pip
install
-r
requirements.txt
RUN
pip
install
-r
requirements.txt
COPY
src/rest-gateway/app/ /app/
COPY
src/data-hub/reputation-calculation-microservice/app/ /app/
COPY
src/modules/ /app/
COPY
src/modules/ /app/
RUN
chmod
a+x main.py
RUN
chmod
a+x main.py
...
...
src/rest-gateway/deployment/deployment.yml
View file @
82d0e4fd
apiVersion
:
v1
apiVersion
:
v1
kind
:
Service
kind
:
Service
metadata
:
metadata
:
name
:
re
st-gateway
name
:
re
putation-calculation
spec
:
spec
:
type
:
LoadBalancer
type
:
LoadBalancer
selector
:
selector
:
app
:
re
st-gateway
app
:
re
putation-calculation
ports
:
ports
:
-
name
:
http
-
name
:
http
port
:
80
port
:
80
targetPort
:
5000
targetPort
:
5000
nodePort
:
30
401
nodePort
:
30
107
protocol
:
TCP
protocol
:
TCP
---
---
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
name
:
re
st-gateway
name
:
re
putation-calculation
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
app
:
re
st-gateway
app
:
re
putation-calculation
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
app
:
re
st-gateway
app
:
re
putation-calculation
spec
:
spec
:
containers
:
containers
:
-
name
:
re
st-gateway
-
name
:
re
putation-calculation
image
:
alexx882/re
st-gateway
image
:
alexx882/re
putation-calculation-microservice
ports
:
ports
:
-
containerPort
:
5000
-
containerPort
:
5000
imagePullPolicy
:
Always
imagePullPolicy
:
Always
...
@@ -45,34 +45,34 @@ spec:
...
@@ -45,34 +45,34 @@ spec:
apiVersion
:
v1
apiVersion
:
v1
kind
:
Service
kind
:
Service
metadata
:
metadata
:
name
:
re
st-gateway
-db
name
:
re
putation-calculation
-db
spec
:
spec
:
type
:
LoadBalancer
type
:
LoadBalancer
selector
:
selector
:
app
:
re
st-gateway
-db
app
:
re
putation-calculation
-db
ports
:
ports
:
-
name
:
http
-
name
:
http
port
:
27017
port
:
27017
targetPort
:
27017
targetPort
:
27017
nodePort
:
30
402
nodePort
:
30
109
protocol
:
TCP
protocol
:
TCP
---
---
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
name
:
re
st-gateway
-db
name
:
re
putation-calculation
-db
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
app
:
re
st-gateway
-db
app
:
re
putation-calculation
-db
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
app
:
re
st-gateway
-db
app
:
re
putation-calculation
-db
spec
:
spec
:
containers
:
containers
:
-
name
:
re
st-gateway
-db
-
name
:
re
putation-calculation
-db
image
:
mongo
image
:
mongo
env
:
env
:
-
name
:
MONGO_INITDB_ROOT_USERNAME
-
name
:
MONGO_INITDB_ROOT_USERNAME
...
@@ -85,4 +85,4 @@ spec:
...
@@ -85,4 +85,4 @@ spec:
-
mountPath
:
/data/db
-
mountPath
:
/data/db
name
:
dbdata
name
:
dbdata
volumes
:
volumes
:
-
name
:
dbdata
-
name
:
dbdata
\ 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