UPDATE 21/09/19:

Everything has been comitted and merged upstream. So you can simply run:

pkg install opensearch

STALE

Want to try out OpenSearch on FreeBSD?

Right now there is no official support or port for OpenSearch on FreeBSD, so I created a small hotfix for a demo installation. As I like to run everything on BastilleBSD I added basic support for jails as well (due to missing default loopback interface).

Install dependencies:

pkg install openjdk15 bash

Fetch and extract opensearch and create a FreeBSD clone:

The attached patch adds support for jails as well

fetch https://artifacts.opensearch.org/releases/bundle/opensearch/1.0.0/opensearch-1.0.0-linux-x64.tar.gz
tar xvzf opensearch-1.0.0-linux-x64.tar.gz
fetch https://hackacad.net/static/os-freebsd_0.1a.patch
patch -p0 -tRi os-freebsd_0.1a.patch

Start OpenSearch

cd opensearch-1.0.0
setenv JAVA_HOME /usr/local/
bin/opensearch

Goto https:[yourip]:9200 and login with default credentials admin / admin

DISCLAIMER

Don’t use that hotfix in production environments!

The certificates are provided by AWS and should but regenerated as soon as you might even think of using the cluster in production. Same for the default credentials.

Right now there’s no official port for FreeBSD (fixing paths and environments, rc scripts etc.). If there’s someone out there who’s interested in this: FreeBSD porters handbook