Public | Automated Build

Last pushed: 2 years ago
Short Description
Opensearchserver on Debian
Full Description

Full documentation at https://github.com/AlexandreToyer/opensearchserver-docker

Run a container

/path/to/local/folder must be a directory that must contains directories opensearchserver/data. It will be used as the data folder by OpenSearchServer.

docker run -d -P -v </path/to/local/folder>:/srv alexandretoyer/opensearchserver
  • parameter -d tells docker to daemonize this container (run in background)
  • parameter -P tells docker to map ports exposed in the container
  • parameter -v is used to map a local folder to the /srv folder inside the container

Configure memory

Variable MEMORY can be used to configure memory to allow to OpenSearchServer.

Value can be expressed with unit k, m or g.

docker run -d -P -v </path/to/local/folder>:/srv -e MEMORY=4g alexandretoyer/opensearchserver

Get port used by Docker

docker ps -l

Here is an output example:

CONTAINER ID        IMAGE                                    COMMAND                CREATED             STATUS              PORTS                     NAMES
3b49cb1c7fed        alexandretoyer/opensearchserver:latest   /bin/sh -c '/start_o   23 minutes ago      Up 23 minutes       0.0.0.0:49185->9090/tcp   backstabbing_mayer

Column PORTS gives us the port to use. In this example it's 49185.

Open browser to access OpenSearchServer

Browse to 127.0.0.1:<port used by docker>, for example 127.0.0.1:49185.

Docker Pull Command
Owner
alexandretoyer

Comments (1)
ofostier
2 years ago

Hello,

I've an error when i create an index.

Java.io.FileNotFoundException: /srv/opensearchserver/data/yolo/config.xml (Permission denied)

Index "yolo" was created correctly but OSS was unable to write in this directory.
I've make a 777 chmod to "yolo" but nothing seam to work.

Any idea ?

Olivier