Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "ub1604logicaldoc"
config.vm.provider :virtualbox do |vbox|
vbox.name = "ub1604logicaldoc"
vbox.cpus = 4
vbox.memory = 8192
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
# private network
config.vm.network "private_network", ip: "192.168.55.113", :netmask => "255.255.255.0"
# bridge netwrok
config.vm.network "public_network", ip: "192.168.1.113", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
apt-get -y install unzip
# javaをインストール
#apt-get -y install openjdk-8-jdk
apt-get purge openjdk*
apt-get -y install apt-file unzip
apt-get update
apt-get -y install software-properties-common
add-apt-repository ppa:webupd8team/java
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 seen true" | debconf-set-selections
apt-get update
apt-get -y install oracle-java8-installer
# LogicalDocをダウンロード&インストール
wget https://sourceforge.net/projects/logicaldoc/files/distribution/LogicalDOC%20CE%207.7/logicaldoc-7.7-tomcat-bundle.zip
unzip logicaldoc-7.7-tomcat-bundle.zip
mv tomcat /opt
chmod +x /opt/tomcat/bin/catalina.sh
chmod +x /opt/tomcat/bin/startup.sh
chmod +x /opt/tomcat/bin/shutdown.sh
cat << EOF > /etc/systemd/system/logicaldoc.service
[Unit]
Description=logicaldoc
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh
KillMode=none
[Install]
WantedBy=multi-user.target
EOF
systemctl enable logicaldoc.service
systemctl start logicaldoc.service
echo 'access to http://192.168.55.113:8080/';
echo 'user : admin password : admin'
SHELL
end
○ログイン画面
○LogicalDocの画面
0 件のコメント:
コメントを投稿