I have just discovered Habitat, and after inspecting some of the existing core plans, I had a go at building one for sbt.
I thought of sharing this here, hoping to get some feedback and maybe contributing it upstream later on. Specifically, I am a bit uncertain on the following.
Why can’t I export the plan as a docker container?
I can verify that the plan builds
sbt correctly by running:
hab pkg exec afiore/sbt/1.1.6 sbt
However, when I try exporting the package as a docker container (in hab studio), I get the error below. What is a primary service and should
sbt be one of those?
[default:/src:1]# hab pkg export docker results/afiore-sbt-1.1.6-20180730072046-x86_64-linux.hart
✗✗✗ A primary service package could not be determined from: ["afiore/sbt"]. At least one package with a run hook must be provided.
What do I do next?
what else do you recommend to do when developing a new package before opening a PR to the core repo?