Skip to content

Commit

Permalink
Develop (#94)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
avara1986 committed Nov 18, 2019
1 parent 2024c75 commit e380b50
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ RUN chmod 777 $DATABASE_DIR
EXPOSE 5000
USER python

CMD ["gunicorn", "--worker-class", "gevent", "--workers", "8", "--log-level", "INFO", "--bind", "0.0.0.0:5000", "manage:app"]
CMD ["gunicorn", "--workers", "8", "--log-level", "INFO", "--bind", "0.0.0.0:5000", "manage:app"]
4 changes: 4 additions & 0 deletions config-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ pyms:
swagger:
path: "swagger"
file: "swagger.yaml"
tracer:
client: "jaeger"
host: "localhost"
component_name: "Python Microservice"
ms:
DEBUG: false
TESTING: false
Expand Down
4 changes: 4 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ pyms:
swagger:
path: "swagger"
file: "swagger.yaml"
tracer:
client: "jaeger"
host: "localhost"
component_name: "Python Microservice"
ms:
DEBUG: false
TESTING: false
Expand Down
5 changes: 4 additions & 1 deletion docs/runinkubernetes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ Use MS with Docker

Use MS with Kubernetes localy
-----------------------------
Configure your service.yaml (TODO: create docs to configure kubernetes service.yaml)
We create a extensive example an tutorial about use Python microservice scaffold with Kubernetes in this repository:
https://github.com/python-microservices/microservices-chat

In the nexts lines, you can find a simple tutorial tu run this microservice in a simple Kubernetes cluster

* Installing Kubernetes...

Expand Down
4 changes: 2 additions & 2 deletions requirements-docker.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r requirements.txt
gevent==1.4.0
gunicorn==19.9.0
psutil==5.6.3
gunicorn==20.0.0
psutil==5.6.5
4 changes: 2 additions & 2 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
coveralls==1.8.2
coverage==4.5.4
nose==1.3.7
pylint==2.4.3
tox==3.14.0
pylint==2.4.4
tox==3.14.1
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask-SQLAlchemy==2.4.1
SQLAlchemy==1.3.10
SQLAlchemy==1.3.11
Flask-Script==2.0.6
py-ms==1.3.2
py-ms==1.4.1
1 change: 0 additions & 1 deletion service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
kind: Service
apiVersion: v1
kind: Service
metadata:
Expand Down
4 changes: 4 additions & 0 deletions tests/config-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ pyms:
swagger:
path: "swagger"
file: "swagger.yaml"
tracer:
client: "jaeger"
host: "localhost"
component_name: "Python Microservice"
ms:
DEBUG: false
TESTING: true
Expand Down

0 comments on commit e380b50

Please sign in to comment.