〇Mantis Bug Trackerの画面
○構築方法
1.以下のVagrantfileを使用して、Mantis Bug Tracker2.14とMariaDB がインストールされた仮想マシン(Debian Stretch/9.4)を構築します。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/debian-9.4"
config.vm.hostname = "db94mantisbtmariadb"
config.vm.provider :virtualbox do |vbox|
vbox.name = "db94mantisbtmariadb"
vbox.cpus = 2
vbox.memory = 2048
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.network "private_network", ip: "192.168.55.105", :netmask => "255.255.255.0"
config.vm.network "public_network", ip:"192.168.1.105", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
apt-get -y install task-japanese
sed -i -e 's/# ja_JP.UTF-8 UTF-8/ja_JP.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
update-locale LANG=ja_JP.UTF-8
localectl set-locale LANG=ja_JP.UTF-8
localectl set-keymap jp106
apt-get update
#DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
# install mariadb
echo "mariadb-server-10.3 mysql-server/root_password password root" | sudo debconf-set-selections
echo "mariadb-server-10.3 mysql-server/root_password_again password root" | sudo debconf-set-selections
apt-get -y install mariadb-server
mysql -uroot -e "CREATE DATABASE mantisbt DEFAULT CHARACTER SET utf8mb4;"
mysql -uroot -e "CREATE USER mantisbt@localhost IDENTIFIED BY 'mantisbt';"
mysql -uroot -e "GRANT ALL PRIVILEGES ON mantisbt.* TO 'mantisbt'@'localhost';"
mysql -uroot -e "FLUSH PRIVILEGES;"
apt-get -y install apache2 libapache2-mod-php7.0
apt-get -y install php7.0-mysql php7.0-cli php7.0-mbstring
# install mantisbt
wget https://sourceforge.net/projects/mantisbt/files/mantis-stable/2.14.0/mantisbt-2.14.0.tar.gz
tar xvfz mantisbt-2.14.0.tar.gz
mv mantisbt-2.14.0 /opt/mantisbt
chown -R www-data:www-data /opt/mantisbt
ln -s /opt/mantisbt /var/www/html
mkdir -p /var/mantisbt
chown -R www-data:www-data /var/mantisbt
service apache2 restart
echo 'access http://192.168.55.105/mantisbt/'
echo 'db user:mantisbt password:mantisbt db:mantisbt'
echo 'default user: administrator default password: root'
SHELL
end
2.Mantis Bug Trackerの初期設定画面
仮想マシン構築後、ブラウザからhttp://192.168.55.105/mantisbt/にアクセスして初期設定を行います。
Installer Optionsで以下の項目を入力します。
Type of Database: MySQL
Hostname (for Database Server): localhost
Username (for Database): mantisbt
Password (for Database): mantisbt
Database name (for Database): mantisbt
○関連情報
・Mantis Bug Trackerに関する他の記事はこちらを参照してください。
0 件のコメント:
コメントを投稿