〇Kanboardの画面
仮想マシンの構築
以下のVagrantfileを使用して、KanboardとPercona Serverをインストールした仮想マシンを構築できます。仮想マシン構築後、ブラウザからhttp://192.168.55.107/kanboard/にアクセスします。
デフォルトユーザのユーザ名はadmin、パスワードもadminです。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/debian-9.3"
config.vm.hostname = "db93kanboard122percona"
config.vm.provider :virtualbox do |vbox|
vbox.name = "db93kanboard122percona"
vbox.cpus = 2
vbox.memory = 2048
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.network "private_network", ip: "192.168.55.108", :netmask => "255.255.255.0"
config.vm.network "public_network", ip:"192.168.1.108", :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 percona server
export DEBIAN_FRONTEND=noninteractive
echo "percona-server-server-5.7 percona-server-server/root_password password root" | sudo debconf-set-selections
echo "percona-server-server-5.7 percona-server-server/root_password_again password root" | sudo debconf-set-selections
wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb
dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb
apt-get update
apt-get -y install percona-server-server-5.7
mysql -uroot -proot -e "CREATE DATABASE kanboard DEFAULT CHARACTER SET utf8mb4;"
mysql -uroot -proot -e "CREATE USER kanboard@localhost IDENTIFIED BY 'kanboard';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON kanboard.* TO 'kanboard'@'localhost';"
mysql -uroot -proot -e "FLUSH PRIVILEGES;"
# install apache2 kanboard
apt-get -y install php7.0 libapache2-mod-php7.0 apache2 php7.0-mbstring php7.0-mysql php7.0-gd php7.0-dom unzip
wget https://github.com/kanboard/kanboard/archive/v1.2.2.zip
unzip v1.2.2.zip
mv kanboard* /opt/kanboard
cp /opt/kanboard/config.default.php /opt/kanboard/config.php
sed -i -e "s#define('DB_DRIVER', 'sqlite');#define('DB_DRIVER', 'mysql');#" /opt/kanboard/config.php
sed -i -e "s#define('DB_USERNAME', 'root');#define('DB_USERNAME', 'kanboard');#" /opt/kanboard/config.php
sed -i -e "s#define('DB_PASSWORD', '');#define('DB_PASSWORD', 'kanboard');#" /opt/kanboard/config.php
chown -R www-data:www-data /opt/kanboard
sudo ln -s /opt/kanboard/ /var/www/html/
systemctl restart apache2
echo 'access http://192.168.55.108/kanboard/'
echo 'user: admmin, password: admin'
SHELL
end
関連情報
・Kanboardの設定・操作方法については「Kanboardの設定・操作」を参照してください。・Kanboardに関する他の記事はこちらを参照してください。
・Kanboardのgithubリポジトリ
https://github.com/kanboard/kanboard
0 件のコメント:
コメントを投稿