|
| 1 | +import com.typesafe.sbt.packager.docker._ |
| 2 | + |
1 | 3 | ThisBuild / organization := "de.upb.cs.swt.delphi"
|
2 | 4 | ThisBuild / organizationName := "Delphi Project"
|
3 | 5 | ThisBuild / organizationHomepage := Some(url("https://delphi.cs.uni-paderborn.de/"))
|
@@ -68,10 +70,23 @@ libraryDependencies ++= Seq(
|
68 | 70 |
|
69 | 71 |
|
70 | 72 | debianPackageDependencies := Seq("java8-runtime-headless")
|
| 73 | +mainClass in Compile := Some("de.upb.cs.swt.delphi.cli.DelphiCLI") |
| 74 | +discoveredMainClasses in Compile := Seq() |
71 | 75 |
|
72 | 76 | lazy val cli = (project in file(".")).
|
73 | 77 | enablePlugins(JavaAppPackaging).
|
74 | 78 | enablePlugins(DockerPlugin).
|
| 79 | + settings( |
| 80 | + dockerBaseImage := "openjdk:jre-alpine", |
| 81 | + dockerAlias := com.typesafe.sbt.packager.docker.DockerAlias(None, Some("delphihub"),"delphi-cli", Some(version.value)), |
| 82 | + dockerEntrypoint := Seq("/bin/bash"), |
| 83 | + dockerCommands ++= Seq( |
| 84 | + Cmd("USER", "root"), |
| 85 | + Cmd("RUN", "apk", "--no-cache", "add", "bash"), |
| 86 | + Cmd("RUN", "ln", "-s", "/opt/docker/bin/delphi", "/usr/bin/delphi" ), |
| 87 | + Cmd("USER", "daemon") |
| 88 | + ) |
| 89 | + ). |
75 | 90 | enablePlugins(ScalastylePlugin).
|
76 | 91 | enablePlugins(BuildInfoPlugin).
|
77 | 92 | enablePlugins(DebianPlugin).
|
|
0 commit comments