diff --git a/config/end_to_end/nsrlsvr.Dockerfile b/config/end_to_end/nsrlsvr.Dockerfile index 88a8d37cf8..7f5a8cbcf9 100644 --- a/config/end_to_end/nsrlsvr.Dockerfile +++ b/config/end_to_end/nsrlsvr.Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:noble +FROM ubuntu:jammy MAINTAINER Log2Timeline nsrlsvr-container + +# Run nsrlsvr self tests +docker run `cat nsrlsvr-container` /bin/bash -c "time /usr/bin/nsrlsvr --dry-run"; + +# Run nsrlsvr listening on port 9120 +docker run -d --name=nsrlsvr --network=nsrlsvr-network -p 127.0.0.1:9120:9120 `cat nsrlsvr-container` /bin/bash -c "/usr/bin/nsrlsvr -p 9120"; + +# Give nsrlsvr 1 minute to load the hashes and be ready for action +# `time nsrlsvr --dry-run' indicates this takes about 30 seconds +sleep 60 + diff --git a/config/linux/ubuntu_install_opensearch.sh b/config/linux/ubuntu_install_opensearch.sh deleted file mode 100755 index 8568e0c9c5..0000000000 --- a/config/linux/ubuntu_install_opensearch.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash -# -# Script to install OpenSearch on Ubuntu - -# Exit on error. -set -e - -OPENSEARCH_VERSION="1.2.2"; - -sudo apt-get update -sudo apt-get install -y wget - -# TODO: update /etc/sysctl.conf -# vm.max_map_count=262144 - -adduser opensearch - -# Download OpenSearch - -wget -q https://artifacts.opensearch.org/releases/bundle/opensearch/${OPENSEARCH_VERSION}/opensearch-${OPENSEARCH_VERSION}-linux-x64.tar.gz - -# Install OpenSearch - -tar xfv ${PWD}/opensearch-${OPENSEARCH_VERSION}-linux-x64.tar.gz - -# Install the OpenSearch Python bindings - -sudo apt-get install -y python3-opensearch - -# Start OpenSearch - -cd opensearch-${OPENSEARCH_VERSION} - -echo "Starting OpenSearch"; - -su -c './opensearch-tar-install.sh -Eplugins.security.disabled=true' opensearch &