Files
kapow/docs/source/setup/install-and-configure.rst
2019-11-22 12:47:25 +01:00

69 lines
1.8 KiB
ReStructuredText

Installing Kapow!
=================
Kapow! has a reference implementation in Go that is under active development
right now. If you want to start using Kapow! you can choose from several
options
Download and install a binary
-----------------------------
Binaries for several platforms are availables from our
`releases <https://github.com/BBVA/kapow/releases>`_ section, visit the latest
release page and download the binary corresponding to the platfom and
architecture you want to install Kapow! in.
Linux
^^^^^
Install the downloaded binary using the following command as a privileged user.
.. code-block:: bash
install -t /usr/local/bin path_to_downloaded_binary
Windows
^^^^^^^
Copy the downloaded binary to a directory of your choice and update the system
PATH variable to include that directory.
Install the package with go get
-------------------------------
If you already have `installed and configured <https://golang.org/cmd/go/>`_
the go runtime in the host where you want to run Kapow!, simply run:
.. code-block:: bash
go get -u github.com/BBVA/kapow
Include Kapow! in your container image
--------------------------------------
If you want to include Kapow! in a Docker image you can add the binary directly
from the releases section. Following is an example dockerfile that includes
Kapow!.
.. code-block:: dockerfile
FROM debian:stretch-slim
RUN apt-get update
ADD https://github.com/BBVA/kapow/releases/download/<VERSION>/kapow_linux_amd64 /usr/bin/kapow
RUN chmod 755 /usr/bin/kapow
ENTRYPOINT ["/usr/bin/kapow"]
If the container is intended to run the server and you want to dinamically
configure it, remember to include a --contorl-bind param with an external bind
address (i.e. 0.0.0.0) and to map all the needed ports in order to get access
to the control interfgace.