Merge pull request 'Ubuntu 22.04にembulkをインストールする' (#14) from embulk-installation-for-jammy into master

Reviewed-on: #14
This commit is contained in:
Kazuhiro MUSASHI 2022-07-18 13:23:39 +00:00
commit efb354244a
2 changed files with 10 additions and 3 deletions

View File

@ -7,7 +7,7 @@ ipaddr = run_command(cmd).stdout.chomp
node.reverse_merge!({
'embulk' => {
'base_binary_url' => 'https://github.com/embulk/embulk/releases/download/v',
'version' => '0.9.23',
'version' => '0.9.24',
'extension' => '.jar',
'install_path' => '/opt/embulk'
}

View File

@ -25,6 +25,13 @@ link '/usr/local/bin/embulk' do
force true
end
package 'default-jre' do
action :install
case node['platform_version'].to_f
when 22.04
package 'openjdk-8-jre' do
action :install
end
else
package 'default-jre' do
action :install
end
end