-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
107 changed files
with
2,761 additions
and
1,279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
name := "TheHive" | ||
|
||
lazy val thehiveBackend = (project in file("thehive-backend")) | ||
.enablePlugins(PlayScala) | ||
.settings(publish := {}) | ||
|
||
lazy val thehiveMetrics = (project in file("thehive-metrics")) | ||
.enablePlugins(PlayScala) | ||
.dependsOn(thehiveBackend) | ||
.settings(publish := {}) | ||
|
||
lazy val thehiveMisp = (project in file("thehive-misp")) | ||
.enablePlugins(PlayScala) | ||
.dependsOn(thehiveBackend) | ||
.settings(publish := {}) | ||
|
||
lazy val thehiveCortex = (project in file("thehive-cortex")) | ||
.enablePlugins(PlayScala) | ||
.dependsOn(thehiveBackend) | ||
.settings(publish := {}) | ||
.settings(SbtScalariform.scalariformSettings: _*) | ||
|
@@ -26,14 +30,19 @@ lazy val thehive = (project in file(".")) | |
.settings(PublishToBinTray.settings: _*) | ||
.settings(Release.settings: _*) | ||
|
||
|
||
// Redirect logs from ElasticSearch (which uses log4j2) to slf4j | ||
libraryDependencies += "org.apache.logging.log4j" % "log4j-to-slf4j" % "2.9.0" | ||
excludeDependencies += "org.apache.logging.log4j" % "log4j-core" | ||
|
||
lazy val rpmPackageRelease = (project in file("package/rpm-release")) | ||
.enablePlugins(RpmPlugin) | ||
.settings( | ||
name := "thehive-project-release", | ||
maintainer := "TheHive Project <[email protected]>", | ||
version := "1.0.0", | ||
rpmRelease := "3", | ||
rpmVendor in Rpm := "TheHive Project", | ||
rpmVendor := "TheHive Project", | ||
rpmUrl := Some("http://thehive-project.org/"), | ||
rpmLicense := Some("AGPL"), | ||
maintainerScripts in Rpm := Map.empty, | ||
|
@@ -125,7 +134,7 @@ linuxMakeStartScript in Debian := None | |
|
||
// RPM // | ||
rpmRelease := "1" | ||
rpmVendor in Rpm := "TheHive Project" | ||
rpmVendor := "TheHive Project" | ||
rpmUrl := Some("http://thehive-project.org/") | ||
rpmLicense := Some("AGPL") | ||
rpmRequirements += "java-1.8.0-openjdk-headless" | ||
|
@@ -163,12 +172,18 @@ mappings in Docker ~= (_.filterNot { | |
case (_, filepath) => filepath == "/opt/thehive/conf/application.conf" | ||
}) | ||
dockerCommands ~= { dc => | ||
val (dockerInitCmds, dockerTailCmds) = dc.splitAt(4) | ||
val (dockerInitCmds, dockerTailCmds) = dc | ||
.collect { | ||
case ExecCmd("RUN", "chown", _*) => ExecCmd("RUN", "chown", "-R", "daemon:root", ".") | ||
case other => other | ||
} | ||
.splitAt(4) | ||
dockerInitCmds ++ | ||
Seq( | ||
Cmd("ADD", "var", "/var"), | ||
Cmd("ADD", "var", "/var"), | ||
Cmd("ADD", "etc", "/etc"), | ||
ExecCmd("RUN", "chown", "-R", "daemon:daemon", "/var/log/thehive")) ++ | ||
ExecCmd("RUN", "chown", "-R", "daemon:root", "/var/log/thehive"), | ||
ExecCmd("RUN", "chmod", "+x", "/opt/thehive/bin/thehive", "/opt/thehive/entrypoint")) ++ | ||
dockerTailCmds | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=0.13.13 | ||
sbt.version=0.13.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.