fix(build): Set a default value for each build arg

Closes #1015
This commit is contained in:
Antoine Cotten
2024-09-14 18:31:30 +00:00
parent fbf3041fa0
commit e8a539777f
10 changed files with 10 additions and 10 deletions

View File

@@ -70,7 +70,7 @@ jobs:
# Escape period characters so sed interprets them literally
cur_ver="${cur_ver//./\\.}"
declare -a upd_files=( .env README.md )
declare -a upd_files=( .env README.md */Dockerfile extensions/*/Dockerfile )
if [ -f tls/README.md ]; then
upd_files+=( tls/README.md )
fi

View File

@@ -1,7 +1,7 @@
ARG ELASTIC_VERSION
# https://www.docker.elastic.co/
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION:-8.15.1}
# Add your elasticsearch plugins setup here
# Example: RUN elasticsearch-plugin install analysis-icu

View File

@@ -1,4 +1,4 @@
ARG ELASTIC_VERSION
# https://www.docker.elastic.co/
FROM docker.elastic.co/enterprise-search/enterprise-search:${ELASTIC_VERSION}
FROM docker.elastic.co/enterprise-search/enterprise-search:${ELASTIC_VERSION:-8.15.1}

View File

@@ -1,3 +1,3 @@
ARG ELASTIC_VERSION
FROM docker.elastic.co/beats/filebeat:${ELASTIC_VERSION}
FROM docker.elastic.co/beats/filebeat:${ELASTIC_VERSION:-8.15.1}

View File

@@ -1,6 +1,6 @@
ARG ELASTIC_VERSION
FROM docker.elastic.co/beats/elastic-agent:${ELASTIC_VERSION}
FROM docker.elastic.co/beats/elastic-agent:${ELASTIC_VERSION:-8.15.1}
# Ensure the 'state' directory exists and is owned by the 'elastic-agent' user,
# otherwise mounting a named volume in that location creates a directory owned

View File

@@ -1,3 +1,3 @@
ARG ELASTIC_VERSION
FROM docker.elastic.co/beats/heartbeat:${ELASTIC_VERSION}
FROM docker.elastic.co/beats/heartbeat:${ELASTIC_VERSION:-8.15.1}

View File

@@ -1,3 +1,3 @@
ARG ELASTIC_VERSION
FROM docker.elastic.co/beats/metricbeat:${ELASTIC_VERSION}
FROM docker.elastic.co/beats/metricbeat:${ELASTIC_VERSION:-8.15.1}

View File

@@ -1,7 +1,7 @@
ARG ELASTIC_VERSION
# https://www.docker.elastic.co/
FROM docker.elastic.co/kibana/kibana:${ELASTIC_VERSION}
FROM docker.elastic.co/kibana/kibana:${ELASTIC_VERSION:-8.15.1}
# Add your kibana plugins setup here
# Example: RUN kibana-plugin install <name|url>

View File

@@ -1,7 +1,7 @@
ARG ELASTIC_VERSION
# https://www.docker.elastic.co/
FROM docker.elastic.co/logstash/logstash:${ELASTIC_VERSION}
FROM docker.elastic.co/logstash/logstash:${ELASTIC_VERSION:-8.15.1}
# Add your logstash plugins setup here
# Example: RUN logstash-plugin install logstash-filter-json

View File

@@ -1,6 +1,6 @@
ARG ELASTIC_VERSION
# https://www.docker.elastic.co/
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION:-8.15.1}
ENTRYPOINT ["/entrypoint.sh"]