Skip to content

Commit 1d2cf15

Browse files
committed
Regenerated website content
1 parent 683cb8c commit 1d2cf15

File tree

1 file changed

+92
-25
lines changed

1 file changed

+92
-25
lines changed

docs/docs/index.html

+92-25
Original file line numberDiff line numberDiff line change
@@ -580,40 +580,96 @@ <h2 id="repair-schedule-resource">Repair Schedule Resource</h2>
580580
</ul></li>
581581
</ul>
582582

583-
<h2 id="running-through-docker">Running through Docker</h2>
583+
<h2 id="docker">Docker</h2>
584584

585-
<h3 id="build-reaper-docker-image">Build Reaper Docker Image</h3>
585+
<p><a href="https://docs.docker.com/engine/installation/">Docker</a> and <a href="https://docs.docker.com/compose/install/">Docker Compose</a> will need to be installed in order to use the commands in this section.</p>
586586

587-
<p>First, build the Docker image and add it to your local image cache using the
588-
<code>cassandra-reaper:latest</code> tag:</p>
587+
<h3 id="building-reaper-packages-with-docker">Building Reaper Packages with Docker</h3>
589588

590-
<p><code>mvn clean package docker:build</code></p>
589+
<p>Building Reaper packages requires quite a few dependencies, especially when making changes to the web interface code. In an effort to simplify the build process, Dockerfiles have been created that implement the build actions required to package Reaper.</p>
590+
591+
<p>To build the JAR and other packages which are then placed in the <em>packages</em> directory run the following commands from the top level directory:</p>
592+
593+
<pre><code class="language-bash">cd src/packaging
594+
docker-compose build reaper-build-packages &amp;&amp; docker-compose run reaper-build-packages
595+
</code></pre>
596+
597+
<h3 id="building-reaper-docker-image">Building Reaper Docker Image</h3>
598+
599+
<p>To build the Reaper Docker Image which is then added to the local image cache using the <code>cassandra-reaper:latest</code> tag, run the following commands from the top level directory:</p>
600+
601+
<pre><code class="language-bash">cd src/server
602+
mvn package docker:build
603+
</code></pre>
604+
605+
<p>Note that the above command will build the Reaper JAR and place it in the <em>src/server/target</em> directory prior to creating the Docker Image. It is also possible to build the JAR file using the <a href="building-reaper-packages-with-docker">Docker package build</a> instructions and omitting the <code>package</code> command from the above Maven commands.</p>
591606

592607
<h3 id="start-docker-environment">Start Docker Environment</h3>
593608

594-
<p>First, start the Cassandra cluster:</p>
609+
<p>The <code>docker-compose</code> services available allow for orchestration of an environment that uses default settings. In addition, services are provided that allow orchestration of an environment in which the connections between the services are SSL encrypted. Services which use SSL encryption contain a <code>-ssl</code> suffix in their name.</p>
610+
611+
<h4 id="default-settings-environment">Default Settings Environment</h4>
595612

596-
<p><code>docker-compose up cassandra</code></p>
613+
<p>From the top level directory change to the <em>src/packaging</em> directory:</p>
597614

598-
<p>You can use the <code>nodetool</code> Docker Compose service to check on the Cassandra
599-
node&rsquo;s status:</p>
615+
<pre><code class="language-bash">cd src/packaging
616+
</code></pre>
600617

601-
<p><code>docker-compose run nodetool status</code></p>
618+
<p>Start the Cassandra cluster:</p>
602619

603-
<p>Once the Cassandra node is online and accepting CQL connections,
604-
create the required <code>reaper_db</code> Cassandra keyspace to allow Reaper to save
605-
its cluster and scheduling data.</p>
620+
<pre><code class="language-bash">docker-compose up cassandra
621+
</code></pre>
606622

607-
<p>By default, the <code>reaper_db</code> keyspace is created using a replication factor
608-
of 1. To change this replication factor, provide the intended replication
609-
factor as an optional argument:</p>
623+
<p>The <code>nodetool</code> Docker Compose service can be used to check on the Cassandra node&rsquo;s status:</p>
610624

611-
<p><code>docker-compose run initialize-reaper_db [$REPLICATION_FACTOR]</code></p>
625+
<pre><code class="language-bash">docker-compose run nodetool status
626+
</code></pre>
612627

