You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2018/11/27 16:23:17 UTC

[GitHub] keith-turner commented on a change in pull request #43: Major refactor to support running in Docker

keith-turner commented on a change in pull request #43: Major refactor to support running in Docker
URL: https://github.com/apache/accumulo-testing/pull/43#discussion_r236699087
 
 

 ##########
 File path: README.md
 ##########
 @@ -23,10 +23,43 @@ on your machine as well as an Accumulo instance to use for testing.
         cp accumulo-testing.properties.example accumulo-testing.properties
         vim accumulo-testing.properties
 
-3. Tests are run using the `accumulo-testing` command which is located in the `bin/`
-   directory. Run this command without any arguments to view its usage and see available tests.
 
-        ./bin/accumulo-testing
+### Run tests locally
+
+Tests are run using the following scripts in `bin/`:
+
+  * `cingest` - Runs continous ingest tests
+  * `rwalk` - Runs random walk tests
+  * `performance` - Runs performance test
+  * `agitator` - Runs agitator
+
+Run the scripts without arguments to view usage.
+
+### Run tests in Docker
+
+1. To create the `accumulo-testing` docker image, make sure the following files exist in your clone:
+
+    * `conf/accumulo-client.properties` - Copy and configure this from your Accumulo install
+    * `conf/accumulo-testing.properties` - Copy this from the example file and configure it
+    * `target/accumulo-testing-2.0.0-SNAPSHOT-shaded.jar` - Build by run `./bin/cingest` without arguments
+
+   Run the following command to create the image:
+
+   ```
+   docker build -t accumulo-testing .
+   ```
+
+2. The `accumulo-testing` image can run a single command:
+
+   ```bash
+   docker run --network="host" accumulo-testing cingest createtable
+   ```
+
+3. Multiple containers can also be run:
 
 Review comment:
   Should caveat that the following command will only work if docker swarm is setup.  Could provide a link for docker swarm.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services