Commit graph

224 commits

Author SHA1 Message Date
Joao Duarte
68db6b4aaf set correct env in bootstrap to avoid dup gems
Fixes #2171
2014-12-04 17:09:56 +00:00
Joao Duarte
68c03cf19e move plugins gemfile to tools
Fixes #2171
2014-12-04 17:09:56 +00:00
Jordan Sissel
3e09425524 Add /var/lib/logstash
Fixes #2160

Fixes #2162
2014-12-03 01:03:50 +00:00
Jordan Sissel
62e08e2020 Add /var/log/logstash as an empty directory.
Testing deb package

    % dpkg -c build/logstash_2.0.0.dev-1_all.deb | grep var/log/logstash
    drwxrwxr-x 0/0               0 2014-12-01 22:29 ./var/log/logstash/

Testing rpm package

    % rpm -qvlp build/logstash-2.0.0.dev-1.noarch.rpm| grep var/log/logstash
    drwxrwxr-x    2 root    root                        0 Dec  1 22:34 /var/log/logstash

Fixes #2146

Fixes #2159
2014-12-02 19:55:24 +00:00
Joao Duarte
eb8d54ee3a handle vendored/nonvendored ruby and reset env vars
Fixes #2107
2014-12-01 19:37:57 +00:00
Joao Duarte
eff219a003 install default plugins via bundler
Fixes #2107
2014-12-01 19:37:57 +00:00
Jordan Sissel
c1018129f4 Include 99 plugins by default.
This plugin set should be the same as the ones included in "core" in
Logstash 1.4.2, so users should experience no negative impact of this.

Fixes #2020
2014-11-14 22:04:05 +00:00
Joao Duarte
14023618b4 bump kibana to 3.1.2
Fixes #2059
2014-11-11 17:50:15 +00:00
Pier-Hugues Pellerin
c92a2ccfcb Rake way of deleting files
Fixes #1981
2014-11-11 06:32:28 +00:00
Pier-Hugues Pellerin
d33fef90e4 Added a task to clean the vendor directory
Fixes #1981
2014-11-11 06:32:28 +00:00
Jordan Sissel
8b509cdf7d Add init scripts to rpm and deb
Fixes #2018
2014-11-05 04:11:47 +00:00
Richard Pijnenburg
f472d4af24 Cleanup plugins to move to plugin system
Plugins have moved to https://github.com/logstash-plugins/... into
individual repositories. One plugin per repo.

* Add plugin install task and add required plugins for testing
* Adding a plugin task to install plugins
* Added required plugins to a prep task for the test part.

Fixes #1984
2014-11-04 23:24:59 +00:00
Jordan Sissel
cf2800867a Remove some vendor tasks from vendor:all
kafka, geoip, elasticsearch, and collectd moved into separate plugins

Fixes #1995
2014-11-04 19:23:42 +00:00
Jordan Sissel
d68d2b613d Fix tarball packaging to be rooted in logstash-<VERSION>
Fixes #1982

Fixes #1995
2014-11-04 19:23:42 +00:00
Jordan Sissel
0bb8f06f42 Only print 'relaunching' if run under debug.
Fixes #1995
2014-11-04 19:23:42 +00:00
Colin Surprenant
ec699e1f84 added rake vendor:force:gems option for forcing a bundle install
Fixes #1952
2014-11-04 19:03:02 +00:00
Richard Pijnenburg
23d6f52ccf Add option to use a local jruby version instead of the vendored one
If we want to test against custom Jruby versions we need to ensure we use the correct jruby binary
Like what we can do with USE_RUBY=1 ./bin/logstash to use the local ruby binary we can do the same with the rake bootstrap job

Use ruby instead of jruby as binary in case we try out something else then jruby

Fixing a few issues with the build process

- Fix a very very very weird issue where the Gem::LoadError was being passed down
- Adhere to the USE_RUBY=1 logic to use the local ruby binary

Use if instead unless

Move require's to top of the file to avoid issues
2014-10-24 15:36:02 -04:00
Colin Surprenant
6a6fb3ebf1 isolate gems into build/dependencies, do not use any system gems 2014-10-23 18:53:40 -04:00
Jordan Sissel
29f3df0653 Add bootstrap dependency for deb target
Fixes #1940
2014-10-22 20:04:01 +00:00
Jordan Sissel
f35558e395 Make most things depend on bootstrap
Fixes #1940
2014-10-22 20:04:01 +00:00
Jordan Sissel
41b28ad228 Refactor files/exclusion
Fixes #1940
2014-10-22 20:04:01 +00:00
Jordan Sissel
1887becc3d Exclude certain files from packaging
Fixes #1940
2014-10-22 20:04:01 +00:00
Jordan Sissel
27a4fe9553 Don't try to load bundler/cli anymore since we don't use it
This should help incorrectly installing bundler when it isn't present.

Fixes #1940
2014-10-22 20:04:01 +00:00
Jordan Sissel
920a9e9362 Refactor build tooling to use Ruby
The new way to build is using 'rake' and not 'make'.

For some some attempt at compatibility, any 'make' invocation will
invoke rake. `make foo` will invoke `rake foo`.

This is for #1640

Major changes:
* rake is used instead of make. This allows us to more easily improve,
  debug, and test the build tooling.
* The build process can be bootstrapped from any Ruby that has
  Rake available. Bootstrapping rake is automatic will download JRuby and
  re-execute itself under JRuby.
* rpm and deb packages no longer list any java as dependencies. This
  is the result of user discomfort and discussions which concluded
  that there is no good way to "depend" on Java via rpm or deb.

Internal changes:
* Vendoring paths are project-based. Each vendor directory is now
  specific as vendor/<project>/... For example, JRuby is dumped into
  vendor/jruby/...

Other changes:

* We don't use jruby-complete anymore. We now use bin/jruby as the entry point.
  This improves the startup time of Logstash on my laptop by approximately
  1.5 seconds (~25% speedup of startup time). Testing `bin/logstash
  version` speed; 5 runs each:

  * Before patch: 7.27 7.55 7.26 7.42 7.47
  * After patch: 5.54 5.97 5.67 5.58 5.54

Smaller changes:
- removed 'env' subcommand
- Remove 'deps' subcommand. Replaced by 'rake vendor:all'
- Add gem_home method for this platform's GEM_HOME
- .travis.yml removed because we haven't used Travis in a long time.
- bin/logstash exits nonzero with a useful message if JRuby can't be found.

Notes:

Invoke bundler via system() call instead of Bundler::CLI.
After some discussion in #bundler on freenode (very helpful!) on how
to do what we need to do with bundler, I was encouraged to not use the
bundler api from ruby, so system() it is.

Patch slightly modified to fit the new model of packaging (ruby instead
of shell invocation), but original author is obazoud in #1008.

Richard Pijnenburg helped with some of the code and was lovely in
helping test it.

Fixes #1640
2014-10-22 17:04:55 +00:00