swimos / greenhouse

This is an advanced sample application that demonstrates deploying and running Swim on a network of Raspberry Pis and using configuration to change behavior. This version uses Docker Images for build and deployment to Azure Iot Edge devices.
Apache License 2.0
10 stars 5 forks source link

Docker Build failure #1

Open pbikki opened 4 years ago

pbikki commented 4 years ago

I tried to do a docker build using the Java/Swim Docker file. But I see a build failure

Cloned the feature/docker branch from the repo and have Docker 19.03.5(both client and server) running on Mac

▶ docker build ./ -f ./java.Dockerfile -t java:greenhouse-node-v1 
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> 1 actionable task: 1 executed
Could not resolve all files for configuration ':compileClasspath'.
   > Could not find ai.swim:swim-server:3.9.2-SNAPSHOT.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/ai/swim/swim-server/3.9.2-SNAPSHOT/maven-metadata.xml
       - https://repo.maven.apache.org/maven2/ai/swim/swim-server/3.9.2-SNAPSHOT/swim-server-3.9.2-SNAPSHOT.pom
       - https://repo.maven.apache.org/maven2/ai/swim/swim-server/3.9.2-SNAPSHOT/swim-server-3.9.2-SNAPSHOT.jar
       - https://oss.sonatype.org/content/repositories/snapshots/ai/swim/swim-server/3.9.2-SNAPSHOT/maven-metadata.xml
       - https://oss.sonatype.org/content/repositories/snapshots/ai/swim/swim-server/3.9.2-SNAPSHOT/swim-server-3.9.2-SNAPSHOT.pom
       - https://oss.sonatype.org/content/repositories/snapshots/ai/swim/swim-server/3.9.2-SNAPSHOT/swim-server-3.9.2-SNAPSHOT.jar
     Required by:
         project :
   > Could not find ai.swim:swim-client:3.9.2-SNAPSHOT.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/ai/swim/swim-client/3.9.2-SNAPSHOT/maven-metadata.xml
       - https://repo.maven.apache.org/maven2/ai/swim/swim-client/3.9.2-SNAPSHOT/swim-client-3.9.2-SNAPSHOT.pom
       - https://repo.maven.apache.org/maven2/ai/swim/swim-client/3.9.2-SNAPSHOT/swim-client-3.9.2-SNAPSHOT.jar
       - https://oss.sonatype.org/content/repositories/snapshots/ai/swim/swim-client/3.9.2-SNAPSHOT/maven-metadata.xml
       - https://oss.sonatype.org/content/repositories/snapshots/ai/swim/swim-client/3.9.2-SNAPSHOT/swim-client-3.9.2-SNAPSHOT.pom
       - https://oss.sonatype.org/content/repositories/snapshots/ai/swim/swim-client/3.9.2-SNAPSHOT/swim-client-3.9.2-SNAPSHOT.jar
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 21s
The command '/bin/sh -c /bin/bash -c './gradlew build -Pconfig=$CONFIG'' returned a non-zero code: 1
scottswim commented 4 years ago

Thank you for letting us know about this build issue. Its happening because swim 3.9.2 is not longer valid. Updating to the latest version of swim will require a few other additional code changes but we will have this updated and working again in a day or so.

thanks again for letting us know.