How do I run sql scripts in yaml docker?
I have automation task where I want to initialise table ,data in Spring .
I have made the sql scripts in a single sql file but it's not executing the scripts .
I found answer jn stackoverflow but it's not working in java 21 .
I want to know how to do it ?
I have yml , .sql file in same location .
I can do it by cli or in code but I wanted to try it in yaml
4 Replies
⌛
This post has been reserved for your question.
Hey @CJ__47! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Hi
What happens when doing it with JDK 21?
and what is the SO answer suggesting?
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.