
Many steps in this guide can be skipped as DrupalVM does them for you.
#Dockerfile for drupal hosting install
brew install bash-completion git Pre-Built VMĭrupalVM is a prebuilt virtual machine that includes everything we want to use and more. This installer also includes Docker Compose. Here's the download link for the stable release. Docker suggests using their installer on macOS.
sudo apt-get update sudo apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL | sudo apt-key add - sudo add-apt-repository "deb $(lsb_release -cs) stable" sudo apt-get update sudo apt-get install docker-ce git sudo curl -L `uname -s`-`uname -m` -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose Installing on macOS If you're using Ubuntu, I suggest Ubuntu 16.04 or newer. Installing on Ubuntu and Other Debian-Based Distros
PHP7 (available in image, technically PHP5 could be used, but why when PHP7 is SO MUCH BETTER). MariaDB (or MySQL, a version supported by Drupal 8 via Docker). The following software and tools are needed: In this first post of a three-part series, we're going to cover how we can use Docker, Git, Composer, and Drush to maintain a Drupal 8 website intelligently and efficiently. Furthermore, if you decide to implement CI into your Drupal site later on, having your site set up with this stack will make that possible. Starting a Drupal website today using these tools and practices allows developing with Drupal to happen with increased velocity. Many moons ago, I use to host a Drupal website on GoDaddy Shared Hosting, managing files with FTP and duplicating the MySQL database every once in awhile as "backups." How many things wrong can you find in that sentence? In 2017, there are many tools and best practices that allow us to maintain a Drupal site efficiently and scale across team members as well as infrastructure.