[7x backport] Update dockerfile template to allow selection of architecture by env (#12641)

Clean backport of #12636

This commit updates the dockerfile template to support environment
variables being used to retrieve the architecture appropriate logstash
build, in the same way as is currently done for the Elasticsearch docker build.
This is required to support the official dockerhub builds of Logstash.

Relates #12578
This commit is contained in:
Rob Bavey 2021-02-04 11:34:25 -05:00 committed by GitHub
parent c96ae0d4bd
commit de3ee98f87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,10 +6,10 @@
{% endif -%}
{% if image_flavor == 'oss' -%}
{% set tarball = 'logstash-oss-%s-linux-%s.tar.gz' % (elastic_version, arch) -%}
{% set tarball = 'logstash-oss-%s-linux-$(arch).tar.gz' % (elastic_version) -%}
{% set license = 'Apache 2.0' -%}
{% else -%}
{% set tarball = 'logstash-%s-linux-%s.tar.gz' % (elastic_version, arch) -%}
{% set tarball = 'logstash-%s-linux-$(arch).tar.gz' % (elastic_version) -%}
{% set license = 'Elastic License' -%}
{% endif -%}