Skip to content

Commit

Permalink
Add docker based build to simplify process
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Henderson committed Jul 26, 2018
1 parent b838388 commit 1272534
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM jruby:latest

WORKDIR /usr/src/plugin

COPY Gemfile *.gemspec ./

RUN bundle install

COPY . .
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion logstash-output-salesforce.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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)/})
Expand Down

0 comments on commit 1272534

Please sign in to comment.