diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aa6d122 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM jruby:latest + +WORKDIR /usr/src/plugin + +COPY Gemfile *.gemspec ./ + +RUN bundle install + +COPY . . diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..a0ad78b --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash +docker build -t logstash-jruby . +docker run -v $(pwd):/usr/src/plugin logstash-jruby \ + gem build logstash-output-salesforce.gemspec \ No newline at end of file diff --git a/logstash-output-salesforce.gemspec b/logstash-output-salesforce.gemspec index c4e9b39..7858953 100644 --- a/logstash-output-salesforce.gemspec +++ b/logstash-output-salesforce.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |s| s.require_paths = ["lib"] # Files - s.files = `git ls-files`.split($\) + s.files = `find . -type f -not -path '*/\.*'`.split($\) # Tests s.test_files = s.files.grep(%r{^(test|spec|features)/})