This document outlines the development process for the Coherence CLI.
This section outlines how to build the CLI.
- Install Go version 1.20 from https://golang.org/doc/install.
- Maven 3.6.3+
- JDK 1.8+
Note: Java and Maven are only required if you wish to run the tests.
git clone https://github.com/oracle/coherence-cli.git
cd coherence-cli
make cohctl
# Add to your PATH
export PATH=`pwd`/bin:$PATHTest by running the following:
cohctl versionmake cohctl-allThe binaries for all supported platforms are available in the following directories:
bin/linux/amd64/cohctlbin/linux/arm64/cohctlbin/linux/386/cohctlbin/windows/amd64/cohctl.exebin/windows/arm/cohctl.exebin/darwin/amd64/cohctlbin/darwin/arm64/cohctl
- Docker must be running
- Docker Compose must be available in the path
make clean test-cohctlRuns all end-to-end tests for the commands against a two node Coherence CE cluster using the latest Coherence CE version. This will automatically start a cluster using docker compose.
$ make clean test-e2e-standalone Runs discovery tests only
make clean test-discovery COHERENCE_VERSION=21.12.3 make clean build-test-images test-e2e-standalone
COHERENCE_VERSION=14.1.1-0-7 make clean build-test-images test-e2e-standaloneFor 21.12+ you must use the following to enable executors
PROFILES=,executor COHERENCE_VERSION=21.12.3 make clean build-test-images test-e2e-standaloneNote: You must have the Coherence Commercial versions in your local Maven repository.
PROFILES=,commercial COHERENCE_VERSION=14.1.1-0-6 COHERENCE_GROUP_ID=com.oracle.coherence make clean build-test-images test-e2e-standalone
PROFILES=,commercial COHERENCE_VERSION=12.2.1-4-10 COHERENCE_GROUP_ID=com.oracle.coherence make clean build-test-images test-e2e-standalone