Skip to content

bts/lein-fpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lein-fpm

A Leiningen plugin for generating minimalist packages using fpm.

Generated packages install a standalone jar for your project in /usr/lib, and a wrapper shell script in /usr/bin named after your project. lein-fpm assumes that your project can successfully build a functioning standalone jar via lein uberjar.

Usage

System-wide install

Put [lein-fpm "0.1.0"] into the :plugins vector of your :user profile, or if you are on Leiningen 1.x do lein plugin install lein-fpm 0.1.0.

Per-project install

Put [lein-fpm "0.1.0"] into the :plugins vector of your project.clj.

Running

lein-fpm will produce a deb by default:

$ lein fpm

or you can supply a specific target type:

$ lein fpm rpm

This will produce a package in the target directory.

Included dependencies

By default, deb packages will depend on openjdk-7-jre-headless, rpm packages will depend on java-1.7.0-openjdk, and solaris packages will depend on jdk-7.

Caveats

At the moment, lein-fpm is quite simple and does not yet support configuration beyond the target type. Contributions and feedback are welcome! This project is a bit of an experimental tool I created in trying to produce the simplest packages that will usefully run within immutable servers.

Dependencies

This plugin depends on fpm, and rpmbuild if you are creating rpms.

License

Copyright © 2013 Brian Schroeder

Distributed under the MIT License.

About

A Leiningen plugin for building simple packages using fpm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors