Code Monkey home page Code Monkey logo

jetpack-patch-system's Introduction

Build Status codecov

Jetpack - Patch System

(powered by iDA Mediafoundry)

This is a project that contains A Touch UI admin console to manage patches. Navigate to http://localhost:4502/jetpack/patch-system.html to see this tool in action.

Description

The JetPack Patch System allows you to check-in groovy scripts / ACS On-Deploy Scripts in the code base, which can be deployed to AEM. AEM can run these patches using a system that will never run a patch that was executed before, unless modified.

A Touch UI overview screen provided insights in all patches and their execution state.

Pre-requisites

Install Carve as Model Manager: https://jetpack.ida-mediafoundry.io/libraries/carve.html (We have a dependency to 1.1.0, other versions might work as well, but is not tested)

Groovy Console

Download and install ICF Olson Groovy Console: https://github.com/OlsonDigital/aem-groovy-console#installation (We have a dependency to 13.0.0, other versions might work as well, but is not tested)

ACS On-Deploy Scripts

Download and install ACS Commons: https://adobe-consulting-services.github.io/acs-aem-commons/ (We have a dependency to 4.3., other versions might word as well, but is not tested)

1 or both of these projects need to be installed to have working Patch System. Both installed also works, if you want to support both Groovy Patches and On Deploy Scripts.

Groovy Patch Management

Upload all patches to /apps/patches//.groovy

  • /apps/patches is a sling:Folder
  • project is a nt:folder, sling:Folder or sling:OrderedFolder. A jcr:title can be added for a more readable name.
  • .groovy is a valid groovy script

It's also possible to nest & group multiple project folders.

Recommendation: per installed zip, upload to 1 folder.

ACS On-Deploy Scripts Patch Management

Follow the instructions: https://adobe-consulting-services.github.io/acs-aem-commons/features/on-deploy-scripts/index.html

Examples

See https://github.com/ida-mediafoundry/jetpack-patch-system-samples

User configuration

The System user is configured automatically.

Remote API

The remote API could be used for CI purposes:

Don't forget to set the content-type on the request to 'application/json'.

Modules

The main parts of the template are:

  • core: Java bundle containing all core functionality like OSGi services, Sling Models and WCMCommand.
  • ui.apps: contains the /apps part containing the html, js, css and .content.xml files.

How to build

To build all the modules run in the project root directory the following command with Maven 3:

mvn clean install

If you have a running AEM instance you can build and package the whole project and deploy into AEM with

mvn clean install -PautoInstallPackage

Or to deploy it to a publish instance, run

mvn clean install -PautoInstallPackagePublish

Or alternatively

mvn clean install -PautoInstallPackage -Daem.port=4503

Or to deploy only the bundle to the author, run

mvn clean install -PautoInstallBundle

Testing

There are three levels of testing contained in the project:

unit test in core: this show-cases classic unit testing of the code contained in the bundle. To test, execute:

mvn clean test

jetpack-patch-system's People

Contributors

michael-geerts avatar jarflux avatar geertsmichael avatar

Stargazers

Robert Wunsch avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.