Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update testing environment to beta1 IRC #2553

Merged
merged 3 commits into from Sep 19, 2016
Merged

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Sep 15, 2016

- Changed the logstash dockerfile to use the tar.gz which is much
  simpler.
- Unfortunately it still doesn't work, I posted:
  logstash-plugins/logstash-input-beats#129
- For elasticsearch I did a hack for now, but we should consider moving
  to the tar.gz as well
@@ -5,7 +5,7 @@ ENV ELASTICSEARCH_VERSION master


COPY setup.sh /
RUN bash setup.sh https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/5.0.0-alpha5/elasticsearch-5.0.0-alpha5.deb
RUN bash setup.sh http://staging.elastic.co/5.0.0-beta1-2b315be2/download/elasticsearch/elasticsearch-5.0.0-beta1.deb
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use https for the url? Seems to also work

@@ -16,7 +16,7 @@ RUN arch="$(dpkg --print-architecture)" \
&& chmod +x /usr/local/bin/gosu

RUN set -x \
&& curl -fSL "https://download.elastic.co/kibana/kibana-snapshot/kibana-5.0.0-alpha6-SNAPSHOT-linux-x86_64.tar.gz?20160908" -o kibana.tar.gz \
&& curl -fSL "http://staging.elastic.co/5.0.0-beta1-2b315be2/download/kibana/kibana-5.0.0-beta1-linux-x86_64.tar.gz" -o kibana.tar.gz \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https?

ENV VERSION 5.0.0-beta1
ENV PATH $PATH:/opt/logstash-$VERSION/bin

RUN echo $PATH
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still needed?

@@ -1,18 +1,9 @@
#!/usr/bin/env bash

# setup logstash dependencies
set -x && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, that will speed up the build quite a bit.

apt-get install -y --no-install-recommends logrotate && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# download & install logstash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case that are all the lines left, we probably can remove the setup.sh script and move everything back to the docker file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did that, and restored the setup.sh script to its initial form.

@@ -1,18 +1,9 @@
#!/usr/bin/env bash

# setup logstash dependencies
set -x && \
apt-get update && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this could affect the old (non snapshot docker files ...)

@tsg
Copy link
Contributor Author

tsg commented Sep 19, 2016

Updated to IRC2, so tests should hopefully pass this time around.

@tsg
Copy link
Contributor Author

tsg commented Sep 19, 2016

Comments should be addressed, now.

@ruflin
Copy link
Member

ruflin commented Sep 19, 2016

LGTM. Waiting for travis.

@ruflin
Copy link
Member

ruflin commented Sep 19, 2016

Merging as flaky filebeat tests is not related to this change.

@ruflin ruflin merged commit 8bd177a into elastic:master Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants