mirror of
https://github.com/elastic/logstash.git
synced 2025-06-28 17:53:28 -04:00
build docker images from logstash repo (#10603)
introduces two rake tasks: `rake artifact:docker_oss` and `rake artifact:docker`, which will create the docker images of the OSS and non OSS packages. These tasks depend on the tar artifacts being built. Also `rake artifact:all` has been modified to also call these two tasks. most code was moved from https://github.com/elastic/logstash-docker/
This commit is contained in:
parent
bb8d4fbc19
commit
dc5db673ee
33 changed files with 1088 additions and 2 deletions
16
docker/tests/constants.py
Normal file
16
docker/tests/constants.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
import os
|
||||
import pytest
|
||||
from subprocess import run, PIPE
|
||||
|
||||
version = run('./bin/elastic-version', stdout=PIPE).stdout.decode().strip()
|
||||
version_number = version.split('-')[0] # '7.0.0-alpha1-SNAPSHOT' -> '7.0.0'
|
||||
logstash_version_string = 'logstash %s' % version_number # eg. 'logstash 7.0.0'
|
||||
|
||||
|
||||
try:
|
||||
if len(os.environ['STAGING_BUILD_NUM']) > 0:
|
||||
version += '-%s' % os.environ['STAGING_BUILD_NUM'] # eg. '5.3.0-d5b30bd7'
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
container_name = 'logstash-test'
|
Loading…
Add table
Add a link
Reference in a new issue