-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.packager
39 lines (38 loc) · 1.05 KB
/
.packager
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- mode: ruby -*-
# -*- encoding: utf-8 -*-
Packager.build do
target do
platform 'ubuntu'
version '12.04'
package 'deb'
arch 'amd64'
end
dependencies do
build [
'openjdk-7-jre-headless',
'wget',
'git'
]
end
build do
name 'fission'
template :generic
commands do
build [
'wget -O /tmp/jruby.tar.gz https://s3.amazonaws.com/jruby.org/downloads/1.7.18/jruby-bin-1.7.18.tar.gz',
'tar -C /tmp -xzf /tmp/jruby.tar.gz',
'PATH=/tmp/jruby-1.7.18/bin:$PATH gem install --no-ri --no-rdoc bundler -v 1.9.9',
'PATH=/tmp/jruby-1.7.18/bin:$PATH bundle install',
'PATH=/tmp/jruby-1.7.18/bin:$PATH bundle exec make-package build fission --gemfile gemfiles/fission-complete',
'mkdir -p $PKG_DIR/opt/fission',
'mv package/*.jar $PKG_DIR/opt/fission/fission.jar',
'chmod 0644 $PKG_DIR/opt/fission/fission.jar'
]
end
end
packaging do
maintainer 'Heavy Water'
description 'Pipeline framework'
url 'https://heavywater.io'
end
end