Browse Source

vagrant phpmyadmin and such

pull/1/head
Nicolae Claudius 11 years ago
parent
commit
d19cbb107f
  1. 2
      Vagrantfile
  2. 1
      script/development.sh
  3. 21
      script/provision.sh

2
Vagrantfile vendored

@ -4,6 +4,8 @@ VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64" config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box" config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :forwarded_port, guest: 443, host: 8443
config.vm.network :forwarded_port, guest: 3000, host: 3000 config.vm.network :forwarded_port, guest: 3000, host: 3000
config.vm.provision :shell, path: 'script/provision.sh' config.vm.provision :shell, path: 'script/provision.sh'
end end

1
script/development.sh

@ -2,3 +2,4 @@
sudo service mysql start sudo service mysql start
sudo service memcached start sudo service memcached start
sudo service apache2 start

21
script/provision.sh

@ -5,12 +5,31 @@
sudo apt-get -y update sudo apt-get -y update
sudo apt-get -y install python-software-properties debconf-utils sudo apt-get -y install python-software-properties debconf-utils
sudo apt-add-repository -y ppa:chris-lea/node.js sudo apt-add-repository -y ppa:chris-lea/node.js
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password linux1' sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password linux1'
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password linux1' sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password linux1'
sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/dbconfig-install boolean false'
sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/reconfigure-webserver multiselect apache2'
sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/app-password-confirm password linux1'
sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/mysql/admin-pass password linux1'
sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/password-confirm password linux1'
sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/setup-password password linux1'
sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/database-type select mysql'
sudo debconf-set-selections <<< 'phpmyadmin phpmyadmin/mysql/app-pass password linux1'
sudo debconf-set-selections <<< 'dbconfig-common dbconfig-common/mysql/app-pass password linux1'
sudo debconf-set-selections <<< 'dbconfig-common dbconfig-common/mysql/app-pass password'
sudo debconf-set-selections <<< 'dbconfig-common dbconfig-common/password-confirm password linux1'
sudo debconf-set-selections <<< 'dbconfig-common dbconfig-common/app-password-confirm password linux1'
sudo debconf-set-selections <<< 'dbconfig-common dbconfig-common/app-password-confirm password linux1'
sudo debconf-set-selections <<< 'dbconfig-common dbconfig-common/password-confirm password linux1'
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev \ sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev \
git-core libxml2 libxml2-dev libxslt1-dev sqlite3 libsqlite3-dev curl \ git-core libxml2 libxml2-dev libxslt1-dev sqlite3 libsqlite3-dev curl \
libyaml-dev openssl libssl-dev ncurses-dev libtool bison autoconf libc-dev \ libyaml-dev openssl libssl-dev ncurses-dev libtool bison autoconf libc-dev \
mysql-server libmysqlclient15-dev memcached nodejs mysql-server libmysqlclient15-dev memcached nodejs apache2 phpmyadmin
set -e set -e
CURRENT=`pwd` CURRENT=`pwd`

Loading…
Cancel
Save