Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAA-1731: Docker deployment guide clarified. [master] #1520

Merged
merged 1 commit into from
Apr 25, 2017
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,46 @@ To deploy a Kaa cluster on your machine:

1. Install [Docker Engine](https://docs.docker.com/engine/installation/).

If you use Linux, you can install the Docker Engine by running the [installation script](https://get.docker.com/).
If you use Linux, you can install Docker Engine by running the [installation script](https://get.docker.com/).

wget -qO- https://get.docker.com/ | sh

>**IMPORTANT:** If you use Windows, you must also have [Python](https://www.python.org/downloads/) installed.
{:.important}

To verify your Docker installation, run:

docker --version

2. Install [Docker Сompose](https://docs.docker.com/compose/install/).

3. Download Kaa debian package from the [official site](http://www.kaaproject.org/download-kaa/) or [build your Kaa project locally]({{root_url}}Administration-guide/System-installation/Building-Kaa-server-from-source-code/) (use `kaa-node.deb` located in `server/node/target/`).
Put the `kaa-node.deb` file in the `server/containers/docker/` directory.
To verify your Docker Compose installation, run:

docker-compose --version

4. Run the following command from the `server/containers/docker` directory.
3. Download Kaa debian package from the [official site](http://www.kaaproject.org/download-kaa/) or build your Kaa project locally.

To build locally, clone Kaa repository

$ git clone https://github.com/kaaproject/kaa.git

and run the following command from the `kaa` directory.

$ mvn -P compile-gwt,mongo-dao,mariadb-dao clean install verify

This will generate a `kaa-node.deb` file in the `server/node/target/` directory.

>**NOTE:** For more information, see [how to build your Kaa project locally]({{root_url}}Administration-guide/System-installation/Building-Kaa-server-from-source-code/).
{:.note}

4. Put the `kaa-node.deb` file in the `server/containers/docker` directory of your cloned Kaa repository.

5. Run the following command from the `server/containers/docker` directory.

docker build --build-arg setupfile=kaa-node.deb -t kaa-node:0.10.0 .
Alternatively, you can run the following command.

Alternatively, you can run the following command from the same directory.

build.sh


Expand Down