Hi,
I’m trying to build a Java springboot application via buildpacks, but I’m getting the following error when running fly depoy
.
✓ Configuration is valid
--> Verified app config
==> Building image
Remote builder fly-builder-holy-darkness-8240 ready
Remote builder fly-builder-holy-darkness-8240 ready
==> Building image with Buildpacks
--> docker host: 20.10.12 linux x86_64
latest: Pulling from paketobuildpacks/builder-jammy-base
Digest: sha256:94593b2ad54362e1256da43631661d3dad936a177609a3d297fc638e87c6ee91
Status: Image is up to date for paketobuildpacks/builder-jammy-base:latest
latest: Pulling from paketobuildpacks/run-jammy-base
Digest: sha256:c2bc9ac828642aee2376a649ef5affd6912507c739247a40086bcae6d62a8b41
Status: Image is up to date for paketobuildpacks/run-jammy-base:latest
latest: Pulling from paketo-buildpacks/spring-boot
Digest: sha256:c509d7705cd6fdeabc1231c918ef29c03269629aedfbabb5d692edcab89f8154
Status: Image is up to date for gcr.io/paketo-buildpacks/spring-boot:latest
WARNING: image with reference gcr.io/paketo-buildpacks/spring-boot was found but does not match the specified platform: wanted linux/amd64, actual: linux
===> ANALYZING
Image with name "registry.fly.io/inngest-spring-boot-demo:cache" not found
===> DETECTING
======== Results ========
pass: paketo-buildpacks/spring-boot@5.27.10
Resolving plan... (try #1)
fail: paketo-buildpacks/spring-boot@5.27.10 requires jvm-application
ERROR: No buildpack groups passed detection.
ERROR: Please check that you are running against the correct path.
ERROR: failed to detect: no buildpacks participating
Error: failed to fetch an image or build from source: executing lifecycle: failed with status code: 20
And this is my fly.toml
# fly.toml app configuration file generated for inngest-spring-boot-demo on 2024-02-28T12:25:34-08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'inngest-spring-boot-demo'
primary_region = 'sjc'
[build]
builder = "paketobuildpacks/builder-jammy-base"
buildpacks = [
"gcr.io/paketo-buildpacks/spring-boot"
]
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ['app']
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
I found this other issue, but it didn’t actually resolve it so I have no clue what’s going on here.
My laptop is Arch and is an x86 machine so this has nothing to do with Apple devices.
> uname -a
Linux ArchThinkpadZ16 6.7.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 23 Feb 2024 16:31:48 +0000 x86_64 GNU/Linux
Any idea how to proceed from here?