2018年2月11日日曜日

VagrantでJasper ETL Community Edition、LXDE Desktop環境、XRDPがインストールされた仮想マシン(Ubuntu16.04)を構築する

Jasper ETLは オープンソースのETLツールです。
Vagrantfileと同じディレクトリにhttps://community.jaspersoft.com/project/jaspersoft-etl/releasesからダウンロードしたファイルを配置した後、以下のVagrantfileを使用して、Jasper ETL Community Edition、LXDE Desktop環境、XRDPをインストールした仮想マシンを構築できます。
XRDPがインストールされているので、Windowsのリモートデスクトップで接続することができます。ユーザ名はVagrant、パスワードもVagrantでログオンできます。

Vagrantfile
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "bento/ubuntu-16.04"
  config.vm.hostname = "ub1604lxdejaspersoftetlce"
config.vm.network :public_network, ip:"192.168.1.114"
  config.vm.provider :virtualbox do |vbox|
     vbox.name = "ub1604lxdejaspersoftetlce"
     vbox.gui = true
     vbox.cpus = 2
     vbox.memory = 2048
  end
  config.vm.provision "shell", inline: <<-SHELL
sed -i.bak -e "s#http://archive.ubuntu.com/ubuntu/#http://ftp.riken.jp/pub/Linux/ubuntu/#g" /etc/apt/sources.list
localectl set-locale LANG=ja_JP.UTF-8
localectl set-keymap jp106
apt-get update
apt-get -y install xrdp fcitx-mozc lubuntu-desktop language-pack-ja virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11
im-config -n fcitx

# install oracle jdk
add-apt-repository ppa:webupd8team/java
apt-get update
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections
apt-get install -y oracle-java8-installer oracle-java8-set-default

# install aptana studio
apt-get -y install unzip
cd /vagrant

if [ -e ./JETLXCmmty-20150908_1633-V6.0.1.zip ]; then
  echo 'found.'
else
  echo 'download Jaspersoft ETL Community from https://community.jaspersoft.com/project/jaspersoft-etl/releases'
fi
cp JETLXCmmty-20150908_1633-V6.0.1.zip /home/vagrant
unzip JETLXCmmty-20150908_1633-V6.0.1.zip
mv JETLXCmmty-20150908_1633-V6.0.1 /opt/jaspersoftetlce

cat << EOF > /usr/share/applications/jaspersoftetlce.desktop
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/opt/jaspersoftetlce/JETLXCmmty-linux-gtk-x86_64
Name=Jaspersoft ETL Community Edition
Categories=Development;
EOF


init 5
SHELL
end

〇Jaspersoft ETL Communityの画面

0 件のコメント:

コメントを投稿