+44 0330 223 3428
Call Us
+44 0330 223 3428

WPTavern: 10up Releases WP Docker, an Open Source Docker Configuration for Local WordPress Development

WPTavern: 10up Releases WP Docker, an Open Source Docker Configuration for Local WordPress Development

WP Docker is a new project from 10up that makes it easy to set up a local WordPress development environment with Docker. Last year 10up worked with Joyent, a cloud infrastructure company, to create a production-ready implementation of WordPress in Docker. After their experience with this project, 10up created WP Docker as a simple, open source development environment based on docker-compose.

Docker is a virtualization technology that allows developers to work on websites and applications in isolated containers. It has many advantages over Vagrant, which takes up a lot more space with each virtual machine having its own operating system included. Docker runs off of a single Linux instance and the containers hold the application and its dependencies.

“While still viable, VVV, Vagrant, and Virtual Box/Hyper-V take up extreme disk space and are slow to provision, start up, and SSH into,” 10up Director of Engineering Taylor Lovett said. “Because of this, engineers tend to use one ‘mega’ VVV install for all of their development websites. This workflow poses a number of problems: system service version and configuration ‘normalization’ across all projects (i.e. PHP 7 on everything when some projects run PHP 5.6 in production), and legacy clutter (i.e. old websites and system packages undeleted).”

WP Docker is much more lightweight than VVV and starts up much faster. It comes packaged with Elasticsearch by default, so 10up’s ElasticPress plugin works out-of-the-box. The environment includes the following technologies by default:

  • PHP7
  • MariaDB
  • Elasticsearch
  • Gearman
  • Memcached

VVV was started by a former 10up employee, Jeremy Felt, and the company still uses the project for local development in many cases. Certain instances, however, may lend themselves more to using VVV as opposed to WP Docker. Lovett said those include projects that are highly dependent on specific versions of system packages, such as PHP 5.6 and Elasticsearch 5.1.

“WP Docker lends itself well to enterprise clients that want to version control an environment specifically for their web application to be distributed to developers,” Lovett said. “This is common for large clients with large development teams. WP Docker lets a team standardize on a local setup which decreases bugs and ‘I see this but you don’t’ issues.”

Lovett said teams at 10up are still using VVV more often than WP Docker since it’s still quite new, but the company plans to let project requirements and team preferences drive adoption. The project is available on GitHub and has nearly 80 stars less than a week after its release.

Source: WordPress

Related Post
Matt: On React and WordPress

Matt: On React and WordPress Big companies like to bury unpleasant news on Fridays: A few weeks ago, Facebook announced they have decided to dig in on their patent clause addition to the React license, even after Apache had said it’s no longer allowed for Apache.org projects. In their words, removing the patent clause would […]

Read more
WPTavern: First WordCamp Dublin Set for October 14-15

WPTavern: First WordCamp Dublin Set for October 14-15 photo credit: Ireland.com Following up on the success of WordCamp Belfast last October, the WordPress community in Dublin will be hosting its first WordCamp October 14-15. Both camps began the early stages of planning last year and the two communities have shared some of the same organizers […]

Read more
WPTavern: GitHub Partners with Facebook to Release Atom-IDE

WPTavern: GitHub Partners with Facebook to Release Atom-IDE GitHub announced the launch of Atom-IDE this week, a new set of packages that extend its open source JavaScript-powered code editor to include IDE-like functionality. This first release includes packages that support TypeScript, Flow, JavaScript, Java, C#, and PHP. “The start of this journey includes smarter context-aware […]

Read more

Leave a Reply

Your email address will not be published.