Skip to content

Make is_ready container-image configurable #2593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maximilianpohle
Copy link

Hi everybody,
due to the reduced Docker rate limits, it may happen that the stack can no longer be downloaded because of the is_ready Docker image.

Therefore, I have created an additional environment variable that allows overriding the image.

Best regards
Max

@jsoriano
Copy link
Member

/test

jsoriano
jsoriano previously approved these changes Jun 13, 2025
@jsoriano jsoriano dismissed their stale review June 13, 2025 08:34

Missing code conventions

@@ -110,6 +112,7 @@ type ImageRefs struct {
Elasticsearch string `yaml:"elasticsearch"`
Kibana string `yaml:"kibana"`
Logstash string `yaml:"logstash"`
is_ready string `yaml:"is_ready"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
is_ready string `yaml:"is_ready"`
IsReady string `yaml:"is_ready"`

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review other compose files in this directory that may be using this image.

@@ -28,7 +28,7 @@ services:
- "127.0.0.1:9200:9200"

elasticsearch_is_ready:
image: tianon/true:multiarch
image: "${IS_READY_IMAGE_REF}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be updated also the docker-compose for local services ?
https://github.com/elastic/elastic-package/blob/f00e430124b1e8bb43f234fcc7e756461a107786/internal/stack/_static/local-services-docker-compose.yml.tmpl

To use that environment variable, this file uses facts instead. Here it is the method where those facts are set:

"logstash_image": imageRefs.Logstash,

@@ -37,6 +37,7 @@ const (
elasticsearchImageName = "docker.elastic.co/elasticsearch/elasticsearch"
kibanaImageName = "docker.elastic.co/kibana/kibana"
logstashImageName = "docker.elastic.co/logstash/logstash"
isreadyImageName = "tianon/true:multiarch"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit.

Suggested change
isreadyImageName = "tianon/true:multiarch"
isReadyImageName = "tianon/true:multiarch"

@elasticmachine
Copy link
Collaborator

elasticmachine commented Jun 13, 2025

💔 Build Failed

Failed CI Steps

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants