Question

Unable to install byoc-tool

  • 30 May 2024
  • 1 reply
  • 75 views

Userlevel 4
Badge +5

I’m trying to get started with the byoc-tool, but seem unable to to even get it built. 

I’m on OS/X (13.6.6) with apple silicon, and just installed docker and java. Docker version is 26.1.3, build b72abbb6f0. And I get:

 

 % docker build --tag byoctool .

[+] Building 169.5s (9/12)                                                                                                                                                                       docker:desktop-linux

 => [internal] load build definition from Dockerfile                                                                                                                                                             0.0s

 => => transferring dockerfile: 413B                                                                                                                                                                             0.0s

 => [internal] load .dockerignore                                                                                                                                                                                0.0s

 => => transferring context: 2B                                                                                                                                                                                  0.0s

 => [internal] load metadata for docker.io/osgeo/gdal:alpine-small-3.3.0                                                                                                                                         1.2s

 => [internal] load build context                                                                                                                                                                                0.0s

 => => transferring context: 11.06kB                                                                                                                                                                             0.0s

 => [build 1/5] FROM docker.io/osgeo/gdal:alpine-small-3.3.0@sha256:d5ffc56bb797778243a3a6c4d22831a0a19d9af47e23dcbdae279ee423c900d7                                                                             0.0s

 => CACHED [stage-1 2/4] RUN apk add --no-cache openjdk8-jre                                                                                                                                                     0.0s

 => CACHED [build 2/5] RUN apk add --no-cache openjdk8                                                                                                                                                           0.0s

 => CACHED [build 3/5] ADD . .                                                                                                                                                                                   0.0s

 => ERROR [build 4/5] RUN ./gradlew test                                                                                                                                                                       168.3s

------                                                                                                                                                                                                                

 > [build 4/5] RUN ./gradlew test:                                                                                                                                                                                    

0.992 Downloading https://services.gradle.org/distributions/gradle-6.0.1-bin.zip                                                                                                                                      

4.462 ..........................................................................................                                                                                                                      

34.83                                                                                                                                                                                                                 

34.83 Welcome to Gradle 6.0.1!                                                                                                                                                                                        

34.83 

34.83 Here are the highlights of this release:

34.83  - Substantial improvements in dependency management, including

34.83    - Publishing Gradle Module Metadata in addition to pom.xml

34.83    - Advanced control of transitive versions

34.83    - Support for optional features and dependencies

34.83    - Rules to tweak published metadata

34.83  - Support for Java 13

34.83  - Faster incremental Java and Groovy compilation

34.83  - New Zinc compiler for Scala

34.83  - VS2019 support

34.83  - Support for Gradle Enterprise plugin 3.0

34.83 

34.84 For more details see https://docs.gradle.org/6.0.1/release-notes.html

34.84 

35.49 Starting a Gradle Daemon (subsequent builds will be faster)

116.3 > Task :compileJava

143.5 > Task :processResources

143.5 > Task :classes

147.9 > Task :compileTestJava

148.0 > Task :processTestResources

148.0 > Task :testClasses

164.7 

164.7 > Task :test

164.7 

164.8 com.sinergise.sentinel.byoctool.ingestion.CogFactoryTest > createCogFromMultiBandFile(int, String)[1] FAILED

164.8     java.lang.RuntimeException at CogFactoryTest.java:58

164.8         Caused by: com.sinergise.sentinel.byoctool.ingestion.IngestionException at CogFactoryTest.java:58

164.8 

164.8 com.sinergise.sentinel.byoctool.ingestion.CogFactoryTest > createCogFromMultiBandFile(int, String)[2] FAILED

164.8     java.lang.RuntimeException at CogFactoryTest.java:58

164.8         Caused by: com.sinergise.sentinel.byoctool.ingestion.IngestionException at CogFactoryTest.java:58

164.8 

164.8 com.sinergise.sentinel.byoctool.ingestion.CogFactoryTest > createCogFromMultiBandFile(int, String)[3] FAILED

164.8     java.lang.RuntimeException at CogFactoryTest.java:58

164.8         Caused by: com.sinergise.sentinel.byoctool.ingestion.IngestionException at CogFactoryTest.java:58

165.0 

165.0 com.sinergise.sentinel.byoctool.ingestion.CogFactoryTest > createCogFromMultiBandFile(int, String)[4] FAILED

165.0     java.lang.RuntimeException at CogFactoryTest.java:58

165.0         Caused by: com.sinergise.sentinel.byoctool.ingestion.IngestionException at CogFactoryTest.java:58

165.1 

165.1 com.sinergise.sentinel.byoctool.ingestion.CogFactoryTest > createCogWithCustomResampling() FAILED

165.1     java.lang.RuntimeException at CogFactoryTest.java:58

165.1         Caused by: com.sinergise.sentinel.byoctool.ingestion.IngestionException at CogFactoryTest.java:58

165.3 

165.3 45 tests completed, 5 failed, 2 skipped

165.9 

165.9 > Task :test FAILED

166.2 

166.3 FAILURE: Build failed with an exception.

166.3 

166.3 * What went wrong:

166.3 Execution failed for task ':test'.

166.3 > There were failing tests. See the report at: file:///build/reports/tests/test/index.html

166.3 

166.3 * Try:

166.3 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.

166.3 

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

166.3 

166.3 Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

166.3 

166.3 BUILD FAILED in 2m 45s

166.3 Use '--warning-mode all' to show the individual deprecation warnings.

166.3 See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings

166.3 5 actionable tasks: 5 executed

------

Dockerfile:7

--------------------

   5 |     ADD . .

   6 |     

   7 | >>> RUN ./gradlew test

   8 |     

   9 |     RUN ./gradlew distTar

--------------------

ERROR: failed to solve: process "/bin/sh -c ./gradlew test" did not complete successfully: exit code: 1

 

I tried java as well, and get an immediate failure:

% ./gradlew shadowJar             

 

FAILURE: Build failed with an exception.

 

* What went wrong:

Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

> Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache [in thread "Daemon worker"]

 

* 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 381ms

 

Any advice on what to do?


1 reply

Badge +1

I can’t tell why docker build fail because there is not enough information in logs. It worked for me on Windows, using Docker for Windows version 4.27.1.

 

gradle build should work with java version 11, while never versions may not work. Version 16 for sure doesn’t work and requires gradle to be first bumped.

Reply


Planet Monitoring
Investors

© 2024 Planet Labs PBC. All rights reserved.
| Privacy Policy | California Privacy Notice | California Do Not Sell
Your Privacy Choices | Cookie Notice | Terms of Use