RobLoach / drush-docker

:whale: Docker Container to run Drush
http://registry.hub.docker.com/u/drush/drush
Other
19 stars 19 forks source link

Multiple drush versions #5

Closed mparker17 closed 8 years ago

mparker17 commented 8 years ago

Fixes #2 by adding a Dockerfile for each stable version of drush available to install with composer (i.e.: greater than 6.0.0).

@RobLoach, once you merge this, you'll have to fix some stuff at https://hub.docker.com/r/drush/drush/~/settings/automated-builds/ ...

  1. Log in to hub.docker.com
  2. Go to https://hub.docker.com/r/drush/drush/~/settings/automated-builds/
  3. In the unlabelled table with columns "Type", "Name", "Dockerfile Location", and "Docker Tag Name":

    1. Fix the row whose "Docker Tag Name" = latest by setting "Dockerfile Location" = 8.0 (no trailing slash).
    2. Click the green + in the first row 11 times.
    3. Enter the following information in the new rows:

      Type Name Dockerfile Location Docker Tag Name
      Branch master dev-master dev-master
      Branch master 8.0 8.0
      Branch master 7.1 7.1
      Branch master 7.0 7.0
      Branch master 6.6 6.6
      Branch master 6.5 6.5
      Branch master 6.4 6.4
      Branch master 6.3 6.3
      Branch master 6.2 6.2
      Branch master 6.1 6.1
      Branch master 6.0 6.0
    4. Click Save Changes
    5. Trigger each build.

Folder and tag naming notes

There are a few options for naming folders / tags:

I chose to leave out the Patch version element in my folder names and tag suggested names because:

... however, I'm open to suggestions and happy to change it if necessary.


Special thanks to:

... for helping me understand how Composer interprets version numbers.

RobLoach commented 8 years ago

Awesome, will merge, and add a Base image to consolidate some of the common settings.