IHTSDO / release-validation-framework

API for testing a SNOMED CT release as part of the release process.
Other
8 stars 14 forks source link

Docker container cannot be started #63

Open andreas-bayer-snkeos opened 11 months ago

andreas-bayer-snkeos commented 11 months ago

I tried (several times) to run RVF via sudo docker-compose up -d. Unfortunately the rvf container is not starting correctly. In the log is as a last message (before it restarts):

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/ihtsdo/rvf/App has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

I already changed the version of mysql as mentioned in #57 Are there any recommendations to get that running?

pgwilliams commented 11 months ago

Thanks for bringing that to our attention @andreas-bayer-snkeos

@CoderMChu for Snowstorm I just had to up the docker base image in the pom to amazoncorretto:17 to support our switch to Java 17, but I can't find the equivalent in the RVF, perhaps because we've not switched to using the jib plugin.

What do you think?

leonghui commented 3 months ago

Hi all, I managed to get RVF to run and validate a release with the following changes:

  1. [dockerfile] Rebuild the base image on eclipse-temurin:17-alpine
  2. [compose] Instead of changing the mysql version, enable local infile through the jdbc URL
  3. [compose] On my docker host, I had to limit the number of open files to prevent mysql from crashing (see https://github.com/docker-library/mysql/issues/873)
  4. [docs] Specify the default spring security credentials in curl commands

If these changes are acceptable, I will be happy to open a PR