SUSTAINABLE DISTRO 	

BASED DEVELOPMENT
BUILDING ON A
COMMON(S) BASE:
BY STUART CLARK
about.me/stuartc
DISCLAIMER
The content of this talk is in no way
limited to “Commons”; it just made
for a catchy title!
ABOUT . ME / STUART C
DISTROS
AN INTROTO
DISTROS
AN INTROTO
DRUPAL COMMONS OPENPUBLIC
COMMERCE KICKSTART
BUILDING ON DISTROS
BUILDING ON DISTROS
PROS
Pre-built functionality
Usable out of the box
Cost effective
BUILDING ON DISTROS
CONS
Design quirks
Specific vision
Difficult to customise
BUILDING ON DISTROS
CONS
Difficult to customise
WHAT’STHE PROBLEM?
WHAT’STHE PROBLEM?
FEATURES
WHAT’STHE PROBLEM?
FEATURES
Overrides will be nuked by upgrade
Cloned exportables won’t be upgraded
Can’t export already e...
WHAT’STHE PROBLEM?
‹❮LIVE DEMO›❯
WHAT’STHE SOLUTION?
WHAT’STHE SOLUTION?
FORK / IGNORE UPDATES
(please don’t do this)
WHAT’STHE SOLUTION?
FEATURES OVERRIDE
(plus time, effort and patience)
‹❮LIVE DEMO›❯
WHAT’STHE SOLUTION?
EXTRAS
EXTRAS
api = 2	

core = 7.x	

!
; Include the definition of how to build Drupal core directly, including patches.	

include...
EXTRAS
api = 2	

core = 7.x	

!
; Commons as core	

projects[commons][type] = core	

projects[commons][version] = 7.x-3.12...
EXTRAS
https://www.youtube.com/watch?v=9Dlv1N-nCTE
EXTRAS
…	

!
; Custom code	

!
; Note:This isn't actually a library, but the 'destination'/'directory_name'	

; parameters...
QUESTIONS???
STUART@REALITYLOOP.COM
WEBSITE
EMAIL
TWITTERNAME
QR CODE
Upcoming SlideShare
Loading in …5
×

Building on a Common(s) base: Sustainable Distro based development

285 views

Published on

Developing on top of a Distribution can often be difficult, but there is a solution.

These are slides from a talk I did at the Drupal Melbourne May 2014 meetup, the talk itself was more informational than the slides but the slides do contain some pertinent information.

Published in: Internet, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
285
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Building on a Common(s) base: Sustainable Distro based development

  1. 1. SUSTAINABLE DISTRO BASED DEVELOPMENT BUILDING ON A COMMON(S) BASE: BY STUART CLARK about.me/stuartc
  2. 2. DISCLAIMER The content of this talk is in no way limited to “Commons”; it just made for a catchy title!
  3. 3. ABOUT . ME / STUART C
  4. 4. DISTROS AN INTROTO
  5. 5. DISTROS AN INTROTO DRUPAL COMMONS OPENPUBLIC COMMERCE KICKSTART
  6. 6. BUILDING ON DISTROS
  7. 7. BUILDING ON DISTROS PROS Pre-built functionality Usable out of the box Cost effective
  8. 8. BUILDING ON DISTROS CONS Design quirks Specific vision Difficult to customise
  9. 9. BUILDING ON DISTROS CONS Difficult to customise
  10. 10. WHAT’STHE PROBLEM?
  11. 11. WHAT’STHE PROBLEM? FEATURES
  12. 12. WHAT’STHE PROBLEM? FEATURES Overrides will be nuked by upgrade Cloned exportables won’t be upgraded Can’t export already exported
  13. 13. WHAT’STHE PROBLEM? ‹❮LIVE DEMO›❯
  14. 14. WHAT’STHE SOLUTION?
  15. 15. WHAT’STHE SOLUTION? FORK / IGNORE UPDATES (please don’t do this)
  16. 16. WHAT’STHE SOLUTION? FEATURES OVERRIDE (plus time, effort and patience)
  17. 17. ‹❮LIVE DEMO›❯ WHAT’STHE SOLUTION?
  18. 18. EXTRAS
  19. 19. EXTRAS api = 2 core = 7.x ! ; Include the definition of how to build Drupal core directly, including patches. includes[] = http://drupalcode.org/project/commons.git/blob_plain/7.x-3.12:/drupal-org-core.make ! ; Download the Commons install profile and recursively build all its dependencies. projects[commons][type] = profile projects[commons][version] = 3.12 ! ;Anything else goes here and will be downloaded to sites/all/* MAKEFILE - STANDARD http://pastebin.com/rDJkiDWH
  20. 20. EXTRAS api = 2 core = 7.x ! ; Commons as core projects[commons][type] = core projects[commons][version] = 7.x-3.12 ! ;Anything else goes here and will be downloaded to sites/all/* MAKEFILE - PROFILE AS CORE http://pastebin.com/3pHxKLQJ
  21. 21. EXTRAS https://www.youtube.com/watch?v=9Dlv1N-nCTE
  22. 22. EXTRAS … ! ; Custom code ! ; Note:This isn't actually a library, but the 'destination'/'directory_name' ; parameters trick allow all custom code to be kept in a profile-esque ; structured repository for a sites/all configuration. ! libraries[EXAMPLE][download][type] = git libraries[EXAMPLE][download][url] = https://github.com/EXAMPLE/EXAMPLE.git libraries[EXAMPLE][destination] = .. libraries[EXAMPLE][directory_name] = all MAKEFILE - MIXED CUSTOM REPO
  23. 23. QUESTIONS???
  24. 24. STUART@REALITYLOOP.COM WEBSITE EMAIL TWITTERNAME QR CODE

×