Skip to content

Commit

Permalink
fix(build): Set a default value for each build arg
Browse files Browse the repository at this point in the history
Closes #1015
  • Loading branch information
antoineco committed Sep 14, 2024
1 parent fbf3041 commit e8a5397
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion extensions/enterprise-search/Dockerfile
Original file line number Diff line number Diff line change
@@ -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}
2 changes: 1 addition & 1 deletion extensions/filebeat/Dockerfile
Original file line number Diff line number Diff line change
@@ -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}
2 changes: 1 addition & 1 deletion extensions/fleet/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion extensions/heartbeat/Dockerfile
Original file line number Diff line number Diff line change
@@ -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}
2 changes: 1 addition & 1 deletion extensions/metricbeat/Dockerfile
Original file line number Diff line number Diff line change
@@ -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}
2 changes: 1 addition & 1 deletion kibana/Dockerfile
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion logstash/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion setup/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit e8a5397

Please sign in to comment.