Repository: incubator-ratis Updated Branches: refs/heads/master 5ae2490de -> 29850741e
RATIS-468. Create a tarball assembly for logservice Signed-off-by: Rajeshbabu Chintaguntla <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-ratis/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ratis/commit/52c10915 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ratis/tree/52c10915 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ratis/diff/52c10915 Branch: refs/heads/master Commit: 52c10915f752a09576707c274e0858f595f8e185 Parents: 5ae2490 Author: Josh Elser <[email protected]> Authored: Sun Dec 23 23:16:42 2018 -0500 Committer: Josh Elser <[email protected]> Committed: Thu Jan 3 15:01:46 2019 -0500 ---------------------------------------------------------------------- ratis-logservice/README.md | 16 +++++++++++++++- ratis-logservice/pom.xml | 7 +++++-- ratis-logservice/src/assembly/assembly.xml | 16 ++++++++++++++++ 3 files changed, 36 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ratis/blob/52c10915/ratis-logservice/README.md ---------------------------------------------------------------------- diff --git a/ratis-logservice/README.md b/ratis-logservice/README.md index 1827594..190f478 100644 --- a/ratis-logservice/README.md +++ b/ratis-logservice/README.md @@ -43,7 +43,21 @@ and the Metadata quorum will choose three of them to form a RAFT quorum to "host Note: the `q` option here references to the Metadata quorum, not the worker quorum as is the case for the Metadata daemons. -Launch client: +Then, the LogService interactive shell can be used to interact with the software: +```bash +$ mvn exec:java -Dexec.mainClass=org.apache.ratis.logservice.shell.LogServiceShell -Dexec.args="-q localhost:9991,localhost:9992,localhost:9993" +``` + +## Docker + +Similarly, a full quorum can be started by building a docker container and then start the docker-compose cluster: +```bash +$ cd ratis-logservice && mvn package assembly:single -DskipTests +$ docker build -t ratis-logservice --build-arg BINARY=target/ratis-logservice-0.4.0-SNAPSHOT-bin.tar.gz --build-arg VERSION=0.4.0-SNAPSHOT . +$ docker-compose up +``` + +Then, a client container can be launched to connect to the cluster: ```bash $ mvn exec:java -Dexec.mainClass=org.apache.ratis.logservice.shell.LogServiceShell -Dexec.args="-q localhost:9990,localhost:9991,localhost:9992" ``` http://git-wip-us.apache.org/repos/asf/incubator-ratis/blob/52c10915/ratis-logservice/pom.xml ---------------------------------------------------------------------- diff --git a/ratis-logservice/pom.xml b/ratis-logservice/pom.xml index a06218b..f180024 100644 --- a/ratis-logservice/pom.xml +++ b/ratis-logservice/pom.xml @@ -56,10 +56,13 @@ <artifactId>maven-source-plugin</artifactId> </plugin> <plugin> - <!--Make it so assembly:single does nothing in here--> <artifactId>maven-assembly-plugin</artifactId> <configuration> - <skipAssembly>true</skipAssembly> + <skipAssembly>false</skipAssembly> + <tarLongFileMode>gnu</tarLongFileMode> + <descriptors> + <descriptor>src/assembly/assembly.xml</descriptor> + </descriptors> </configuration> </plugin> <plugin> http://git-wip-us.apache.org/repos/asf/incubator-ratis/blob/52c10915/ratis-logservice/src/assembly/assembly.xml ---------------------------------------------------------------------- diff --git a/ratis-logservice/src/assembly/assembly.xml b/ratis-logservice/src/assembly/assembly.xml new file mode 100644 index 0000000..77d1f94 --- /dev/null +++ b/ratis-logservice/src/assembly/assembly.xml @@ -0,0 +1,16 @@ +<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"> + <id>bin</id> + <formats> + <format>tar.gz</format> + </formats> + <dependencySets> + <dependencySet> + <outputDirectory>lib</outputDirectory> + <includes> + <include>*:*</include> + </includes> + </dependencySet> + </dependencySets> +</assembly>
