cernopendata / opendata.cern.ch

Source code for the CERN Open Data portal
http://opendata.cern.ch/
GNU General Public License v2.0
652 stars 145 forks source link

docker: fix OpenSearch container starting troubles #3634

Closed tiborsimko closed 1 month ago

tiborsimko commented 2 months ago

As of new OpenSearch version, the admin password is mandatory, leading to runtime starting troubles.

How to reproduce the problem:

$ grep 'image.*docker.io' docker-compose-dev.yml | awk '{print "docker pull " $2}' | sh
$ docker compose -f docker-compose-dev.yml up
...
opensearch-1             | No custom admin password found. Please provide a password
                           via the environment variable OPENSEARCH_INITIAL_ADMIN_PASSWORD.
opensearch-1 exited with code 1