{ Code Refresh 0.0.2 }

Monthly Magento Meetup - 18th Jan 2020

What is

Magento Meetup Lucknow ?

 

Meetup     vs    Conference 

  • Informal
  • Get together
  • Discussion oriented
  • Magento Meetup Lucknow
  • Organized & structured

  • Commercial event

  • Presentation oriented

  • Meet Magento India

+

Dockerizing Magento Development

Mark Shust

Certified Magento Developer, Architect & Teacher in Cleveland, Ohio

 

 
  • 20+ years web dev experience
  • PHP, JavaScript, Magento, Laravel,
    Docker, & ReactJS

1. Intro to Docker

2. Hands on

3. What’s left?

Docker Architecture

Client/Server based architecture

Docker Server/Engine

Software package to call the Docker Server, typically a CLI

Terminology

Docker Client

Docker Registry

An API-driven server that builds images, starts containers, manages volumes, etc.

Location where Docker Images are stored.

Docker Hub = GitHub for Docker

Containers vs. VMs

Container

Created from a Dockerfile, contains all software packages & configuration needed in order to run a service.

More Terminology

Image

Volume

An isolated service (Nginx, PHP, Node.js, etc.) which runs from a related Docker image. Ephemeral in nature.

A persistent filesystem which can be linked to a container.

  • Rapid development environment setup
     
  • Consistent environment across the team
     
  • Low memory & disk space overhead
     
  • Shared configuration & package versions
 

Pros

Cons

  • Need to know Docker terms & concepts
     
  • Possible filesystem I/O issues on Mac
     
  • Initial build creation is more complex
     
  • Access to server usually limited to CLI
 

Docker

docker-magento

...

  1. Magento Access Keys for Composer
     
  2. GitHub account and Git installed
     
  3. Stop all services running at ports 80 & 443 (web servers such as Apache or Nginx)

Prerequisites

Install Docker

sudo apt update

sudo apt install docker.io

sudo systemctl enable docker

sudo systemctl start docker
  
docker --version
# https://docs.docker.com/install/linux/linux-postinstall/

 sudo groupadd docker
 
 sudo usermod -aG docker $USER

Install Docker Compose

# https://docs.docker.com/compose/install/

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

docker-compose --version

Setup docker-magento

docker-compose.dev.yml

Updates needed for Linux hosts

Setup a Magento 2 Development Environment with Docker

(FREE COURSE!)

Magento 2 Coding Kickstart 🚀

One-Time Payment Price: $299 $199

Use promo code: LUCKNOW100 (good for 30 days)

Questions/Comments?

Thank you!

Proudly hosted by CedCommerce

Magento Meetup Lucknow - Code Refresh - 0.0.2

By Milind Singh

Magento Meetup Lucknow - Code Refresh - 0.0.2

Magento Meetup Lucknow - 18th Jan 2020

  • 863