Commit a3fad7fb authored by Romain Reuillon's avatar Romain Reuillon
Browse files

Add container entry

parent 9154a071
val i = Val[Int]
val result = Val[String]
val resultInt = Val[Int]
val container =
ContainerTask(
"debian:stable-slim",
"echo $((${i}*2))",
install = Seq("apt update", "apt install -y bash"),
stdOut = result
) set (
inputs += i
)
val normalise =
ScalaTask("""val resultInt = result.split("\n").last.toInt""") set (
inputs += result,
outputs += resultInt
)
DirectSampling(
sampling = i in (0 to 10),
evaluation = container -- normalise
) hook (workDirectory / "result.csv")
\ No newline at end of file
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