以下のVagrantfileを使用して、FlysprayとMySQLをインストールした仮想マシン(Ubuntu16.04)を構築する事ができます。
仮想マシン構築後、ブラウザからhttp://192.168.55.106/flyspray/にアクセスして初期設定を行います。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "ub1604flyspray"
config.vm.provider :virtualbox do |vbox|
vbox.name = "ub1604flyspray"
vbox.cpus = 2
vbox.memory = 2048
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.network "private_network", ip: "192.168.55.106", :netmask => "255.255.255.0"
config.vm.network "public_network", ip:"192.168.1.106", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
# update packages
apt-get update
#DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
echo "mysql-server-5.7 mysql-server/root_password password root" | sudo debconf-set-selections
echo "mysql-server-5.7 mysql-server/root_password_again password root" | sudo debconf-set-selections
apt-get -y install mysql-server-5.7
mysql -uroot -proot -e "CREATE DATABASE flyspray DEFAULT CHARACTER SET utf8;"
mysql -uroot -proot -e "CREATE USER flyspray@localhost IDENTIFIED BY 'flyspray';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON flyspray.* TO 'flyspray'@'localhost';"
mysql -uroot -proot -e "FLUSH PRIVILEGES;"
apt-get -y install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update
apt-get -y install apache2 libapache2-mod-php7.1 graphviz aspell
apt-get -y install php7.1-gd php7.1-json php7.1-mysql php7.1-mbstring
apt-get -y install php7.1-xml php7.1-zip php7.1-intl php7.1-curl
# install flyspray
wget https://github.com/Flyspray/flyspray/archive/v1.0-rc6.tar.gz
tar xvfz v1.0-rc6.tar.gz
mv flyspray-1.0-rc6 /opt/flyspray
cd /opt/flyspray
curl -sS https://getcomposer.org/installer | php
php composer.phar install
chown -R www-data:www-data /opt/flyspray
ln -s /opt/flyspray /var/www/html
service apache2 restart
echo 'access http://192.168.55.106/flyspray/'
echo 'db user:flyspray password:flyspray db:flyspray'
SHELL
end
〇Flysprayの初期設定画面1
〇Flysprayの初期設定画面2
〇Flysprayの初期設定画面3
〇Flysprayの初期設定画面4
〇Flysprayの画面
0 件のコメント:
コメントを投稿