Skip to content

Instantly share code, notes, and snippets.

@devdrops
Created December 30, 2016 21:11
Show Gist options
  • Select an option

  • Save devdrops/b48ca4fc642a2d2ca96d18ceb36c3b3b to your computer and use it in GitHub Desktop.

Select an option

Save devdrops/b48ca4fc642a2d2ca96d18ceb36c3b3b to your computer and use it in GitHub Desktop.
Magento on Docker checklist

Magento on Docker

Why?

We constantly have to create, drop and recreate a new Magento installation, and it takes too much time to finish (~20 minutes) and start lots of settings like customer address, catalog, and such. It takes more time to execute these steps than actually testing what we're looking for.

In order to make the instalation as easy as possible, we need to create a resource with all the basic settings already defined, instead of creating every time from scratch.

Approaches

Import database from host

Build everything on a new image

  • Create a new image from ricardotulio/ecommerce-platforms
  • Install MySQL on this image, and then import the database on this image
  • Build it with the Magento source code
  • Expose all required ports
  • Create a volume to share Magento source between host and guest
  • Tag image with every Magento release
  • Test and validate format

Checklist

  • Create a new image from ricardotulio/ecommerce-platforms.
    • Copy files from database
    • Copy files from Magento
  • Install MySQL on this image, and then import the database on this image
    • Install MySQL 5.6
    • [ ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment