Which Dockerfile is used for the official image?

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:
I wanted to check how the Docker image was built and searched for the Dockerfile used by Opensearch when building the official images
I found one here:

And other ones here:

And more here:

So which one is actually being used?

I’m pretty sure it’s the first one. The second link you provided is how the image is built.

If it helps, in DockerHub you can also see the layers of the image (effectively the Dockerfile commands). Here’s an example with latest: Docker

All the links are for how the image is being built : ) But good tip about looking at the layers. I didn’t know about that. That would help in determining which Dockerfile was used.

Hopefully someone from opensearch reads this and makes this more clear as well

Hi @radu.gheorghe .

I would like to made custom Docker image for our specific purpose (tune image for resource savings), where we need only few plugins, not all plugins from official image. As far as I know, persistent plugin installation/uninstallation is possible only in build time.
I would like to evade approach with init container and do uninstallation every time, when pod in Kubernetes cluster is restarted and we will spending some valuable time to bring it back to live.

This repository looks abandon.
This repository looks maintained, but include bunch of information for not only OpenSearch. Or I miss it purpose?

And this directory in main OpenSearch repository looks usable too.

So, my question is similar: Which Docker file I can use as a template for the purpose? I would like to stay closest to the official Docker images as is possible.

Thank you!

I think this is the one that generates official images: https://github.com/opensearch-project/opensearch-build/tree/main/docker/release

OK, thank you, I will check it.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.