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
Show 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
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
src/
rest-gateway
/app/requirements.txt /app/
COPY
src/
data-hub/reputation-calculation-microservice
/app/requirements.txt /app/
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/
RUN
chmod
a+x main.py
...
...
src/rest-gateway/deployment/deployment.yml
View file @
82d0e4fd
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
re
st-gateway
name
:
re
putation-calculation
spec
:
type
:
LoadBalancer
selector
:
app
:
re
st-gateway
app
:
re
putation-calculation
ports
:
-
name
:
http
port
:
80
targetPort
:
5000
nodePort
:
30
401
nodePort
:
30
107
protocol
:
TCP
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
re
st-gateway
name
:
re
putation-calculation
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
re
st-gateway
app
:
re
putation-calculation
template
:
metadata
:
labels
:
app
:
re
st-gateway
app
:
re
putation-calculation
spec
:
containers
:
-
name
:
re
st-gateway
image
:
alexx882/re
st-gateway
-
name
:
re
putation-calculation
image
:
alexx882/re
putation-calculation-microservice
ports
:
-
containerPort
:
5000
imagePullPolicy
:
Always
...
...
@@ -45,34 +45,34 @@ spec:
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
re
st-gateway
-db
name
:
re
putation-calculation
-db
spec
:
type
:
LoadBalancer
selector
:
app
:
re
st-gateway
-db
app
:
re
putation-calculation
-db
ports
:
-
name
:
http
port
:
27017
targetPort
:
27017
nodePort
:
30
402
nodePort
:
30
109
protocol
:
TCP
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
re
st-gateway
-db
name
:
re
putation-calculation
-db
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
re
st-gateway
-db
app
:
re
putation-calculation
-db
template
:
metadata
:
labels
:
app
:
re
st-gateway
-db
app
:
re
putation-calculation
-db
spec
:
containers
:
-
name
:
re
st-gateway
-db
-
name
:
re
putation-calculation
-db
image
:
mongo
env
:
-
name
:
MONGO_INITDB_ROOT_USERNAME
...
...
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