Skip to content

Commit

Permalink
Update to most recent latest builds (#3161)
Browse files Browse the repository at this point in the history
* Merge snapshot and latest build for Logstash into 1 docker file
  • Loading branch information
ruflin authored and tsg committed Dec 9, 2016
1 parent 77ef379 commit 37701a2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM java:8-jre

ENV LS_VERSION 5
ARG LS_DOWNLOAD_URL
ARG LS_VERSION

ENV VERSION 6.0.0-alpha1-SNAPSHOT
ENV URL https://snapshots.elastic.co/downloads/logstash/logstash-${VERSION}.tar.gz
ENV PATH $PATH:/opt/logstash-$VERSION/bin
ENV URL ${LS_DOWNLOAD_URL}/logstash-${LS_VERSION}.tar.gz
ENV PATH $PATH:/opt/logstash-${LS_VERSION}/bin

# Cache variable can be set during building to invalidate the build cache with `--build-arg CACHE=$(date +%s) .`
ARG CACHE=1
Expand Down
22 changes: 0 additions & 22 deletions testing/environments/docker/logstash/Dockerfile-5.0.0

This file was deleted.

1 change: 0 additions & 1 deletion testing/environments/docker/logstash/Dockerfile-latest

This file was deleted.

9 changes: 6 additions & 3 deletions testing/environments/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:latest
image: docker.elastic.co/elasticsearch/elasticsearch:5.1.1
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "network.host="
Expand All @@ -15,7 +15,10 @@ services:
logstash:
build:
context: docker/logstash
dockerfile: Dockerfile-latest
dockerfile: Dockerfile
args:
LS_VERSION: 5.1.1
LS_DOWNLOAD_URL: https://artifacts.elastic.co/downloads/logstash

kibana:
image: docker.elastic.co/kibana/kibana:latest
image: docker.elastic.co/kibana/kibana:5.1.1
6 changes: 5 additions & 1 deletion testing/environments/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ services:
logstash:
build:
context: ./docker/logstash
dockerfile: Dockerfile-snapshot
dockerfile: Dockerfile
args:
LS_VERSION: 6.0.0-alpha1-SNAPSHOT
LS_DOWNLOAD_URL: https://snapshots.elastic.co/downloads/logstash


kibana:
build:
Expand Down

0 comments on commit 37701a2

Please sign in to comment.