You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ol...@apache.org on 2017/10/31 10:29:43 UTC

ambari git commit: AMBARI-22331. Log Search: add descriptions about how to use Log Search environment with docker compose (oleewere)

Repository: ambari
Updated Branches:
  refs/heads/trunk 6d676a931 -> a1da9934f


AMBARI-22331. Log Search: add descriptions about how to use Log Search environment with docker compose (oleewere)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a1da9934
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a1da9934
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a1da9934

Branch: refs/heads/trunk
Commit: a1da9934f65031e8be1dbb7216cfdac438e972c8
Parents: 6d676a9
Author: Oliver Szabo <ol...@gmail.com>
Authored: Mon Oct 30 20:54:06 2017 +0100
Committer: Oliver Szabo <ol...@gmail.com>
Committed: Mon Oct 30 20:56:05 2017 +0100

----------------------------------------------------------------------
 ambari-logsearch/README.md | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a1da9934/ambari-logsearch/README.md
----------------------------------------------------------------------
diff --git a/ambari-logsearch/README.md b/ambari-logsearch/README.md
index d05f45a..43878f2 100644
--- a/ambari-logsearch/README.md
+++ b/ambari-logsearch/README.md
@@ -4,21 +4,33 @@
 
 ### Prerequisites
 
-Install [docker] (https://docs.docker.com/)
-For Mac OS X use [Docker Machine] (https://docs.docker.com/machine/)
+- Install [docker](https://docs.docker.com/)
+- For Mac OS X use [Docker for Mac](https://docs.docker.com/docker-for-mac/)
+- [Docker compose](https://docs.docker.com/compose/) is also required.
 
 ### Build and start Log Search in docker container
 ```bash
 # to see available commands: run start-logsearch without arguments
 cd docker
-./logsearch-docker build-and-run
+./logsearch-docker build-and-run # build mvn project locally, build docker image, start containers
 ```
-If you run the script at first time, it will generate you a new Profile file inside docker directory, in that file you should set AMBARI_LOCATION (point to the local ambari root folder) and MAVEN_REPOSITORY_LOCATION (point to local maven repository location). These will be used as volumes for the docker container. If Profile is generated for first time use `./logsearch-docker start` command to start container without rebuild the project/container again.
+If you run the script at first time, it will generate you a new `Profile` file or an `.env` file inside docker directory (run twice if both missing and you want to generate Profile and .env as well), in .env file you should set `MAVEN_REPOSITORY_LOCATION` (point to local maven repository location, it uses `~/.m2` by default). These will be used as volumes for the docker container. Profile file holds the environment variables that are used inside the containers, the .env file is used outside of the containers
 
-After the logsearch container is started you can enter to it with following command:
+Then you can use the `logsearch-docker` script to start the containers (`start` command).
+Also you can use docker-compose manually to start/manage the containers.
 ```bash
+docker-compose up -d
+# or start all services in one container:
+docker-compose -f all.yml up -d
+```
+After the logsearch container is started you can enter to it with following commands:
+```bash
+docker exec -it docker_logsearch_1 bash
+# or if you used all.yml for starting the logsearch docker container:
 docker exec -it logsearch bash
 ```
+In case if you started the containers separately and if you would like to access Solr locally with through your external ZooKeeper container, then point `solr` to `localhost` in your `/etc/hosts` file.
+
 ## Package build process