Skip to content

Docker image build for 3.10 fails #1923

@jpiscaer

Description

@jpiscaer

On 3.10, getting the below error. Clean system, git clone, no modifications.
Think this is because the container being built cannot access the database container?

`28.08 [INFO] ------------------------------------------------------------------------
28.08 [INFO] BUILD FAILURE
28.08 [INFO] ------------------------------------------------------------------------
28.08 [INFO] Total time: 24.544 s
28.08 [INFO] Finished at: 2025-12-18T15:23:03Z
28.08 [INFO] ------------------------------------------------------------------------
28.08 [ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:11.14.1:migrate (default) on project steve: org.flywaydb.core.internal.exception.sqlExceptions.FlywaySqlUnableToConnectToDbException: Unable to obtain connection from database (jdbc:mysql://mariadb:3306/stevedb?useSSL=true&serverTimezone=UTC) for user 'steve': Communications link failure
28.08 [ERROR]
28.08 [ERROR] The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
28.08 [ERROR] --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
28.08 [ERROR] SQL State : 08S01
28.08 [ERROR] Error Code : 0
28.08 [ERROR] Message : Communications link failure
28.08 [ERROR]
28.08 [ERROR] The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
28.08 [ERROR] : Unknown host mariadb: No address associated with hostname
28.08 [ERROR] -> [Help 1]
28.08 [ERROR]
28.08 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
28.08 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
28.08 [ERROR]
28.08 [ERROR] For more information about the errors and possible solutions, please read the following articles:
[+] up 10/11] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Dockerfile:14


12 |

13 | # Build the app

14 | >>> RUN ./mvnw clean package -Pdocker -Djdk.tls.client.protocols="TLSv1.2,TLSv1.3"

15 |

16 | # Runtime stage


failed to solve: process "/bin/sh -c ./mvnw clean package -Pdocker -Djdk.tls.client.protocols="TLSv1.2,TLSv1.3"" did not complete successfully: exit code: 1

`

Steps to Reproduce the Problem

  1. ...
  2. ...
  3. ...

Additional context

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions