New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flyway error migrating from SCDF 2.9.5 to 2.10.0 #5188
Flyway error migrating from SCDF 2.9.5 to 2.10.0 #5188
Comments
Hi @fgapito In the version of Flyway that Boot and Dataflow use, Flyway split out their jars into separate ones for each DB (eg. flyway-sqlserver). We accounted for this fact w/ MySQL (here), but we missed it for SQLServer. We will get it added in for In the meantime, you can follow one of these guides to add the dependency in: |
Is there a way to inject the missing dep without doing a maven rebuild? I would prefer to rebuild my own docker image. It could be feasible? |
See the 2nd link above (https://docs.spring.io/spring-cloud-dataflow/docs/2.10.0/reference/htmlsingle/#_containers) |
Hi, I still didn't get how to rebuild the image starting from the already existing official image. Can you provide the official Dockerfile in order to add the missing jar? Thank you. |
@fgapito We will get the docs update, but in the meantime, you can download https://github.com/spring-cloud/spring-cloud-dataflow/blob/main/src/templates/add-deps/Dockerfile and put it in directory Then from export CONTAINER_REPO="springcloud/spring-cloud-dataflow-server"
export CONTAINER_TAG="2.10.0-jdk17"
export PRIVATE_REGISTRY="our.private.registry"
export DEPS_FOLDER="./extra-libs/"
docker build -t "$PRIVATE_REGISTRY/$CONTAINER_REPO:$CONTAINER_TAG"
docker push "$PRIVATE_REGISTRY/$CONTAINER_REPO:$CONTAINER_TAG" Update the above container tag and other env vars to match your reality. The JAR InfoNot that you are interested in the "update the jar" approach, but If you end up looking at the "JAR" section of the https://docs.spring.io/spring-cloud-dataflow/docs/2.10.0/reference/htmlsingle/#_jar_file - it will be a bit confusing too as it also expects you reader to be in the |
Hi,
I'm migrating from SCDF 2.9.5 to 2.10.0.
After the docker image version change, I'm receving this error on flywayInitializer:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Unsupported Database: Microsoft SQL Server 15.0
Thank You
f.
The text was updated successfully, but these errors were encountered: