{"id":11187,"date":"2018-10-17T07:51:24","date_gmt":"2018-10-17T05:51:24","guid":{"rendered":"http:\/\/flaven.fr\/?p=11187"},"modified":"2018-10-17T07:51:47","modified_gmt":"2018-10-17T05:51:47","slug":"lando-docker-development-discover-quickly-the-potential-of-lando-with-simple-wordpress-install","status":"publish","type":"post","link":"https:\/\/flaven.fr\/2018\/10\/lando-docker-development-discover-quickly-the-potential-of-lando-with-simple-wordpress-install\/","title":{"rendered":"Lando, Docker, Development &#8211; Discover quickly the potential of Lando with a simple WordPress install"},"content":{"rendered":"<p>I was looking for the shortest way to learn something about Docker. I have heard a lot of praise about Docker and the opportunity it gives to build up any development environment in a snap of fingers.<\/p>\n<p>The principle of Docker is containerization, so you can build any specific virtual environment that you want : a certain version of PHP with MySQL plus any version of a CMS such as WP, Drupal or a framework such as Symfony or Laravel and share it with anyone.<\/p>\n<p><b>It is a very good alternative to a local desktop server such as MAMP or XAMPP where everything is almost set by default.<\/b><\/p>\n<p>For me, the purpose was to use Docker to install WordPress and withdraw definitively from MAMP. I want to stop working on a non scalable and non shareable environment. I still wanted to have a local environment but easily shareable on a global scale!!!  To mock the marketing antiphon, I wanted to &#8220;think global, develop local&#8221;.<\/p>\n<p>I have tried Docker, definitely it is cool but I had to search on Google to answer to the question &#8220;Where the heck are the WordPress&#8217;s files when you install it through Docker?&#8221; So meanwhile looking for Docker, I bumped into Lando. Thanks to FOG who has given me the itch to discover this program Lando.<\/p>\n<p>Lando correspond much more to what I was looking for. It is the tool to manage your dev environments.<br \/>\nRelying on Docker, Lando raises the level of assistance higher for what they call in their documentation \u201cRECIPES\u201d. You can virtually build any development environment you want from WordPress to Node passing by Drupal 6, Drupal 7, Drupal 8, Joomla, Laravel, LAMP&#8230;etc.<\/p>\n<p>Here is a quick way to use Lando to install WordPress.<\/p>\n<h4>Installing Lando<\/h4>\n<p>Let&#8217;s do the easy way by following the step by step given by Lando itself.<\/p>\n<p><b>In few lines, the way you can install WordPress with Lando in a directory name <code>my_wp_lando_2<\/code>. It will create a <code>.lando.yml<\/code> file<\/b><\/p>\n<pre lang=\"bash\">\r\n$ cd \/the-path-to-your-lando-install\/\r\n$ mkdir my_wp_lando_2\r\n$ cd my_wp_lando_2\r\n$ lando init --recipe=wordpress --vv\r\n$ lando wp core download\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/10\/using_lando_install_1_lando_init.jpg\" alt=\"Discover quickly the potential of Lando with WordPress install\" width=\"585\" height=\"330\" \/><\/p>\n<p><b>To launch, the installation, you have to be in the correct directory.<\/b><\/p>\n<pre lang=\"bash\">\r\n$ lando start\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/10\/using_lando_install_2_lando_start.jpg\" alt=\"Discover quickly the potential of Lando with WordPress install\" width=\"585\" height=\"330\" \/><\/p>\n<p><b>Launching the WordPress Install<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/10\/using_lando_install_4_wp_install.jpg\" alt=\"Discover quickly the potential of Lando with WordPress install\" width=\"585\" height=\"330\" \/><\/p>\n<p><b>In order to fill up the form for the WP install operation<\/b><\/p>\n<pre lang=\"bash\">\r\ndbname:wordpress\r\nusername:wordpress\r\npassword:wordpress\r\ndbname_host:database\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/10\/using_lando_install_5_wp_install_db.jpg\" alt=\"Discover quickly the potential of Lando with WordPress install\" width=\"585\" height=\"330\" \/><\/p>\n<h4>Change your installation<\/h4>\n<p>I have decided to change my installation and add to this lando&#8217;s container, phpmyadmin. I will just have to edit the file <code>.lando.yml<\/code> at the root of my directory.<\/p>\n<pre lang=\"yml\">\r\nname: my-wp-lando-app\r\nrecipe: wordpress\r\nconfig:\r\n  webroot: .\r\n  database: mysql\r\nservices:\r\n  pma:\r\n    type: phpmyadmin\r\n    host:\r\n      - database\r\n<\/pre>\n<p><b>The name of my application is <code>my-wp-lando-app<\/code>. As I have changed enough the .lando.yml file, I am force to rebuild my application.<\/b><\/p>\n<pre lang=\"bash\">\r\n#If you change more deeply the .lando.yml file, you will be forced to rebuild\r\n$ lando rebuild\r\n\r\n\r\n#To stop from inside of an app directory\r\n$ lando stop\r\n\r\n#To start from inside of an app directory\r\n$ lando start\r\n\r\n<\/pre>\n<p><b>There is a new url for the phpmyadmin<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/10\/using_lando_install_6_lando_pma.jpg\" alt=\"Discover quickly the potential of Lando with WordPress install\" width=\"585\" height=\"330\" \/><\/p>\n<p><b>You can check the WP database<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/10\/using_lando_install_7_lando_pma.jpg\" alt=\"Discover quickly the potential of Lando with WordPress install\" width=\"585\" height=\"330\" \/><\/p>\n<p><b>Physically, the files are accessible via your favourite editor. You can add plugins, edit themes&#8230; etc&#8230; If you kill your application, the files will remain in your Lando directory.<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/10\/using_lando_install_8_wp_files.jpg\" alt=\"Discover quickly the potential of Lando with WordPress install\" width=\"585\" height=\"330\" \/><\/p>\n<h4>Other useful commands in Lando<\/h4>\n<p>Some other commands that you should know.<\/p>\n<p><b>If you want the complete information about your application<\/b><\/p>\n<pre lang=\"bash\">\r\n$ lando info\r\n<\/pre>\n<p><b>Some other command to stop, restart&#8230;etc.<\/b><\/p>\n<pre lang=\"bash\">     \r\n#If you only add a service\r\n$ lando restart\r\n\r\n#To stop from inside of an app directory\r\n$ lando stop\r\n\r\n#To start from inside of an app directory\r\n$ lando start\r\n\r\n#To stop from outside of an app directory\r\nlando stop my-wp-lando-app\r\n\r\n#To start from outside of an app directory\r\nlando start my-wp-lando-app\r\n\r\n#To kill from inside of an app directory. My app name is my-wp-lando-app\r\n$ lando destroy my-wp-lando-app\r\n\r\n<\/pre>\n<p><b>Conclusion: Lando is a great tool that simplify the usage of Docker. The documentation is very well done. You can take it in hand without difficulties. No headache to understand how to make evolution in some of your containers.<\/b><\/p>\n<h2>Read more<\/h2>\n<ul>\n<h4>About Lando<\/h4>\n<li>The excellent LANDO documentation<br \/><a href=\"https:\/\/docs.devwithlando.io\/\" target=\"_blank\">https:\/\/docs.devwithlando.io\/<\/a><\/li>\n<li>Using Lando, Docker and WordPress<br \/><a href=\"https:\/\/medium.com\/@22acacia_cr\/using-lando-docker-and-wordpress-bb5f236d98b7\" target=\"_blank\">https:\/\/medium.com\/@22acacia_cr\/using-lando-docker-and-wordpress-bb5f236d98b7<\/a><\/li>\n<li>Great youtube video on Lando + WordPress<br \/><a href=\"https:\/\/www.youtube.com\/watch?v=QW3io3MFPNg\" target=\"_blank\">https:\/\/www.youtube.com\/watch?v=QW3io3MFPNg<\/a><\/li>\n<li>The official Lando youtube channel<br \/><a href=\"https:\/\/www.youtube.com\/channel\/UCl_QBNuGJNoo7yH-n18K7Kg\/videos\" target=\"_blank\">https:\/\/www.youtube.com\/channel\/UCl_QBNuGJNoo7yH-n18K7Kg\/videos<\/a><\/li>\n<li> A good introduction to Lando with this modest statement: &#8220;The Future of Dev is Now!!!&#8221;<br \/><a href=\"https:\/\/www.youtube.com\/watch?v=veRpPNaBY14\" target=\"_blank\">https:\/\/www.youtube.com\/watch?v=veRpPNaBY14<\/a><\/li>\n<li>My WordPress Development Workflow 2018<br \/><a href=\"https:\/\/digisavvy.com\/2018\/05\/wordpress-development-workflow-2018\/\" target=\"_blank\">https:\/\/digisavvy.com\/2018\/05\/wordpress-development-workflow-2018\/<\/a><\/li>\n<li>Working with WordPress<br \/><a href=\"https:\/\/github.com\/lando\/lando\/blob\/master\/docs\/tutorials\/wordpress.md\n\" target=\"_blank\">https:\/\/github.com\/lando\/lando\/blob\/master\/docs\/tutorials\/wordpress.md<\/a><\/li>\n<li>Local Development with Lando<br \/><a href=\"https:\/\/wpsessions.com\/sessions\/local-development-lando\/\" target=\"_blank\">https:\/\/wpsessions.com\/sessions\/local-development-lando\/<\/a><\/li>\n<li>How to setup a local development environment in 5 minutes<br \/><a href=\"https:\/\/iuliacazan.ro\/how-to-setup-a-local-development-environment-in-5-minutes\/\" target=\"_blank\">https:\/\/iuliacazan.ro\/how-to-setup-a-local-development-environment-in-5-minutes\/<\/a><\/li>\n<li>Create A WordPress Site With Lando<br \/><a href=\"https:\/\/joshpress.net\/create-a-wordpres-site-with-lando\/\" target=\"_blank\">https:\/\/joshpress.net\/create-a-wordpres-site-with-lando\/<\/a><\/li>\n<li>Drupal and Docker the easy way with Lando<br \/><a href=\"https:\/\/colorfield.be\/blog\/drupal-and-docker-the-easy-way-with-lando\" target=\"_blank\">https:\/\/colorfield.be\/blog\/drupal-and-docker-the-easy-way-with-lando<\/a><\/li>\n<\/ul>\n<ul>\n<h4>About Docker<\/h4>\n<li>Docker: the Enterprise Container Platform<br \/><a href=\"https:\/\/www.docker.com\/\" target=\"_blank\">https:\/\/www.docker.com\/<\/a><\/li>\n<li>Using Docker for WordPress Theme &#038; Plugin Development<br \/><a href=\"https:\/\/russt.me\/2017\/04\/using-docker-for-wordpress-theme-plugin-development\/\" target=\"_blank\">https:\/\/russt.me\/2017\/04\/using-docker-for-wordpress-theme-plugin-development\/<\/a><\/li>\n<li>Using Docker for WordPress Development<br \/><a href=\"https:\/\/threenine.co.uk\/using-docker-wordpress-development\/\" target=\"_blank\">https:\/\/threenine.co.uk\/using-docker-wordpress-development\/<\/a><\/li>\n<li>How to Use the Official Docker WordPress Image<br \/><a href=\"https:\/\/www.sitepoint.com\/how-to-use-the-official-docker-wordpress-image\/\" target=\"_blank\">https:\/\/www.sitepoint.com\/how-to-use-the-official-docker-wordpress-image\/<\/a><\/li>\n<li>Docker + WordPress Setup<br \/><a href=\"https:\/\/davidyeiser.com\/tutorial\/docker-wordpress-theme-setup\" target=\"_blank\">https:\/\/davidyeiser.com\/tutorial\/docker-wordpress-theme-setup<\/a><\/li>\n<li>WordPress Automated Deployments using Bitbucket and Jenkins<br \/><a href=\"https:\/\/medium.com\/@kcabading\/wordpress-automated-deployments-using-bitbucket-and-jenkins-71450dacdcb0\n\" target=\"_blank\">https:\/\/medium.com\/@kcabading\/wordpress-automated-deployments-using-bitbucket-and-jenkins-71450dacdcb0<br \/>\n<\/a><\/li>\n<li>A WordPress &#038; Git workflow<br \/><a href=\"https:\/\/marcjenkins.co.uk\/a-wordpress-git-workflow\/\" target=\"_blank\">https:\/\/marcjenkins.co.uk\/a-wordpress-git-workflow\/<\/a><\/li>\n<li>Docker Workflow with WordPress<br \/><a href=\"https:\/\/github.com\/mdelapenya\/wordpress-docker-workflow\" target=\"_blank\">https:\/\/github.com\/mdelapenya\/wordpress-docker-workflow<\/a><\/li>\n<li>WPDC &#8211; WordPress Docker Compose<br \/><a href=\"https:\/\/github.com\/nezhar\/wordpress-docker-compose\" target=\"_blank\">https:\/\/github.com\/nezhar\/wordpress-docker-compose<\/a><\/li>\n<li>Deploying WordPress with Docker<br \/><a href=\"https:\/\/www.sitepoint.com\/deploying-wordpress-with-docker\/\" target=\"_blank\">https:\/\/www.sitepoint.com\/deploying-wordpress-with-docker\/<\/a><\/li>\n<li>Using Devilbox for Local WordPress Development in Docker<br \/><a href=\"https:\/\/deliciousbrains.com\/devilbox-local-wordpress-development-docker\/\" target=\"_blank\">https:\/\/deliciousbrains.com\/devilbox-local-wordpress-development-docker\/<\/a><\/li>\n<li>How to Use Git for WordPress Development<br \/><a href=\"https:\/\/premium.wpmudev.org\/blog\/git-for-wordpress-development\/\" target=\"_blank\">https:\/\/premium.wpmudev.org\/blog\/git-for-wordpress-development\/<\/a><\/li>\n<li>No More Cowboy Coding: Improving Your WordPress Workflow<br \/><a href=\"https:\/\/premium.wpmudev.org\/blog\/improve-wordpress-development-workflow-local-server\/\" target=\"_blank\">https:\/\/premium.wpmudev.org\/blog\/improve-wordpress-development-workflow-local-server\/<\/a><\/li>\n<li>An Efficient WordPress Development Workflow<br \/><a href=\"https:\/\/jasonyingling.me\/efficient-wordpress-development-workflow\/\" target=\"_blank\">https:\/\/jasonyingling.me\/efficient-wordpress-development-workflow\/<\/a><\/li>\n<li>Installer WordPress sur Docker facilement en 2 \u00e9tapes<br \/><a href=\"https:\/\/www.hostinger.fr\/tutoriels\/docker-wordpress\/#gref\" target=\"_blank\">https:\/\/www.hostinger.fr\/tutoriels\/docker-wordpress\/#gref<\/a><\/li>\n<li>Installer et utiliser WP-CLI pour g\u00e9rer son blog WordPress<br \/><a href=\"https:\/\/www.hostinger.fr\/tutoriels\/wp-cli\/#gref\" target=\"_blank\">https:\/\/www.hostinger.fr\/tutoriels\/wp-cli\/#gref<\/a><\/li>\n<li>Deploying WordPress with Docker Stack (Compose) &#8211; Journey 1<br \/><a href=\"https:\/\/www.youtube.com\/watch?v=VW2bLY57U5c\" target=\"_blank\">https:\/\/www.youtube.com\/watch?v=VW2bLY57U5c<\/a><\/li>\n<li>How To Install WordPress and PhpMyAdmin with Docker Compose on Ubuntu 14.04<br \/><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-wordpress-and-phpmyadmin-with-docker-compose-on-ubuntu-14-04\" target=\"_blank\">https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-wordpress-and-phpmyadmin-with-docker-compose-on-ubuntu-14-04<\/a><\/li>\n<li>YAML Validator<br \/><a href=\"https:\/\/jsonformatter.org\/yaml-validator\" target=\"_blank\">https:\/\/jsonformatter.org\/yaml-validator<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I was looking for the shortest way to learn something about Docker. I have heard a lot of praise about Docker and the opportunity it&hellip; <\/p>\n<p class=\"text-center\"><a href=\"https:\/\/flaven.fr\/2018\/10\/lando-docker-development-discover-quickly-the-potential-of-lando-with-simple-wordpress-install\/\" class=\"more-link\">Continue reading &rarr; <span class=\"screen-reader-text\">Lando, Docker, Development &#8211; Discover quickly the potential of Lando with a simple WordPress install<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":11189,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"bf_ai_meta_description":"Master Docker with Lando for swift WordPress development. Set up tools, achieve consistent outcomes across environments.","bf_ai_og_title":"Lando Docker Development","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3437,3454,3444,3447,3448,3449,3450,3435,3452],"tags":[2194,163,2409,2221,224,785,2434,2436,2437,2386,2216,2408,173,415,2435,2056,2388,20,2387,2182,2223],"class_list":["post-11187","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business-case-studies","category-journalism-writing","category-programming-databases","category-technology-trends","category-tools-productivity","category-tutorials-how-to","category-ux-product-design","category-web-development","category-wordpress-cms","tag-agile","tag-application","tag-builder","tag-cms","tag-dashboard","tag-development","tag-docker","tag-drupal-7","tag-drupal-8","tag-dry","tag-framework","tag-generator","tag-joomla","tag-lamp","tag-lando","tag-laravel","tag-mvp","tag-php","tag-poc","tag-web","tag-wordpress"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3Vuhl-2Ur","jetpack_featured_media_url":"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/10\/using_lando_b.jpg","_links":{"self":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/11187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/comments?post=11187"}],"version-history":[{"count":4,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/11187\/revisions"}],"predecessor-version":[{"id":11199,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/11187\/revisions\/11199"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media\/11189"}],"wp:attachment":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media?parent=11187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/categories?post=11187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/tags?post=11187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}