draft-classic icon indicating copy to clipboard operation
draft-classic copied to clipboard

Java Play app not detected

Open puneet101 opened this issue 8 years ago • 4 comments

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

puneet101 avatar Mar 11 '18 22:03 puneet101

We use sbt to compile the project and have a build.sbt file in the main folder.

puneet101 avatar Mar 11 '18 22:03 puneet101

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:

  1. You can place your own Dockerfile in the directory and then run draft create. That should detect java and give you a chart as well as a draft.toml file 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 using draft create --pack java OR
  2. You can create your own Java Play pack using these instructions and host them in your own repo or contribute them to this repo.

michelleN avatar Mar 12 '18 13:03 michelleN

Thanks!

puneet101 avatar Mar 16 '18 21:03 puneet101

@puneet101 did you end up creating a pack to use? If so, I'd love to take a look.

jgleonard avatar Jun 06 '18 16:06 jgleonard