These instructions are for advanced engineers who want to run their own instance of FeatureHub.
If you don’t need to customise or enhance FeatureHub, we recommend using the prebuilt Docker images for running FeatureHub.
This project requires you to have Java 11 as your primary Java and Maven 3.5 or later installed.
Java 11 should be downloaded from https://adoptopenjdk.net/ (do not download it from Oracle)
This downloads as a gziped tar file, extract the folder and move it to
/Library/Java/JavaVirtualMachines but ensure
you tack a
.jdk on the end, so
Then set the environment variable JAVA_HOME to that folder + `/Contents/Home'.
We recommend using brew on Mac OS X to install Java. You can use any version 11+.
If you have downloaded it from AdoptOpenJDK (or used brew), then use this:
If you have downloaded it from Oracle, use the following (or similar based on the version you have)
This will cause the installed 'java' to swap to that version.
java -version to confirm it has changed.
mvn clean install and it should build everything, including the Docker ready
tar file (see below).
If you get an error like
This application stack uses Java 11+.
Ensure you do a:
mvn -f pom-first.xml clean install before opening in IDE and before opening the main pom.xml file.
docker run -d --name nats-main -p 4222:4222 -p 6222:6222 -p 8222:8222 nats:2.1.2-scratch
if you were running it and the container has shut down for some reason (machine reset for example):
docker restart nats-main
Alternatively, you can simply download it for your O/S and run it. It takes up less memory.