Dynatrace Build pack with spring boot #303
Closed
sorenlloyd
started this conversation in
Java Team
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to include dynatrace support into our spring boot based microservice code.
I have binding, type, api-token and api-url set successfully.
When i compile i have this in my build.gradle....
buildpacks = [
"docker.io/paketobuildpacks/httpd:latest",
"docker.io/paketobuildpacks/dynatrace:latest"
]
I dont need httpd but it is the only way i can get it to compile properly.
if i leave it out i see...
2024-07-15T22:19:05.620991423Z Step #1 - "Build container image for Cloud Run": [creator] fail: paketo-buildpacks/[email protected] requires php
2024-07-15T22:19:05.620992124Z Step #1 - "Build container image for Cloud Run": [creator] Resolving plan... (try #2)
2024-07-15T22:19:05.620992752Z Step #1 - "Build container image for Cloud Run": [creator] fail: paketo-buildpacks/[email protected] requires php
2024-07-15T22:19:05.620993428Z Step #1 - "Build container image for Cloud Run": [creator] Resolving plan... (try #3)
2024-07-15T22:19:05.620993978Z Step #1 - "Build container image for Cloud Run": [creator] fail: paketo-buildpacks/[email protected] requires httpd
2024-07-15T22:19:05.620994520Z Step #1 - "Build container image for Cloud Run": [creator] Resolving plan... (try #4)
2024-07-15T22:19:05.620995108Z Step #1 - "Build container image for Cloud Run": [creator] fail: paketo-buildpacks/[email protected] requires node
2024-07-15T22:19:05.620995534Z Step #1 - "Build container image for Cloud Run": [creator] Resolving plan... (try #5)
2024-07-15T22:19:05.620996257Z Step #1 - "Build container image for Cloud Run": [creator] fail: paketo-buildpacks/[email protected] requires dotnet-core-aspnet-runtime
2024-07-15T22:19:05.620997167Z Step #1 - "Build container image for Cloud Run": [creator] Resolving plan... (try #6)
2024-07-15T22:19:05.620997786Z Step #1 - "Build container image for Cloud Run": [creator] fail: paketo-buildpacks/[email protected] requires go
2024-07-15T22:19:05.620998422Z Step #1 - "Build container image for Cloud Run": [creator] Resolving plan... (try #7)
2024-07-15T22:19:05.620999058Z Step #1 - "Build container image for Cloud Run": [creator] fail: paketo-buildpacks/[email protected] requires jvm-application
2024-07-15T22:19:05.620999728Z Step #1 - "Build container image for Cloud Run": [creator] Resolving plan... (try #8)
2024-07-15T22:19:05.621000320Z Step #1 - "Build container image for Cloud Run": [creator] fail: paketo-buildpacks/[email protected] requires nginx
2024-07-15T22:19:05.621000767Z Step #1 - "Build container image for Cloud Run": [creator] Resolving plan... (try #9)
2024-07-15T22:19:05.621001276Z Step #1 - "Build container image for Cloud Run": [creator] fail: paketo-buildpacks/[email protected] requires node
2024-07-15T22:19:05.621001853Z Step #1 - "Build container image for Cloud Run": [creator] Resolving plan... (try #10)
2024-07-15T22:19:05.621002366Z Step #1 - "Build container image for Cloud Run": [creator] fail: paketo-buildpacks/[email protected] requires php
2024-07-15T22:19:05.621003025Z Step #1 - "Build container image for Cloud Run": [creator] Resolving plan... (try #11)
2024-07-15T22:19:05.621003655Z Step #1 - "Build container image for Cloud Run": [creator] fail: paketo-buildpacks/[email protected] requires cpython
If i add all these it fails to compile.
With httpd included the container fails startup with....
2024-07-15T22:10:37.845857Z ESC[31;1mERROR: ESC[0mfailed to launch: path lookup: exec: "httpd": executable file not found in $PATH
2024-07-15T22:10:38.808048213Z Container called exit(82).
2024-07-15T22:10:38.865770Z Default STARTUP TCP probe failed 1 time consecutively for container "price-microservice-1" on port 8080. The instance was not started.
Any advice to simply use dynatrace with my spring boot based java code?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions