Commit f9f8a557 authored by Alexander Lercher's avatar Alexander Lercher

Updated deployment scripts

parent 1b4c365e
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
We propose a framework underlying decentralized social media called SMART, capable of finding relevant interest communities without violating users’ privacy and anonymity. Its objective is to improve trust and eliminate malicious actors in participatory exchanges and collaborative decision making. We propose a framework underlying decentralized social media called SMART, capable of finding relevant interest communities without violating users’ privacy and anonymity. Its objective is to improve trust and eliminate malicious actors in participatory exchanges and collaborative decision making.
## Project structure ## Project structure
The *tools* folder contains supportive scripts used during development and must not be used by any microservice.
### Source code in *src/*
The five folders *data-hub*, *message-broker*, *rest-gateway*, *transaction-hub-in* and *transaction-hub-out* contain the microservices for the five architecture layers respectively. The five folders *data-hub*, *message-broker*, *rest-gateway*, *transaction-hub-in* and *transaction-hub-out* contain the microservices for the five architecture layers respectively.
The *modules* folder contains various Python modules used by multiple microservices to improve code-reuse. When building the Docker images this folder is copied into the app path. The *modules* folder contains various Python modules used by multiple microservices to improve code-reuse. When building the Docker images this folder is copied into the app path.
The *tools* folder contains supportive scripts used during development and must not be used by any microservice. ### Deployment scripts in *bin/*
The scripts *build.py* and *deploy.py* are used to create Docker images and deploy these images with Kubernetes respectively.
The scripts *build.py* and *deploy.py* are used to create Docker images and deploy these images in Kubernetes respectively.
The *images* folder holds the images used in this document.
## Overall microservice architecture ## Overall microservice architecture
![SMART architecture image](images/smart-architecture.png) ![SMART architecture image](documentation/images/smart-architecture.png)
## Trace input handling ## Trace input handling
1. New traces are POSTed to the REST gateway 1. New traces are POSTed to the REST gateway
...@@ -21,4 +21,4 @@ The *images* folder holds the images used in this document. ...@@ -21,4 +21,4 @@ The *images* folder holds the images used in this document.
1. The trace retrieval microservice receives the message, stores the trace in its document-based database and sends a notification to the message broker 1. The trace retrieval microservice receives the message, stores the trace in its document-based database and sends a notification to the message broker
1. The semantic linking microservice receives the notification and GETs all traces (including the new one) from the trace retrieval microservice 1. The semantic linking microservice receives the notification and GETs all traces (including the new one) from the trace retrieval microservice
1. All traces can now be processed 1. All traces can now be processed
![Input handling image](images/input-handling.png) ![Input handling image](documentation/images/input-handling.png)
import os import os
import shutil import shutil
docker_reg = 'localhost:5000'
DOCKER_COMPOSE_NAME = "Dockerfile" DOCKER_COMPOSE_NAME = "Dockerfile"
PATH = '../src/'
paths = [] paths = []
for r, _, f in os.walk('./'): for r, _, f in os.walk(PATH):
for file in f: for filename in f:
if DOCKER_COMPOSE_NAME == file: if DOCKER_COMPOSE_NAME == filename:
paths.append(os.path.join(r, '')) paths.append(os.path.normpath(r))
command_args = [{'path': path, command_args = [{'path': path,
'name': str(path).split('/')[-2]} 'name': str(path).split(os.path.normpath('/'))[-1]}
for path for path
in paths] in paths]
res_str = []
for command_arg in command_args: for command_arg in command_args:
path = command_arg['path'] path = command_arg['path']
image_name = f"{docker_reg}/{command_arg['name']}" image_name = f"{command_arg['name']}"
# copy Dockerfile into root dir to have access to modules folder # copy Dockerfile into root dir to have access to modules folder
shutil.copy2(os.path.join(path, DOCKER_COMPOSE_NAME), './') shutil.copy2(os.path.join(path, DOCKER_COMPOSE_NAME), './')
os.system(f"docker image build -t {image_name} .")
# build then remove Dockerfile
exit_val = os.system(f"docker image build -t {image_name} .")
os.remove(DOCKER_COMPOSE_NAME) os.remove(DOCKER_COMPOSE_NAME)
os.system(f"docker push {image_name}") res_str .append (f"### {image_name} built with exit code {exit_val}")
# os.system(f"docker push {image_name}")
print(f"Found {len(command_args)} images") print(f"Found {len(command_args)} images")
for s in res_str:
print(s)
\ No newline at end of file
...@@ -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 data-hub/agent-discovery-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: agent-discovery name: agent-discovery
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: agent-discovery app: agent-discovery
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: agent-discovery - name: agent-discovery
image: 143.205.173.97:5000/agent-discovery-microservice image: agent-discovery-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 data-hub/community-detection-microservice/app/ /app/ COPY src/data-hub/community-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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: community-detection name: community-detection
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: community-detection app: community-detection
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: community-detection - name: community-detection
image: 143.205.173.97:5000/community-detection-microservice image: community-detection-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 data-hub/democratic-reasoning-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: democratic-reasoning name: democratic-reasoning
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: democratic-reasoning app: democratic-reasoning
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: democratic-reasoning - name: democratic-reasoning
image: 143.205.173.97:5000/democratic-reasoning-microservice image: democratic-reasoning-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 data-hub/geo-profiling-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: geo-profiling name: geo-profiling
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: geo-profiling app: geo-profiling
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: geo-profiling - name: geo-profiling
image: 143.205.173.97:5000/geo-profiling-microservice image: geo-profiling-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 data-hub/pareto-trust-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: pareto-trust name: pareto-trust
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: pareto-trust app: pareto-trust
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: pareto-trust - name: pareto-trust
image: 143.205.173.97:5000/pareto-trust-microservice image: pareto-trust-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 data-hub/reputation-calculation-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: reputation-calculation name: reputation-calculation
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: reputation-calculation app: reputation-calculation
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: reputation-calculation - name: reputation-calculation
image: 143.205.173.97:5000/reputation-calculation-microservice image: reputation-calculation-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 data-hub/role-discovery-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: role-discovery name: role-discovery
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: role-discovery app: role-discovery
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: role-discovery - name: role-discovery
image: 143.205.173.97:5000/role-discovery-microservice image: role-discovery-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -12,7 +12,7 @@ RUN pip install pika ...@@ -12,7 +12,7 @@ RUN pip install pika
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY data-hub/semantic-linking-microservice/app/ /app/ COPY src/data-hub/semantic-linking-microservice/app/ /app/
COPY modules/ /app/ COPY modules/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
......
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: semantic-linking name: semantic-linking
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: semantic-linking app: semantic-linking
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: semantic-linking - name: semantic-linking
image: 143.205.173.97:5000/semantic-linking-microservice image: semantic-linking-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 data-hub/stage-discovery-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: stage-discovery name: stage-discovery
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: stage-discovery app: stage-discovery
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: stage-discovery - name: stage-discovery
image: 143.205.173.97:5000/stage-discovery-microservice image: stage-discovery-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: rabbit-mq name: rabbit-mq
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: rabbit-mq app: rabbit-mq
ports: ports:
......
...@@ -13,7 +13,7 @@ RUN pip install deprecated ...@@ -13,7 +13,7 @@ RUN pip install deprecated
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY rest-gateway/app/ /app/ COPY src/rest-gateway/app/ /app/
COPY modules/ /app/ COPY modules/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
......
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: rest-gateway name: rest-gateway
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: rest-gateway app: rest-gateway
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: rest-gateway - name: rest-gateway
image: 143.205.173.97:5000/rest-gateway image: rest-gateway
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 transaction-hub-in/network-metrics-retrieval-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: network-metrics-retrieval name: network-metrics-retrieval
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: network-metrics-retrieval app: network-metrics-retrieval
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: network-metrics-retrieval - name: network-metrics-retrieval
image: 143.205.173.97:5000/network-metrics-retrieval-microservice image: network-metrics-retrieval-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -14,7 +14,7 @@ RUN pip install deprecated ...@@ -14,7 +14,7 @@ RUN pip install deprecated
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY transaction-hub-in/trace-retrieval-microservice/app/ /app/ COPY src/transaction-hub-in/trace-retrieval-microservice/app/ /app/
COPY modules/ /app/ COPY modules/ /app/
RUN chmod a+x main.py RUN chmod a+x main.py
......
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: trace-retrieval name: trace-retrieval
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: trace-retrieval app: trace-retrieval
ports: ports:
...@@ -31,7 +29,7 @@ spec: ...@@ -31,7 +29,7 @@ spec:
spec: spec:
containers: containers:
- name: trace-retrieval - name: trace-retrieval
image: 143.205.173.97:5000/trace-retrieval-microservice image: trace-retrieval-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
imagePullPolicy: Always imagePullPolicy: Always
...@@ -42,8 +40,6 @@ metadata: ...@@ -42,8 +40,6 @@ metadata:
name: trace-retrieval-db name: trace-retrieval-db
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: trace-retrieval-db app: trace-retrieval-db
ports: ports:
......
...@@ -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 transaction-hub-out/data-access-microservice/app/ /app/ COPY src/transaction-hub-out/data-access-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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: data-access name: data-access
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: data-access app: data-access
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: data-access - name: data-access
image: 143.205.173.97:5000/data-access-microservice image: data-access-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 transaction-hub-out/event-detection-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: event-detection name: event-detection
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: event-detection app: event-detection
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: event-detection - name: event-detection
image: 143.205.173.97:5000/event-detection-microservice image: event-detection-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 transaction-hub-out/smart-matching-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: smart-matching name: smart-matching
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: smart-matching app: smart-matching
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: smart-matching - name: smart-matching
image: 143.205.173.97:5000/smart-matching-microservice image: smart-matching-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 transaction-hub-out/tokenized-decision-making-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: tokenized-decision-making name: tokenized-decision-making
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: tokenized-decision-making app: tokenized-decision-making
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: tokenized-decision-making - name: tokenized-decision-making
image: 143.205.173.97:5000/tokenized-decision-making-microservice image: tokenized-decision-making-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
...@@ -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 transaction-hub-out/trust-sla-microservice/app/ /app/ COPY src/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
...@@ -4,8 +4,6 @@ metadata: ...@@ -4,8 +4,6 @@ metadata:
name: trust-sla name: trust-sla
spec: spec:
type: LoadBalancer type: LoadBalancer
externalIPs:
- 143.205.173.102
selector: selector:
app: trust-sla app: trust-sla
ports: ports:
...@@ -31,6 +29,6 @@ spec: ...@@ -31,6 +29,6 @@ spec:
spec: spec:
containers: containers:
- name: trust-sla - name: trust-sla
image: 143.205.173.97:5000/trust-sla-microservice image: trust-sla-microservice
ports: ports:
- containerPort: 5000 - containerPort: 5000
\ No newline at end of file
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