I’ve been using Docker & Gradle to build the AWS Connect & Deepgram integration.**
The following docker build code fails to execute as intended:**
docker build --platform linux/amd64 -t <YOUR-ACCOUNT-NUMBER>.dkr.ecr.<YOUR-REGION>.amazonaws.com/kvs-dg-integrator:latest .
#13 4.524 FAILURE: Build failed with an exception.
#13 4.525 * What went wrong: #13 4.525 A problem occurred starting process 'Gradle build daemon''
#13 4.528 org.gradle.process.internal.ExecException: A problem occurred starting process 'Gradle build daemon'
#13 4.534 Caused by: net.rubygrapefruit.platform.NativeException: Could not start '/opt/java/openjdk/bin/java
I thought this could be a problem with docker not being able to find Java correctly but echo gives the location below which I think is correct?
echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
When I execute Gradle build
(without docker) the code executes successfully and there are no java errors. It is only when executing with Docker that I get the errors above.
I am completely stuck, if anyone has any advice would be v appreciated.
I have checked echo path, but seems to be correct.
I have tried running with daemon but does not seem to make difference.
Executed also with Gradle build (not docker) to see if java issue for Gradle but this completes the build.