Hi all,
I’m trying to deploy a spring app using docker filebut I’m getting the following errors:
Aug 3 11:46:36 AM ==> Checking out commit 0331175ecd2e4022d346d9eda4192067bcded40e in branch master
Aug 3 11:46:39 AM ==> Downloading cache...
Aug 3 11:46:51 AM ==> Transferred 149MB in 9s. Extraction took 0s.
Aug 3 11:46:52 AM #1 [internal] load .dockerignore
Aug 3 11:46:52 AM #1 transferring context: 2B done
Aug 3 11:46:52 AM #1 DONE 0.0s
Aug 3 11:46:52 AM
Aug 3 11:46:52 AM #2 [internal] load build definition from Dockerfile
Aug 3 11:46:52 AM #2 transferring dockerfile: 247B done
Aug 3 11:46:52 AM #2 DONE 0.0s
Aug 3 11:46:52 AM
Aug 3 11:46:52 AM #3 [internal] load metadata for docker.io/library/eclipse-temurin:17-jdk-alpine
Aug 3 11:46:52 AM #3 ...
Aug 3 11:46:52 AM
Aug 3 11:46:52 AM #4 [auth] library/eclipse-temurin:pull token for registry-1.docker.io
Aug 3 11:46:52 AM #4 DONE 0.0s
Aug 3 11:46:53 AM
Aug 3 11:46:53 AM #3 [internal] load metadata for docker.io/library/eclipse-temurin:17-jdk-alpine
Aug 3 11:46:53 AM #3 DONE 1.0s
Aug 3 11:46:53 AM
Aug 3 11:46:53 AM #5 importing cache manifest from local:3779364474931316511
Aug 3 11:46:53 AM #5 DONE 0.0s
Aug 3 11:46:53 AM
Aug 3 11:46:53 AM #6 [internal] load build context
Aug 3 11:46:53 AM #6 transferring context: 22.92kB done
Aug 3 11:46:53 AM #6 DONE 0.0s
Aug 3 11:46:53 AM
Aug 3 11:46:53 AM #7 [1/2] FROM docker.io/library/eclipse-temurin:17-jdk-alpine@sha256:3ecc5edd648f5d9c92e53e8eb6361cfcfaf626220f8308332f239dfb03418c1c
Aug 3 11:46:53 AM #7 resolve docker.io/library/eclipse-temurin:17-jdk-alpine@sha256:3ecc5edd648f5d9c92e53e8eb6361cfcfaf626220f8308332f239dfb03418c1c done
Aug 3 11:46:53 AM #7 sha256:5463adbbb67d86b4de319036f85b74385e01dfaeaab654d2efe54651d2e337e4 178B / 178B 0.1s done
Aug 3 11:46:53 AM #7 sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee 0B / 144.10MB 0.2s
Aug 3 11:46:53 AM #7 sha256:8aadc9aaa732ac5b0edd00545607971071fa1868047a65249e483ba2443982e6 0B / 7.65MB 0.2s
Aug 3 11:46:53 AM #7 sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3 0B / 3.40MB 0.2s
Aug 3 11:46:53 AM #7 sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee 7.34MB / 144.10MB 0.3s
Aug 3 11:46:54 AM #7 sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee 25.17MB / 144.10MB 0.5s
Aug 3 11:46:54 AM #7 sha256:8aadc9aaa732ac5b0edd00545607971071fa1868047a65249e483ba2443982e6 7.65MB / 7.65MB 0.4s done
Aug 3 11:46:54 AM #7 sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee 45.09MB / 144.10MB 0.6s
Aug 3 11:46:54 AM #7 sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3 3.40MB / 3.40MB 0.7s done
Aug 3 11:46:54 AM #7 sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee 63.96MB / 144.10MB 0.8s
Aug 3 11:46:54 AM #7 extracting sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3 0.1s done
Aug 3 11:46:54 AM #7 sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee 76.55MB / 144.10MB 0.9s
Aug 3 11:46:54 AM #7 extracting sha256:8aadc9aaa732ac5b0edd00545607971071fa1868047a65249e483ba2443982e6
Aug 3 11:46:54 AM #7 sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee 88.08MB / 144.10MB 1.1s
Aug 3 11:46:55 AM #7 extracting sha256:8aadc9aaa732ac5b0edd00545607971071fa1868047a65249e483ba2443982e6 0.5s done
Aug 3 11:46:55 AM #7 sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee 109.05MB / 144.10MB 1.5s
Aug 3 11:46:55 AM #7 sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee 126.88MB / 144.10MB 1.7s
Aug 3 11:46:55 AM #7 sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee 144.10MB / 144.10MB 1.9s done
Aug 3 11:46:55 AM #7 extracting sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee
Aug 3 11:47:00 AM #7 extracting sha256:eeaf3196661fdb14bbbff98c8622672423e9ab4b9da91c72c5f9165a99aee4ee 4.9s done
Aug 3 11:47:00 AM #7 extracting sha256:5463adbbb67d86b4de319036f85b74385e01dfaeaab654d2efe54651d2e337e4 0.0s done
Aug 3 11:47:00 AM #7 DONE 6.8s
Aug 3 11:47:00 AM
Aug 3 11:47:00 AM #8 [2/2] COPY target/*.jar GerenciamentoFinancasPessoais-0.0.1-SNAPSHOT.jar
Aug 3 11:47:00 AM #8 DONE 0.0s
Aug 3 11:47:00 AM
Aug 3 11:47:00 AM #9 exporting to docker image format
Aug 3 11:47:00 AM #9 exporting layers 0.0s done
Aug 3 11:47:00 AM #9 exporting manifest sha256:3e9d7356a1ae6a69136f1b5b88d97a4360072f4422c432a3450d9c1eb4198adb done
Aug 3 11:47:00 AM #9 exporting config sha256:f82760ee56d91b51d6091cb6763aa4fc03843dd0ca50a9d688bf5593e29e2511 done
Aug 3 11:47:04 AM #9 DONE 4.3s
Aug 3 11:47:04 AM
Aug 3 11:47:04 AM #10 exporting content cache
Aug 3 11:47:04 AM #10 preparing build cache for export
Aug 3 11:47:04 AM #10 DONE 0.0s
Aug 3 11:47:05 AM Pushing image to registry...
Aug 3 11:47:10 AM Upload succeeded
Aug 3 11:47:10 AM DONE
Aug 3 11:47:17 AM Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication
Aug 3 11:47:17 AM at com.example.gerenciamentofinancaspessoais.GerenciamentoFinancasPessoaisApplication.main(GerenciamentoFinancasPessoaisApplication.java:10)
Aug 3 11:47:17 AM Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
Aug 3 11:47:17 AM at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
Aug 3 11:47:17 AM at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
Aug 3 11:47:17 AM at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
Aug 3 11:47:17 AM ... 1 more
Aug 3 11:47:18 AM Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication
Aug 3 11:47:18 AM at com.example.gerenciamentofinancaspessoais.GerenciamentoFinancasPessoaisApplication.main(GerenciamentoFinancasPessoaisApplication.java:10)
Aug 3 11:47:18 AM Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
Aug 3 11:47:18 AM at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
Aug 3 11:47:18 AM at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
Aug 3 11:47:18 AM at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
Aug 3 11:47:18 AM ... 1 more
Aug 3 11:47:35 AM Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication
Aug 3 11:47:35 AM at com.example.gerenciamentofinancaspessoais.GerenciamentoFinancasPessoaisApplication.main(GerenciamentoFinancasPessoaisApplication.java:10)
Aug 3 11:47:36 AM Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
Aug 3 11:47:36 AM at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
Aug 3 11:47:36 AM at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
Aug 3 11:47:36 AM at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
Aug 3 11:47:36 AM ... 1 more
Aug 3 11:47:58 AM Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication
Aug 3 11:47:58 AM at com.example.gerenciamentofinancaspessoais.GerenciamentoFinancasPessoaisApplication.main(GerenciamentoFinancasPessoaisApplication.java:10)
Aug 3 11:47:58 AM Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
Aug 3 11:47:58 AM at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
Aug 3 11:47:58 AM at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
Aug 3 11:47:58 AM at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
Aug 3 11:47:58 AM ... 1 more
Aug 3 11:48:40 AM Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication
Aug 3 11:48:40 AM at com.example.gerenciamentofinancaspessoais.GerenciamentoFinancasPessoaisApplication.main(GerenciamentoFinancasPessoaisApplication.java:10)
Aug 3 11:48:40 AM Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
Aug 3 11:48:40 AM at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
Aug 3 11:48:40 AM at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
Aug 3 11:48:40 AM at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
Aug 3 11:48:40 AM ... 1 more
Locally everything runs fine, no errors at all