Open chenejac opened 5 years ago
Don Elsborg said:
In discussions with Harry, we determined the recommended way to build a lightweight docker container for vivo/tomcat was to use the multi-stage build process.
See [https://docs.docker.com/develop/develop-images/multistage-build/]
This allows us to have one container that's dedicated to maven and the jdk for the build.
The process then deploys the vivo.war file to a much lighterweight tomcat jre docker container.
Don Elsborg said:
Created an initial branch of the VIVO 3 tier custom build for use with Docker
[https://github.com/vivo-community/vivo-project-template/tree/sprint-docker-multistage]
For the purpose of this initial test, I am using the tdbContentModel and also am not concerned with SOLR just yet.
I just want to make sure that VIVO builds, then deploys, then runs ( without SOLR )
For now the build and deploy works.
Tomcat attempts to run the vivo.war file but it fails with various errors:
Errors are: h4. ATAL: ApplicationSetup
Don Elsborg (Migrated from VIVO-1684) said:
For the latest spring - we want to use docker to: