〇Talendの画面
このVMにはXRDPもインストールされているので、Windowsのリモートデスクトップで接続することができます。ユーザ名はvagrant、パスワードもvagrantでログオンできます。
仮想マシンの構築方法
以下のVagrantfileを使用して、Talend Open Studio for Data Integration7.1.1とAdoptOpenJDK、Xfce Desktop環境、XRDPをインストールした仮想マシン(Ubuntu18.04)を構築できます。Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-18.04"
config.vm.hostname = "ub1804xfcetos711"
config.vm.network :public_network, ip:"192.168.1.108"
config.vm.provider :virtualbox do |vbox|
vbox.name = "ub1804xfcetos711"
vbox.gui = true
vbox.cpus = 2
vbox.memory = 4096
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update
export DEBIAN_FRONTEND=noninteractive
apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
apt-get -y install language-pack-ja fonts-ipafont-*
localectl set-locale LANG=ja_JP.UTF-8
localectl set-keymap jp106
apt-get update
apt-get -y install xrdp=0.9.5-2 fcitx-mozc xubuntu-desktop
im-config -n fcitx
apt-get -y install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04
apt-get -y install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11
sed -i -e "s/allowed_users=console/allowed_users=anybody/" /etc/X11/Xwrapper.config
echo "xfce4-session" > /home/vagrant/.xsession
apt-get -y purge light-locker
# install AdoptOpenJDK11
#cd /opt
#wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.3%2B7/OpenJDK11U-jdk_x64_linux_hotspot_11.0.3_7.tar.gz
#tar xvfz OpenJDK11U-jdk_x64_linux_hotspot_11.0.3_7.tar.gz
#cat << EOF > /etc/profile.d/jdk.sh
#export JAVA_HOME=/opt/jdk-11.0.3+7
#export PATH=\\$PATH:\\$JAVA_HOME/bin
#EOF
#update-alternatives --install /usr/bin/java java /opt/jdk-11.0.3+7/bin/java 2000
#update-alternatives --install /usr/bin/javac javac /opt/jdk-11.0.3+7/bin/javac 2000
# install AdoptOpenJDK8
cd /opt
wget https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u212-b03/OpenJDK8U-jdk_x64_linux_hotspot_8u212b03.tar.gz
tar xvfz OpenJDK8U-jdk_x64_linux_hotspot_8u212b03.tar.gz
cat << EOF > /etc/profile.d/jdk.sh
export JAVA_HOME=/opt/jdk8u212-b03
export PATH=\\$PATH:\\$JAVA_HOME/bin
EOF
update-alternatives --install /usr/bin/java java /opt/jdk8u212-b03/bin/java 2000
update-alternatives --install /usr/bin/javac javac /opt/jdk8u212-b03/bin/javac 2000
# install Talend Open Studio
wget 'https://sourceforge.net/projects/talend-studio/files/Talend%20Open%20Studio/7.1.1/TOS_DI-20181026_1147-V7.1.1.zip'
unzip TOS_DI-20181026_1147-V7.1.1.zip
mv TOS_DI-20181026_1147-V7.1.1 /opt/tosdi
# create a shortcut for Talend Open Studio for Data Integration
cat << EOF > /usr/share/applications/tosdi.desktop
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/opt/tosdi/TOS_DI-linux-gtk-x86_64
Name=Talend Open Studio for Data Integration
Categories=Utility;Development;
EOF
init 5
SHELL
end
0 件のコメント:
コメントを投稿