draft-classic
draft-classic copied to clipboard
Java Play app not detected
Puneets-MacBook-Pro-3:Control puneet$ draft create Error: no languages were detected
Are Java Play apps supported?
Is there a plan to auto-import Heroku Java apps with existing Procfiles?
Thanks, Puneet
We use sbt to compile the project and have a build.sbt file in the main folder.
Hey @puneet101 - Looks like there is not a pack for Java Play apps specifically. You can view all of the available packs here. There are two things you can do in this scenario:
- You can place your own Dockerfile in the directory and then run
draft create. That should detect java and give you achartas well as adraft.tomlfile which are the pieces you need to deploy your app to Kubernetes using draft. If the language auto-detection doesn't work, you can pass in the pack you want to use usingdraft create --pack javaOR - You can create your own Java Play pack using these instructions and host them in your own repo or contribute them to this repo.
Thanks!
@puneet101 did you end up creating a pack to use? If so, I'd love to take a look.