Skip to content

Commit

Permalink
add additional dir for libs in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
kr7ysztof committed Nov 3, 2023
1 parent 493b508 commit 9c1f88e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import com.typesafe.sbt.packager.MappingsHelper.contentOf
import com.typesafe.sbt.packager.docker
import com.typesafe.sbt.packager.docker.ExecCmd
import scalariform.formatter.preferences._
import com.typesafe.sbt.packager.docker.{Cmd, DockerChmodType, ExecCmd}
import scalariform.formatter.preferences.*

val rokkuVersion = scala.sys.env.getOrElse("ROKKU_VERSION", "SNAPSHOT")

Expand Down Expand Up @@ -87,8 +88,11 @@ scalariformPreferences := scalariformPreferences.value
.setPreference(NewlineAtEndOfFile, true)
.setPreference(SingleCasePatternOnNewline, false)

dockerChmodType := DockerChmodType.UserGroupWriteExecute
dockerCommands += ExecCmd("RUN", "mkdir", "-p", "/opt/docker/lib/plugins") //additional libs e.g. for authorization plugin

// hack for ranger conf dir - should contain files like ranger-s3-security.xml etc.
bashScriptDefines / scriptClasspath ~= (cp => cp :+ ":/etc/rokku"+ ":/opt/docker/libs")
bashScriptDefines / scriptClasspath ~= (cp => cp :+ ":/etc/rokku"+ ":/opt/docker/lib/plugins/*")

//Coverage settings
Compile / coverageMinimum := 70
Expand Down

0 comments on commit 9c1f88e

Please sign in to comment.