Skip to content

Elasticsearch fails du to https://www.docker.elastic.co/r/elasticsearch #2672

@JackGlobetrotter

Description

@JackGlobetrotter

Steps To Reproduce

Elastic search install fails when the first 50 tags on https://www.docker.elastic.co/r/elasticsearch are SHA hashes only:

curl -s -m 900 https://www.docker.elastic.co/r/elasticsearch | grep -Eo "[[:digit:]]\\.[[:digit:]][[:digit:]]\\.[[:digit:]]" | sort --version-sort
1.53.5
1.53.5

can be fixed by increasing limit to first 500 lines:

curl -s -m 900 https://www.docker.elastic.co/r/elasticsearch?limit=500 | grep -Eo "[[:digit:]]\\.[[:digit:]][[:digit:]]\\.[[:digit:]]" | sort --version-sort | tail -1
8.15.1

Expected Result

Bash line should get the latest elasticsearch docker tag, e.g. 8.XX.X

Actual Result

Bash line returns wrong value if the first 50 tags on https://www.docker.elastic.co/r/elasticsearch are SHA hashes only:

curl -s -m 900 https://www.docker.elastic.co/r/elasticsearch | grep -Eo "[[:digit:]]\\.[[:digit:]][[:digit:]]\\.[[:digit:]]" | sort --version-sort
1.53.5
1.53.5

Screenshots, Videos, or Pastebins

No response

Additional Context

No response

Build Version

Nextcloud Hub 9 (30.0.0)

Environment

By using the scripts

Environment Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions