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

  • 43 views
Uploaded on

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

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.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
43
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. SUSTAINABLE DISTRO BASED DEVELOPMENT BUILDING ON A COMMON(S) BASE: BY STUART CLARK about.me/stuartc
  • 2. DISCLAIMER The content of this talk is in no way limited to “Commons”; it just made for a catchy title!
  • 3. ABOUT . ME / STUART C
  • 4. DISTROS AN INTROTO
  • 5. DISTROS AN INTROTO DRUPAL COMMONS OPENPUBLIC COMMERCE KICKSTART
  • 6. BUILDING ON DISTROS
  • 7. BUILDING ON DISTROS PROS Pre-built functionality Usable out of the box Cost effective
  • 8. BUILDING ON DISTROS CONS Design quirks Specific vision Difficult to customise
  • 9. BUILDING ON DISTROS CONS Difficult to customise
  • 10. WHAT’STHE PROBLEM?
  • 11. WHAT’STHE PROBLEM? FEATURES
  • 12. WHAT’STHE PROBLEM? FEATURES Overrides will be nuked by upgrade Cloned exportables won’t be upgraded Can’t export already exported
  • 13. WHAT’STHE PROBLEM? ‹❮LIVE DEMO›❯
  • 14. WHAT’STHE SOLUTION?
  • 15. WHAT’STHE SOLUTION? FORK / IGNORE UPDATES (please don’t do this)
  • 16. WHAT’STHE SOLUTION? FEATURES OVERRIDE (plus time, effort and patience)
  • 17. ‹❮LIVE DEMO›❯ WHAT’STHE SOLUTION?
  • 18. EXTRAS
  • 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. 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. EXTRAS https://www.youtube.com/watch?v=9Dlv1N-nCTE
  • 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. QUESTIONS???
  • 24. STUART@REALITYLOOP.COM WEBSITE EMAIL TWITTERNAME QR CODE