i can not create docker image of my spring boot file can some body help me
Posted by SentenceLivid6246@reddit | programming | View on Reddit | 3 comments
Hello,
I'm trying to build a Docker image for my Spring Boot project using the command ./mvnw clean spring-boot:build-image, but my build keeps failing during the test phase.
It fails when trying to connect to the PostgreSQL database with this error:
Caused by: org.postgresql.util.PSQLException: FATAL: invalid value for parameter "TimeZone": "Asia/Calcutta"
Here is what I have already tried to fix this, without success:
- Searched Project: I have searched my entire project directory (including
src/main/resourcesandsrc/test/resources) for the string"Asia/Calcutta". It is not in any of my source code. The only place it appears is in the error logs inside thetarget/folder. - Checked Test Config: I do not have a
src/test/resources/application.propertiesfile that could be overriding my main config. - Forced Timezone in
pom.xml: I tried forcing the correct timezone by adding this to the<plugins>section of mypom.xml, but I still get the same error
programming-ModTeam@reddit
This post was removed for violating the "/r/programming is not a support forum" rule. Please see the side-bar for details.
BlueGoliath@reddit
Reading is hard.
JPebb@reddit
https://github.com/dbeaver/dbeaver/issues/36487#issuecomment-3330077572
Check this thread out