Nice! The approach using the Lucene search of the repo contents is much cleaner than what I was thinking.
On Sun, Sep 8, 2019 at 1:00 PM Radu Cotescu <[email protected]> wrote: > Hi Daniel, > > > On 6 Sep 2019, at 18:01, Daniel Klco <[email protected]> wrote: > > > > Thanks Radu, > > > > I've been looking into this on and off over the last few days and I'm > still > > struggling to see the value of re-implementing all of this in Java > instead > > of relying on a simple series of scripts. Sure it's possible to do GPG > key > > and Hash validation, but I'd still need to write a scraper to download > the > > artifacts from Nexus and then all of the code around these other > functions, > > each of which are hundreds of lines of Java code vs a single line in > BASH. > > > > What would you think about flipping this the other way around? Instead of > > re-implementing in Java, make the docker image more flexible and use > > scripts to decide which function to invoke? > > > > I've put together a quick example of what I'm thinking here: > > > > > https://github.com/apache/sling-org-apache-sling-committer-cli/tree/bash-validate > > > > I’ve managed to implement the missing pieces during last week’s hackathon > and on Friday afternoon [3]. The fact that we ship a Docker image with that > code is just convenience I guess. The functionality is implemented actually > as an OSGi app using the Sling feature model, so we could pack it however > we want. > > Cheers, > Radu > > [3] - https://issues.apache.org/jira/browse/SLING-8684 < > https://issues.apache.org/jira/browse/SLING-8684>
