Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ Patches and Suggestions
```````````````````````

- Rebecca Lau

Dockerize
`````````
- Simone Zabberoni <simone.zabberoni@gmail.com>

9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM python:2.7-alpine
MAINTAINER Simone Zabberoni <simone.zabberoni@gmail.com>

# Add .py scripts to container and install requirements
ADD . /code
WORKDIR /code
RUN pip install -r requirements.txt

ENTRYPOINT ["python", "client.py"]
14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,17 @@ It will use standard API calls to:

I guess it can also serve as a basic example of how to programmatically manage
a remote API using the phenomenal Requests library by Kenneth Reitz.

Docker support
--------------

Build the image from the Dockerfile and invoke it:

.. code-block:: console

$ docker build . -t eve-demo-client
[... build output ...]

$ docker run eve-demo-client <eve-ip>:<eve-port>