File tree 2 files changed +28
-0
lines changed
mysql-5.7.15-sandbox-prepackaged
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ Vagrant.configure("2") do |config|
2
+ config.vm.box = 'shyiko/mysql-sandbox-prepackaged'
3
+ config.vm.box_version = '5.7.15'
4
+ config.vm.network :forwarded_port, guest: 33061, host: 33061
5
+ config.vm.network :forwarded_port, guest: 33062, host: 33062
6
+ end
Original file line number Diff line number Diff line change
1
+ Vagrant.configure("2") do |config|
2
+ config.vm.box = 'lucid32'
3
+ config.vm.box_url = 'http://files.vagrantup.com/lucid32.box'
4
+ config.vm.provision :shell, :inline => %Q(
5
+ sed -i.bak -r 's/(us.)?(archive|security).ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
6
+ apt-get update && apt-get install -y make libaio1 # libaio1 required by mysql
7
+ echo 'Downloading MySQL distribution ...'
8
+ wget --progress=dot:mega --content-disposition \
9
+ http://cdn.mysql.com/Downloads/MySQL-5.7/mysql-5.7.15-linux-glibc2.5-i686.tar.gz \
10
+ 2>&1 | grep --line-buffered -o '[0-9]*%'
11
+ wget -O - https://github.com/datacharmer/mysql-sandbox/releases/download/3.1.13/MySQL-Sandbox-3.1.13.tar.gz | tar xzv
12
+ (cd MySQL-Sandbox-3.1.13 && perl Makefile.PL && make && make install)
13
+ su -c "make_replication_sandbox ~/mysql-5.7.15-linux-glibc2.5-i686.tar.gz \
14
+ --remote_access='%' --how_many_slaves=1 --sandbox_base_port=33061 \
15
+ --master_options='-c binlog_format=ROW' \
16
+ --slave_options='-c binlog_format=ROW -c log-slave-updates=TRUE'" vagrant
17
+ rm -f *.tar.gz
18
+ sed -i -e "s/exit\ 0/\\/home\\/vagrant\\/sandboxes\\/rsandbox_mysql-5_7_15\\/restart_all; exit 0/g" /etc/rc.local
19
+ )
20
+ config.vm.network :forwarded_port, guest: 33061, host: 33061
21
+ config.vm.network :forwarded_port, guest: 33062, host: 33062
22
+ end
You can’t perform that action at this time.
0 commit comments