Skip to content

Commit e8a5397

Browse files
committed
fix(build): Set a default value for each build arg
Closes #1015
1 parent fbf3041 commit e8a5397

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

.github/workflows/update.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
# Escape period characters so sed interprets them literally
7171
cur_ver="${cur_ver//./\\.}"
7272
73-
declare -a upd_files=( .env README.md )
73+
declare -a upd_files=( .env README.md */Dockerfile extensions/*/Dockerfile )
7474
if [ -f tls/README.md ]; then
7575
upd_files+=( tls/README.md )
7676
fi

elasticsearch/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG ELASTIC_VERSION
22

33
# https://www.docker.elastic.co/
4-
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
4+
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION:-8.15.1}
55

66
# Add your elasticsearch plugins setup here
77
# Example: RUN elasticsearch-plugin install analysis-icu
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ARG ELASTIC_VERSION
22

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

extensions/filebeat/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
ARG ELASTIC_VERSION
22

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

extensions/fleet/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG ELASTIC_VERSION
22

3-
FROM docker.elastic.co/beats/elastic-agent:${ELASTIC_VERSION}
3+
FROM docker.elastic.co/beats/elastic-agent:${ELASTIC_VERSION:-8.15.1}
44

55
# Ensure the 'state' directory exists and is owned by the 'elastic-agent' user,
66
# otherwise mounting a named volume in that location creates a directory owned

extensions/heartbeat/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
ARG ELASTIC_VERSION
22

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

extensions/metricbeat/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
ARG ELASTIC_VERSION
22

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

kibana/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG ELASTIC_VERSION
22

33
# https://www.docker.elastic.co/
4-
FROM docker.elastic.co/kibana/kibana:${ELASTIC_VERSION}
4+
FROM docker.elastic.co/kibana/kibana:${ELASTIC_VERSION:-8.15.1}
55

66
# Add your kibana plugins setup here
77
# Example: RUN kibana-plugin install <name|url>

logstash/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG ELASTIC_VERSION
22

33
# https://www.docker.elastic.co/
4-
FROM docker.elastic.co/logstash/logstash:${ELASTIC_VERSION}
4+
FROM docker.elastic.co/logstash/logstash:${ELASTIC_VERSION:-8.15.1}
55

66
# Add your logstash plugins setup here
77
# Example: RUN logstash-plugin install logstash-filter-json

setup/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG ELASTIC_VERSION
22

33
# https://www.docker.elastic.co/
4-
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
4+
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION:-8.15.1}
55

66
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)