Chris M. Hostetter created SOLR-15250:
-----------------------------------------

             Summary: Dockerfile for local builds that can also serve as 
template for 'official' docker images
                 Key: SOLR-15250
                 URL: https://issues.apache.org/jira/browse/SOLR-15250
             Project: Solr
          Issue Type: Sub-task
            Reporter: Chris M. Hostetter
            Assignee: Chris M. Hostetter


This issue tracks PoC work experimenting with the idea of the following 
workflow:

For Users:
 * a {{Dockerfile}} (or {{Dockerfile.local}}) in our git repo that can be used 
(directly or via gradle) to build docker images directly from a local solr.tgz 
(in the docker build context)

For Release Manager:
 * The exact same {{Dockerfile}} serves as a "template" that gradle tasks use 
to generate a {{build/Dockerfile.official}} via some very simple substitutions 
to fill in ARG defaults based on the "official" solr-VERSION.tgz for this 
release
 * This {{Dockerfile.official}} can then be committed to the docker-solr github 
repo (or some similar new 9.x+ repo) and can be build with a a completely empty 
build context – in which it downloads (and validates) the official 
solr-VERSION.tgz (based on the ARG values that were filled in during the 
release)
 * Automated tests can help us "validate" that the generated 
{{Dockerfile.official}} will work _prior_ to officially publishing release 
artifacts, by using a "mock" download server to host the local solr-VERSION.tgz 
file

The driving goal being that the Dockerfile used for official {{_/solr}} builds 
should be as close as possible to identical to the Dockerfile used for "local" 
builds by users – given the constraints put on us by the docker-library team.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to