Azure / draft-classic

A tool for developers to create cloud-native applications on Kubernetes.
https://draft.sh
MIT License
3.92k stars 396 forks source link

Java Play app not detected #556

Closed puneet101 closed 6 years ago

puneet101 commented 6 years ago

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 commented 6 years ago

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

michelleN commented 6 years ago

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.
puneet101 commented 6 years ago

Thanks!

jgleonard commented 6 years ago

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