Commit cc35cc82 authored by Alexander Lercher's avatar Alexander Lercher

Changed Docker and K8s config files

parent 325a5941
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY data-hub/agent-discovery-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: agent-discovery-endpoint name: agent-discovery
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY data-hub/community-detecion-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: community-detection-endpoint name: community-detection
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY data-hub/democratic-reasoning-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: democratic-reasoning-endpoint name: democratic-reasoning
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY data-hub/geo-profiling-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: geo-profiling-endpoint name: geo-profiling
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY data-hub/pareto-trust-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: pareto-trust-endpoint name: pareto-trust
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY data-hub/reputation-calculation-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: reputation-calculation-endpoint name: reputation-calculation
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY data-hub/role-discovery-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: role-discovery-endpoint name: role-discovery
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY data-hub/semantic-linking-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: semantic-linking-endpoint name: semantic-linking
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY data-hub/stage-discovery-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: stage-discovery-endpoint name: stage-discovery
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -10,5 +10,5 @@ for r, _, f in os.walk('./'): ...@@ -10,5 +10,5 @@ for r, _, f in os.walk('./'):
for path in paths: for path in paths:
os.system(f"kubectl apply -f {path}deployment.yml") os.system(f"kubectl apply -f {path}deployment.yml")
os.system(f"kubectl apply -f {path}loadbalancer.yml") os.system(f"kubectl apply -f {path}service.yml")
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY transaction-hub-in/network-metrics-retrieval-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: network-metrics-retrieval-endpoint name: network-metrics-retrieval
spec: spec:
type: LoadBalancer type: LoadBalancer
......
# add modules folder to interpreter path
import sys import sys
sys.path.insert(1, '../../../modules/') import os
modules_path = '../../../modules/'
if os.path.exists(modules_path):
sys.path.insert(1, modules_path)
# init logging to file
import logging import logging
LOG_FORMAT = ('%(levelname) -5s %(asctime)s %(name)s:%(funcName) -35s %(lineno) -5d: %(message)s') LOG_FORMAT = ('%(levelname) -5s %(asctime)s %(name)s:%(funcName) -35s %(lineno) -5d: %(message)s')
logging.basicConfig(filename='trace-retrieval.log', level=logging.WARNING, format=LOG_FORMAT) logging.basicConfig(filename='trace-retrieval.log', level=logging.WARNING, format=LOG_FORMAT)
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY transaction-hub-out/event-detection-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: event-detection-endpoint name: event-detection
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY transaction-hub-out/smart-matching-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: smart-matching-endpoint name: smart-matching
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY transaction-hub-out/tokenized-decision-making-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: tokenized-decision-making-endpoint name: tokenized-decision-making
spec: spec:
type: LoadBalancer type: LoadBalancer
......
...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui] ...@@ -11,7 +11,7 @@ RUN pip install connexion[swagger-ui]
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY app/ /app/ COPY transaction-hub-out/trust-sla-microservice/app/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
CMD ["python", "./main.py"] CMD ["python", "./main.py"]
\ No newline at end of file
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: trust-sla-endpoint name: trust-sla
spec: spec:
type: LoadBalancer type: LoadBalancer
......
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