rombert commented on pull request #31:
URL: 
https://github.com/apache/sling-org-apache-sling-starter/pull/31#issuecomment-967274466


   For the Docker Hub automated builds we can spit the build into two parts:
   
   - `mvn clean package`, executed in Docker using something like `docker run 
-it --rm --name 'sling-starter-build' -v "$(pwd)":/usr/src/mymaven -w 
/usr/src/mymaven maven:3.8-openjdk-11 mvn package`
   - `docker build -t apache/sling:some-tag  .`
   
   Looking at https://docs.docker.com/docker-hub/builds/advanced/ it should be 
possible to build the Docker-wrapped maven build in a pre-build hook and then 
let Docker Hub do its magic.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to