Git Product home page Git Product logo

sbt-native-packager's Introduction

SBT Native Packager

Build Status

This is a work in progress project. The goal is to be able to bundle up Scala software built with SBT for native packaging systems, like deb, rpm, homebrew, msi.

Issues/Discussions

  • Discussion/Questions: If you wish to ask questions about the native packager, we have a mailinglist and we're very active on Stack Overflow. You can either use the sbt tag or the sbt-native-packager tag. They also have far better search support for working around issues.
  • Docs: Our docs are available online. If you'd like to help improve the docs, they're part of this repository in the src/sphinx directory. ScalaDocs are also available.
  • Issues/Feature Requests: Finally, any bugs or features you find you need, please report to our issue tracker. Please check the compatibility matrix to see if your system is able to produce the packages you want.

Installation

Add the following to your project/plugins.sbt file:

// for sbt 0.12.x and scala 2.9.x
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.7-RC1")

// for sbt 0.13.x and scala 2.10.x
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.8.0-RC2")

// for autoplugins
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.0-M3")

For the native packager keys add this to your build.sbt

import NativePackagerKeys._

Experimental systemd bootsystem support

Native packager now provides experimental systemd startup scripts. Currently it works on Fedora Fedora release 20 (Heisenbug) and doesn't work on Ubuntu because of partial systemd support in Ubuntu 14.04 LTS. To enable this feature follow My First Packaged Server Project guide and use Systemd as server loader:

import com.typesafe.sbt.packager.archetypes.ServerLoader.Systemd
serverLoading in Rpm := Systemd

Any help on testing and improving this feature is appreciated so feel free to report bugs or making PR.

Experimental Docker support

Native packager now provides experimental Docker images. To enable this feature follow My First Packaged Server Project guide and use one of the provided Docker tasks for generating images.

To publish the image, dockerRepository should be set.

As with the systemd support, help with testing and improvements is appreciated.

Experimental JDeb support

If don't run a linux or mac system with dpkg installed, you can configure the debian packaging be done by jdeb. To enable this just set another packaging implementation in your build.sbt

packageBin in Debian <<= debianJDebPackaging in Debian

Documentation

There's a complete "getting started" guide and more detailed topics available at the sbt-native-packager site.

Please feel free to contribute documentation, or raise issues where you feel it may be lacking.

sbt-native-packager's People

Contributors

jsuereth avatar muuki88 avatar kardapoltsev avatar aparkinson avatar fiadliel avatar huntc avatar nazoking avatar jkutner avatar artempyanykh avatar jroper avatar rfranco avatar antonini avatar spigene avatar ivanfrain avatar mhamrah avatar dbathily avatar hfs avatar laguiz avatar mtye avatar ptrbrtz avatar tksk avatar gourlaysama avatar tartakynov avatar benmccann avatar blaisorblade avatar nefilim avatar hackmann avatar falmp avatar doswell avatar yanns avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.