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:$PATH
Test by running the following:
cohctl version
make cohctl-all
The binaries for all supported platforms are available in the following directories:
bin/linux/amd64/cohctl
bin/linux/arm64/cohctl
bin/linux/386/cohctl
bin/windows/amd64/cohctl.exe
bin/windows/arm/cohctl.exe
bin/darwin/amd64/cohctl
bin/darwin/arm64/cohctl
- Docker must be running
- Docker Compose must be available in the path
make clean test-cohctl
Runs 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-standalone
For 21.12+ you must use the following to enable executors
PROFILES=,executor COHERENCE_VERSION=21.12.3 make clean build-test-images test-e2e-standalone
Note: 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