Questions tagged [sbt-native-packager]

The sbt Native Packager is designed to package software built with the sbt build system into native packaging systems such as msi, deb, rpm, etc.

The sbt Native Packager is designed to bundle software built with the sbt build system into native packaging systems such as msi, deb, rpm, etc.

More information:

The git hub page for the software can be found here

360 questions
7
votes
1 answer

sbt multiple native packages

So using Scala Play Framework. I have a single codebase but need to launch it 2 ways. One way will launch with Play Netty as the main class, and run a webserver. A second way will run my own main class and do different things. If I do play dist …
bwawok
  • 14,898
  • 7
  • 32
  • 43
7
votes
1 answer

How to make sbt-native-packager refrain from putting my resources into a jar file?

I'm using the sbt-native-packager plugin to generate a start script for my application, which is very convenient as this plugin generates the correct classpath specification with all my library dependencies. I am not distributing this applictaion,…
Adam Mackler
  • 1,980
  • 1
  • 18
  • 32
7
votes
2 answers

Publish zip created by sbt-native-packager

I am trying to publish to a repository the zip file generated by the sbt-native-packager plugin through universal:packageBin task. I configured my project like this: publishTo := Some("Repo" at "http://repo") publishMavenStyle :=…
JLM
  • 123
  • 1
  • 6
6
votes
0 answers

How to re-use an existing task in sbt but with different settings

One of the use cases I have where I want to re-use an existing task is: Publishing a locally built docker image to a custom registry. It would be nice if I can just re-use: Docker / publishLocal but with other setting values. Initially I thought…
leozilla
  • 1,296
  • 2
  • 19
  • 29
6
votes
1 answer

sbt-native-packager: Scala App on Alpine Docker Image fails with permission denied

I have a Scala application that I want to run inside a Docker container. To build the docker image, I use sbt-native-packager. The base image I am using is "openjdk:8-jre-alpine". Tried "openjdk:8-jdk-alpine" - does not make any difference Tried…
6
votes
2 answers

sbt include custom directory in package

I am a novice to sbt and I would like to include a custom folder into final package. Based on some good reads, I understand sbt follows a specific folder structure and doesn't include custom folders unless specified in build file. Following is the…
thunderbird
  • 121
  • 2
  • 10
6
votes
3 answers

How to stop gracefully the actor system for an akka-http server that must be deployed.

I just created my first rest server with akka-http. The problem is that I do not know how to deploy the server in such a way that I could gracefully shutdown the actor system. For example I found something here:…
Emanuel Lal
  • 61
  • 1
  • 4
6
votes
2 answers

How do I change universal zip file name using sbt-native-packager

I am using: scala 2.10.3 sbt 13.2 with plugin: addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.3") I am using the universal:packgeBin to generate the universal zip file and publish to ivy repository. I'd like to change the zip file…
user111724
  • 71
  • 1
  • 2
6
votes
2 answers

How do you exclude conf folder in sbt dist task

I am trying to create a package using sbt-native-packager without the conf folder being in the project jar. I have my conf folder included as such: resourceDirectory in Compile <<= baseDirectory(_ => new File("conf")) This include the conf files in…
Dimitry
  • 4,503
  • 6
  • 26
  • 40
6
votes
1 answer

config directory when using sbt-native-packager

I'd like to ask about reasoning behind the fact, that the sbt-native-packager plugin creates a symlink /etc/ -> /usr/share//conf (instead of really putting files there and somehow specifying in the app where to look for them)? In particular how does…
tehshy
  • 108
  • 5
6
votes
1 answer

Environment-specific distributions using sbt native packager

I'm trying to create/configure environment-specifc distributions (for development, quality and production) using the sbt native packager functionality available in Play (2.2). I tried to achieve this using the following settings in a build.sbt…
Martin Studer
  • 2,213
  • 1
  • 18
  • 23
6
votes
1 answer

How to use sbt native packager with subprojects (sbt 0.13)

I have an sbt project with a multitude of subprojects and external library dependencies. build.sbt goes like this: val extlib1 = "xy.xxx" % "lib1" % "1.0+" val extlib2 = "xy.yyy" % "lib2" % "1.0+" val extlib3 = "xy.zzz" % "lib3" % "1.0+" lazy val…
Dirk Hillbrecht
  • 573
  • 5
  • 18
5
votes
2 answers

Sbt-native-packager cannot connect to Docker daemon

Here is my configuration which worked for more than one year but suddenly stopped working. variables: DOCKER_DRIVER: overlay2 DOCKER_TLS_CERTDIR: "" stage: deploy image: "hseeberger/scala-sbt:11.0.9.1_1.4.4_2.13.4" before_script: -…
Ducaz035
  • 3,054
  • 2
  • 25
  • 45
5
votes
1 answer

How to publish from sbt-native-packager to Google Container Engine?

I am experimenting with dockerizing my Scala/Akka app: I'm using sbt-native-packager and would like to deploy to GKE. It seems I could do that by setting the right values in my build.sbt file and then launch it via sbt docker:publish. I am not sure…
ticofab
  • 7,551
  • 13
  • 49
  • 90
5
votes
2 answers

Environment variable based runtime configuration with sbt native packager

I'm using the sbt native packager plugin to create a zip file of my application for deployment to elastic beanstalk. I would like to set environment variables in my beanstalk environment and have those be used to configure my application at runtime.…
novon
  • 973
  • 3
  • 15
  • 30
1
2
3
23 24