hadrien collongues - mm15nl

Post on 12-Aug-2015

127 Views

Category:

Internet

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Magento and Docker : it’s akind of magic

 

@chadrien

1 / 24

What isDocker?

2 / 24

What is Docker?

Application container(s)

3 / 24

What is Docker?

Application container(s)

OS level virtualization

4 / 24

What is Docker?

Application container(s)

OS level virtualization

Isolated environments

5 / 24

What is Docker?

Application container(s)

OS level virtualization

Isolated environments

Run on any GNU/Linux distribution

6 / 24

Faster andsimpler

7 / 24

8 / 24

Image vsContainer

9 / 24

Docker lifecycle

10 / 24

11 / 24

Why do I useDocker?

12 / 24

How do I useDocker?

13 / 24

What aboutMagento?

14 / 24

db: image: mysql environment: MYSQL_ROOT_PASSWORD: ffe72ec7dea4ea12439f MYSQL_DATABASE: magento-demo MYSQL_USER: magento-demo MYSQL_PASSWORD: ce1d24b8e7e7ab46b0c2

web: image: occitech/magento:php5.5-apache ports: - 80 links: - db volumes: - .:/var/www

$ docker-compose run --rm web bash -c 'n98-magerun local-config:generate db $DB_ENV_MYSQL_USER $DB_ENV_MYSQL_PASSWORD $DB_ENV_MYSQL_DATABASE files admin'$ make run

15 / 24

16 / 24

17 / 24

db: image: mysql environment: MYSQL_ROOT_PASSWORD: ffe72ec7dea4ea12439f MYSQL_DATABASE: magento-demo MYSQL_USER: magento-demo MYSQL_PASSWORD: ce1d24b8e7e7ab46b0c2

web: image: occitech/magento:php5.5-apache ports: - 80 links: - db volumes: - .:/var/www

phpmyadmin: image: maxexcloo/phpmyadmin ports: - 80 links: - db:mariadb

$ make run$ make open container=phpmyadmin port=80

18 / 24

19 / 24

db: image: mysql environment: MYSQL_ROOT_PASSWORD: ffe72ec7dea4ea12439f MYSQL_DATABASE: magento-demo MYSQL_USER: magento-demo MYSQL_PASSWORD: ce1d24b8e7e7ab46b0c2

web: image: occitech/magento:php5.5-apache ports: - 80 links: - db - mail volumes: - .:/var/www

phpmyadmin: image: maxexcloo/phpmyadmin ports: - 80 links: - db:mariadb

mail: image: chadrien/mailcatcher:0.5.12 ports: - 1080

20 / 24

$ composer require --dev "aschroder/smtp_pro=2.0.5"$ make open container=mail port=1080

21 / 24

22 / 24

Conclusion

23 / 24

Thank you

24 / 24

top related