Bringing Data Agility to Docker Containers
What I finally determined to do is to demonstrate, in a simple and straightforward manner, how simple it is to leverage Delphix to do this. And so I recorded a video that demonstrates how easy it is to configure Delphix to deliver fresh data to Docker containers using out-of-the-box features. That is done in about 5 minutes, and then I demonstrate how to leverage all of the self-service tools of Delphix against Docker.
Delphix Setup/Config
- Add the source SugarCRM Server and target Docker Server as environments in Delphix
- Add the SugarCRM application owner (i.e. www-data ) as an Environment User to both environments.
- Link Delphix to the SugarCRM source database. In this case it was a MySQL database
- Create Unstructured Files dataset to the webroot of the SugarCRM application and then link Delphix to it as the application. In my case, this directory was /var/sugarcrm/apps/sugarcrm/htdocs and the owner was www-data. Notice it is just the SugarCRM webcontent, not Apache, PHP, etc. The files in the htdocs folder are the same one gathered when using the SugarCRM backup utility.
- After the initial link was completed, here is what my source environment looked like in Delphix:
It is after this setup that the video commences. More information on how I configured Landshark to run SugarCRM and docker at the bottom of the page.
Link to video: https://vimeo.com/140216365
Or watch here:
Landshark Modifications to Run SugarCRM
Landshark Linuxtarget Setup/Config:
- ssh into linuxtarget as root
- useradd -u 33 -g 33 www-data
- sed -i -e ‘s|tape|www-data|’ /etc/group
- passwd www-data
- set to delphix
- visudo
- change the “delphix ALL” line to “delphix ALL=NOPASSWD:ALL”
- Add the following entries to the end of the file (after the delphix entries):
Defaults:www-data !requiretty
www-data ALL=NOPASSWD:/bin/mount, /bin/umount, /bin/mkdir, /bin/rmdir, /bin/ps, /usr/bin/docker - chkconfig docker on
- service docker start
- exit
Landshark Linuxsource Setup/Config:
- ssh into linuxsource as root
- repeat steps 2-8 above
- ssh into the linuxsource as delphix
- curl -L -O https://s3-us-west-2.amazonaws.com/landshark/linuxsource_public_setup.sh
- chmod +x linuxsource_public_setup.sh
- ./linuxsource_public_setup.sh
- This will take several minutes to complete where you will be prompted for a password. The password is delphix
- If the environments are already in Delphix, then refresh them.
- After it is finished, launch a web browser to http://<IP of linuxsource>:8080. ie http://192.168.2.111:8080
- username/pass = admin/delphixdb
- Complete the wizard. The only information required from you is an email address. Sugar is running and you are ready to complete the Delphix Config/Setup above.
Recent Comments