Commit 82d0e4fd authored by Manuel's avatar Manuel

Merge branch 'tmp' into feature/trust

parents 13f19551 1fd3a864
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
......
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: rest-gateway name: reputation-calculation
spec: spec:
type: LoadBalancer type: LoadBalancer
selector: selector:
app: rest-gateway app: reputation-calculation
ports: ports:
- name: http - name: http
port: 80 port: 80
targetPort: 5000 targetPort: 5000
nodePort: 30401 nodePort: 30107
protocol: TCP protocol: TCP
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: rest-gateway name: reputation-calculation
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: rest-gateway app: reputation-calculation
template: template:
metadata: metadata:
labels: labels:
app: rest-gateway app: reputation-calculation
spec: spec:
containers: containers:
- name: rest-gateway - name: reputation-calculation
image: alexx882/rest-gateway image: alexx882/reputation-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: rest-gateway-db name: reputation-calculation-db
spec: spec:
type: LoadBalancer type: LoadBalancer
selector: selector:
app: rest-gateway-db app: reputation-calculation-db
ports: ports:
- name: http - name: http
port: 27017 port: 27017
targetPort: 27017 targetPort: 27017
nodePort: 30402 nodePort: 30109
protocol: TCP protocol: TCP
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: rest-gateway-db name: reputation-calculation-db
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: rest-gateway-db app: reputation-calculation-db
template: template:
metadata: metadata:
labels: labels:
app: rest-gateway-db app: reputation-calculation-db
spec: spec:
containers: containers:
- name: rest-gateway-db - name: reputation-calculation-db
image: mongo image: mongo
env: env:
- name: MONGO_INITDB_ROOT_USERNAME - name: MONGO_INITDB_ROOT_USERNAME
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment