diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..be65df2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:2-slim +MAINTAINER Ali Riza Keles, aliriza@zetaops.io + +RUN pip install etcddump + +ENTRYPOINT ["etcdumper"] diff --git a/README.rst b/README.rst index 076fe96..3e9f219 100644 --- a/README.rst +++ b/README.rst @@ -47,3 +47,14 @@ Usage is really simple and has been thought so that it resembles how most dumper #dump & restore in one command using pipes etcdumper dump https://etcd.example.com:4001 | etcdumper restore http://localhost:4001 + + +Docker +------ +You can use etcdumper with ``docker run`` command. It is same syntax, just replace ``etcdumper`` with +``docker run zetaops/etcdumper``. Or simply define an alias: ``alias etcdumper='docker run zetaops/etcdumper'`` + +.. code:: bash + + # dump to stdout + docker run zetaops/etcdumper dump https://etcd.example.com:4001