613-
<p>Wait a few moments for the <code>reaper_db</code> schema change to propagate,
614-
then start Reaper:</p>
628+
<p>Once the Cassandra node is online and accepting CQL connections, create the required <code>reaper_db</code> Cassandra keyspace to allow Reaper to save its cluster and scheduling data.</p>
615629

616-
<p><code>docker-compose up reaper</code></p>
630+
<p>By default, the <code>reaper_db</code> keyspace is created using a replication factor of 1. To change this replication factor, provide the intended replication factor as an optional argument:</p>
631+
632+
<pre><code class="language-bash">docker-compose run cqlsh-initialize-reaper_db [$REPLICATION_FACTOR]
633+
</code></pre>
634+
635+
<p>Wait a few moments for the <code>reaper_db</code> schema change to propagate, then start Reaper:</p>
636+
637+
<pre><code class="language-bash">docker-compose up reaper
638+
</code></pre>
639+
640+
<h4 id="ssl-encrypted-connections-environment">SSL Encrypted Connections Environment</h4>
641+
642+
<p>From the top level directory change to the <em>src/packaging</em> directory:</p>
643+
644+
<pre><code class="language-bash">cd src/packaging
645+
</code></pre>
646+
647+
<p>Generate the SSL Keystore and Truststore which will be used to encrypt the connections between Reaper and Cassandra.</p>
648+
649+
<pre><code class="language-bash">docker-compose run generate-ssl-stores
650+
</code></pre>
651+
652+
<p>Start the Cassandra cluster which encrypts both the JMX and Native Protocol:</p>
653+
654+
<pre><code class="language-bash">docker-compose up cassandra-ssl
655+
</code></pre>
656+
657+
<p>The <code>nodetool-ssl</code> Docker Compose service can be used to check on the Cassandra node&rsquo;s status:</p>
658+
659+
<pre><code class="language-bash">docker-compose run nodetool-ssl status
660+
</code></pre>
661+
662+
<p>Once the Cassandra node is online and accepting encrypted SSL connections via the Native Transport protocol, create the required <code>reaper_db</code> Cassandra keyspace to allow Reaper to save its cluster and scheduling data.</p>
663+
664+
<p>By default, the <code>reaper_db</code> keyspace is created using a replication factor of 1. To change this replication factor, provide the intended replication factor as an optional argument:</p>
665+
666+
<pre><code class="language-bash">docker-compose run cqlsh-initialize-reaper_db-ssl [$REPLICATION_FACTOR]
667+
</code></pre>
668+
669+
<p>Wait a few moments for the <code>reaper_db</code> schema change to propagate, then start the Reaper service that will establish encrypted connections to Cassandra:</p>
670+
671+
<pre><code class="language-bash">docker-compose up reaper-ssl
672+
</code></pre>
617673

618674
<h3 id="access-the-environment">Access The Environment</h3>
619675

@@ -623,22 +679,33 @@ <h3 id="access-the-environment">Access The Environment</h3>
623679

624680
<p>When adding the Cassandra node to the Reaper UI, use the IP address found via:</p>
625681

626-
<p><code>docker-compose run nodetool status</code></p>
682+
<pre><code class="language-bash">docker-compose run nodetool status
683+
</code></pre>
684+
685+
<p>The helper <code>cqlsh</code> Docker Compose service has also been included for both the default and SSL encrypted environments:</p>
627686

628-
<p>The helper <code>cqlsh</code> Docker Compose service has also been included:</p>
687+
<h4 id="default-environment">Default Environment</h4>
629688

630-
<p><code>docker-compose run cqlsh</code></p>
689+
<pre><code class="language-bash">docker-compose run cqlsh
690+
</code></pre>
691+
692+
<h4 id="ssl-encrypted-environment">SSL Encrypted Environment</h4>
693+
694+
<pre><code class="language-bash">docker-compose run cqlsh-ssl
695+
</code></pre>
631696

632697
<h3 id="destroying-the-docker-environment">Destroying the Docker Environment</h3>
633698

634699
<p>When terminating the infrastructure, use the following command to stop
635700
all related Docker Compose services:</p>
636701

637-
<p><code>docker-compose down</code></p>
702+
<pre><code class="language-bash">docker-compose down
703+
</code></pre>
638704

639705
<p>To completely clean up all persistent data, delete the <code>./data/</code> directory:</p>
640706

641-
<p><code>rm -rf ./data/</code></p>
707+
<pre><code class="language-bash">rm -rf ./data/
708+
</code></pre>
642709

643710
</div>
644711

0 commit comments

Comments
 (0)