Skip to content

Commit

Permalink
finalising the dockerisation
Browse files Browse the repository at this point in the history
  • Loading branch information
thingsplode committed Sep 15, 2018
1 parent 26c420c commit f0518ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions appkernel/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ def run(self):
log=logging_adapter,
error_log=logging_adapter)
shutdown_timeout = self.cfg_engine.get('appkernel.server.shutdown_timeout', 10)
self.app.logger.info(f'--> starting production mode |host: {binding_address}|port: {port}|backlog: {backlog}')
print(f'=== starting server ===')
self.http_server.serve_forever(stop_timeout=shutdown_timeout)
except ImportError:
self.app.logger.warn(
Expand Down
7 changes: 6 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ Take the following sample as a minimalist microservice (offering CRUD operations



Create a minimalistic configuration file
........................................



Create docker file
..................

Expand All @@ -83,7 +88,7 @@ Create docker file
COPY . /app

EXPOSE 5000
CMD ["python", "orderservice.py", "-h 172.17.0.2"]
CMD ["python", "orderservice.py"]

The third parameter in the command section is the address of the Mongo docker image. One can check the address of his own
installation with the following command: ::
Expand Down

0 comments on commit f0518ea

Please sign in to comment.