aremily opened a new pull request #103:
URL: https://github.com/apache/commons-crypto/pull/103


   Following up on Marcelo's recommendation to Dockerize the build process, 
submitted for review is a Dockerfile that automates the following builds:
   
   Linux x86_64
   Linux-arm
   Linux-armfh
   Linux-aarch64
   Windows x86_64
   
   This Dockerfile copies the project directory into the Docker image, so if 
you run it from a Mac after a successful local build, the resulting image will 
contain a jar that includes the above builds and the Mac build.  I've tested 
the Linux x86_64, Windows x86_64 and Mac x86_64 builds.  I have not tested the 
ARM builds, as I lack the platform to do so.
   
   Note that this doesn't automate the Mac build, but Google suggests that it 
is possible.  I'll make the effort it if there's interest.
   
   https://github.com/tpoechtrager/osxcross
   https://github.com/multiarch/crossbuild
   
   I included a Maven profile that runs the Dockerfile from Maven after a local 
build, but the plugin doesn't include much logging.  I'd recommend just running 
the Dockerfile from the command line, which will give you plenty of log output.
   
   I don't pretend to be a Docker wizard, so feedback is appreciated.  There's 
probably a more efficient way to do this if anyone wants to give it a go.  The 
build process takes between ten and fifteen minutes on my machine because I 
build OpenSSL from source for each architecture to generate the 
platform-specific opensslconf.h file that's required for each build.  I'm not 
completely sure that it's necessary for purposes of building the JNI libraries, 
so if that step can be eliminated it would speed up the build considerably.


----------------------------------------------------------------
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.

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


Reply via email to