Hi Michael, "snapcraft" sounds like an interesting idea. I'm curious what you see as the advantage over Docker images. Does the snap file contain the Java runtime? Kafka, like most JDK projects, already bundles its library dependencies internally, so I don't think snapcraft is adding quite as much value there as it might for a C/C++ application.
Is there a Maven or Gradle plugin that could generate this automatically from the install tar.gz file the project already maintains? best, Colin On Tue, Dec 6, 2016, at 06:04, Michael Hall wrote: > Hello all, > > My name is Michael Hall, I work at Canonical on the community team, and > recently I've been working with the snapcraft[1] developers to help > upstreams learn about and start using our new packaging format. > > Yesterday I spent a couple of hours looking at Kafka and building an > example .snap package for it. It now works, at least for the basics, and > I was able to follow the quickstart guide[2] after installing it. I'd > like to make this a contribution to Kafka, and get some developer help > to finish it up. > > For anybody who wants to try it, you can download it[3] and install it > with "sudo snap install --dangerous kafka_0.10.1_amd64.snap". It will > automatically start zookeeper and kafka-server as systemd services, and > makes the command "/snap/bin/kafka.topics" available to call from the > command line. > > I have attached the snapcraft.yaml used to build the snap, if you're on > Ubuntu 16.04 or later (or run it in a VM/docker) you can build it > yourself by calling "snapcraft" from the same directory as this file. > > [1] http://snapcraft.io/ > [2] https://kafka.apache.org/quickstart > [3] http://people.ubuntu.com/~mhall119/snaps/kafka_0.10.1_amd64.snap > > -- > Michael Hall > mhall...@gmail.com > Email had 1 attachment: > + snapcraft.yaml > 2k (application/x-yaml)