Commit e2b18a41 authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

docker target for h5Tool and archiveTool

parent 5104d33d
......@@ -1648,7 +1648,26 @@ lazy val archiveTool = (project in file("archive/archive-tool")).
).
settings(Revolver.settings: _*).
enablePlugins(BuildInfoPlugin).
settings(gitVersionSettings: _*)
settings(gitVersionSettings: _*).
enablePlugins(DockerPlugin).
settings(
docker := { (docker dependsOn assembly).value },
imageNames in docker := Seq(
ImageName(s"$dockerRegistry/$dockerProjectName/${name.value.toLowerCase}:v${version.value}")
),
dockerfile in docker := {
val artifact = (assemblyOutputPath in assembly).value
val artifactTargetPath = s"/app/archiveTool.jar"
new Dockerfile {
from("nomadlab/nomadlabbase")
add(baseDirectory.value / "src/main/docker", "/app")
add(artifact, artifactTargetPath)
entryPoint("java", "-Djava.library.path=/lib", "-jar", artifactTargetPath)
}
},
javaOptions += ("-Djava.library.path=" + (baseDirectory.value / "../hdf5/hdf5-support/lib").getCanonicalFile().toString())
)
lazy val h5Tool = (project in file("archive/h5-tool")).
dependsOn(core).
......@@ -1660,7 +1679,26 @@ lazy val h5Tool = (project in file("archive/h5-tool")).
).
settings(Revolver.settings: _*).
enablePlugins(BuildInfoPlugin).
settings(gitVersionSettings: _*)
settings(gitVersionSettings: _*).
enablePlugins(DockerPlugin).
settings(
docker := { (docker dependsOn assembly).value },
imageNames in docker := Seq(
ImageName(s"$dockerRegistry/$dockerProjectName/${name.value.toLowerCase}:v${version.value}")
),
dockerfile in docker := {
val artifact = (assemblyOutputPath in assembly).value
val artifactTargetPath = s"/app/h5Tool.jar"
new Dockerfile {
from("nomadlab/nomadlabbase")
add(baseDirectory.value / "src/main/docker", "/app")
add(artifact, artifactTargetPath)
entryPoint("java", "-Djava.library.path=/lib", "-jar", artifactTargetPath)
}
},
javaOptions += ("-Djava.library.path=" + (baseDirectory.value / "../hdf5/hdf5-support/lib").getCanonicalFile().toString())
)
lazy val archiveWebservice = (project in file("archive/archive-webservice")).
dependsOn(core).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment