Skip to content

Commit e380b50

Browse files
authored
Develop (#94)
* Update psutil from 5.6.3 to 5.6.5 * Update gunicorn from 19.9.0 to 20.0.0 * Update sqlalchemy from 1.3.10 to 1.3.11 * Update tox from 3.14.0 to 3.14.1 * Update pylint from 2.4.3 to 2.4.4 * Updated and added examples with last version of pyms
1 parent 2024c75 commit e380b50

File tree

9 files changed

+23
-9
lines changed

9 files changed

+23
-9
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ RUN chmod 777 $DATABASE_DIR
2323
EXPOSE 5000
2424
USER python
2525

26-
CMD ["gunicorn", "--worker-class", "gevent", "--workers", "8", "--log-level", "INFO", "--bind", "0.0.0.0:5000", "manage:app"]
26+
CMD ["gunicorn", "--workers", "8", "--log-level", "INFO", "--bind", "0.0.0.0:5000", "manage:app"]

config-docker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ pyms:
44
swagger:
55
path: "swagger"
66
file: "swagger.yaml"
7+
tracer:
8+
client: "jaeger"
9+
host: "localhost"
10+
component_name: "Python Microservice"
711
ms:
812
DEBUG: false
913
TESTING: false

config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ pyms:
44
swagger:
55
path: "swagger"
66
file: "swagger.yaml"
7+
tracer:
8+
client: "jaeger"
9+
host: "localhost"
10+
component_name: "Python Microservice"
711
ms:
812
DEBUG: false
913
TESTING: false

docs/runinkubernetes.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ Use MS with Docker
88

99
Use MS with Kubernetes localy
1010
-----------------------------
11-
Configure your service.yaml (TODO: create docs to configure kubernetes service.yaml)
11+
We create a extensive example an tutorial about use Python microservice scaffold with Kubernetes in this repository:
12+
https://github.com/python-microservices/microservices-chat
13+
14+
In the nexts lines, you can find a simple tutorial tu run this microservice in a simple Kubernetes cluster
1215

1316
* Installing Kubernetes...
1417

requirements-docker.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-r requirements.txt
22
gevent==1.4.0
3-
gunicorn==19.9.0
4-
psutil==5.6.3
3+
gunicorn==20.0.0
4+
psutil==5.6.5

requirements-tests.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
coveralls==1.8.2
33
coverage==4.5.4
44
nose==1.3.7
5-
pylint==2.4.3
6-
tox==3.14.0
5+
pylint==2.4.4
6+
tox==3.14.1

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Flask-SQLAlchemy==2.4.1
2-
SQLAlchemy==1.3.10
2+
SQLAlchemy==1.3.11
33
Flask-Script==2.0.6
4-
py-ms==1.3.2
4+
py-ms==1.4.1

service.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
kind: Service
21
apiVersion: v1
32
kind: Service
43
metadata:

tests/config-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ pyms:
44
swagger:
55
path: "swagger"
66
file: "swagger.yaml"
7+
tracer:
8+
client: "jaeger"
9+
host: "localhost"
10+
component_name: "Python Microservice"
711
ms:
812
DEBUG: false
913
TESTING: true

0 commit comments

Comments
 (0)