docker pull circleci/ruby:2.5.0
docker run -it --name ruby25 circleci/ruby:2.5.0
# now inside the container
bash
cd /home/circleci
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.22-linux-glibc2.12-x86_64.tar.gz
wget https://github.com/datacharmer/dbdeployer/releases/download/1.8.0/dbdeployer-1.8.0.osx.tar.gz
tar -xzf dbdeployer-1.8.0.linux.tar.gz
sudo mv ./dbdeployer-1.8.0.linux /usr/local/bin/dbdeployer
mkdir -p opt/mysql
dbdeployer unpack mysql-5.7.22-linux-glibc2.12-x86_64.tar.gz
dbdeployer deploy replication 5.7.22 --nodes 2 --force
ircleci@f7c244e897bb:~$ dbdeployer deploy replication 5.7.22 --nodes 2 --force
Creating directory /home/circleci/sandboxes
Installing and starting master
err: exit status 1
cmd: &exec.Cmd{Path:"/home/circleci/sandboxes/rsandbox_5_7_22/master/start", Args:[]string{"/home/circleci/sandboxes/rsandbox_5_7_22/master/start", ""}, Env:[]string(nil), Dir:"", Stdin:io.Reader(nil), Stdout:(*bytes.Buffer)(0x1a820360), Stderr:(*exec.prefixSuffixSaver)(0x1a795e30), ExtraFiles:[]*os.File(nil), SysProcAttr:(*syscall.SysProcAttr)(nil), Process:(*os.Process)(0x1a75c120), ProcessState:(*os.ProcessState)(0x1a65e5c0), ctx:context.Context(nil), lookPathErr:error(nil), finished:true, childFiles:[]*os.File{(*os.File)(0x1a669d80), (*os.File)(0x1a669da0), (*os.File)(0x1a669dc0)}, closeAfterStart:[]io.Closer{(*os.File)(0x1a669d80), (*os.File)(0x1a669da0), (*os.File)(0x1a669dc0)}, closeAfterWait:[]io.Closer{(*os.File)(0x1a669d98), (*os.File)(0x1a669db8)}, goroutine:[]func() error{(func() error)(0x813dfe0), (func() error)(0x813dfe0)}, errch:(chan error)(0x1a838440), waitDone:(chan struct {})(nil)}
stdout: ................................................................................................................................................................................... sandbox server not started yet
err: exit status 1
cmd: &exec.Cmd{Path:"/home/circleci/sandboxes/rsandbox_5_7_22/master/load_grants", Args:[]string{"/home/circleci/sandboxes/rsandbox_5_7_22/master/load_grants", ""}, Env:[]string(nil), Dir:"", Stdin:io.Reader(nil), Stdout:(*bytes.Buffer)(0x1a8204e0), Stderr:(*exec.prefixSuffixSaver)(0x1a795e90), ExtraFiles:[]*os.File(nil), SysProcAttr:(*syscall.SysProcAttr)(nil), Process:(*os.Process)(0x1a75c240), ProcessState:(*os.ProcessState)(0x1a65e740), ctx:context.Context(nil), lookPathErr:error(nil), finished:true, childFiles:[]*os.File{(*os.File)(0x1a669e40), (*os.File)(0x1a669e60), (*os.File)(0x1a669e80)}, closeAfterStart:[]io.Closer{(*os.File)(0x1a669e40), (*os.File)(0x1a669e60), (*os.File)(0x1a669e80)}, closeAfterWait:[]io.Closer{(*os.File)(0x1a669e58), (*os.File)(0x1a669e78)}, goroutine:[]func() error{(func() error)(0x813dfe0), (func() error)(0x813dfe0)}, errch:(chan error)(0x1a838740), waitDone:(chan struct {})(nil)}
stdout:
Installing and starting slave1
err: exit status 1
cmd: &exec.Cmd{Path:"/home/circleci/sandboxes/rsandbox_5_7_22/node1/start", Args:[]string{"/home/circleci/sandboxes/rsandbox_5_7_22/node1/start", ""}, Env:[]string(nil), Dir:"", Stdin:io.Reader(nil), Stdout:(*bytes.Buffer)(0x1a93d8c0), Stderr:(*exec.prefixSuffixSaver)(0x1a676d80), ExtraFiles:[]*os.File(nil), SysProcAttr:(*syscall.SysProcAttr)(nil), Process:(*os.Process)(0x1a75c150), ProcessState:(*os.ProcessState)(0x1a65e000), ctx:context.Context(nil), lookPathErr:error(nil), finished:true, childFiles:[]*os.File{(*os.File)(0x1a8936c8), (*os.File)(0x1a8936e8), (*os.File)(0x1a893708)}, closeAfterStart:[]io.Closer{(*os.File)(0x1a8936c8), (*os.File)(0x1a8936e8), (*os.File)(0x1a893708)}, closeAfterWait:[]io.Closer{(*os.File)(0x1a8936e0), (*os.File)(0x1a893700)}, goroutine:[]func() error{(func() error)(0x813dfe0), (func() error)(0x813dfe0)}, errch:(chan error)(0x1a50f5c0), waitDone:(chan struct {})(nil)}
stdout: ................................................................................................................................................................................... sandbox server not started yet
$HOME/sandboxes/rsandbox_5_7_22/initialize_slaves
initializing slave 1
Replication directory installed in $HOME/sandboxes/rsandbox_5_7_22
run 'dbdeployer usage multiple' for basic instructions'
circleci@f7c244e897bb:~$
circleci@f7c244e897bb:~$ cat /proc/version
Linux version 4.9.87-linuxkit-aufs (root@95fa5ec30613) (gcc version 6.4.0 (Alpine 6.4.0) ) #1 SMP Wed Mar 14 15:12:16 UTC 2018
circleci@f7c244e897bb:~$ df -h
Filesystem Size Used Avail Use% Mounted on
overlay 59G 29G 27G 52% /
tmpfs 64M 0 64M 0% /dev
tmpfs 1000M 0 1000M 0% /sys/fs/cgroup
/dev/sda1 59G 29G 27G 52% /etc/hosts
shm 64M 0 64M 0% /dev/shm
tmpfs 1000M 0 1000M 0% /sys/firmware
circleci@f7c244e897bb:~$ free -h
total used free shared buff/cache available
Mem: 2.0G 143M 72M 10M 1.7G 1.6G
Swap: 1.0G 133M 890M