Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
openmole
market
Commits
a3fad7fb
Commit
a3fad7fb
authored
Mar 06, 2020
by
Romain Reuillon
Browse files
Add container entry
parent
9154a071
Changes
1
Hide whitespace changes
Inline
Side-by-side
hello-container/Container.oms
0 → 100644
View file @
a3fad7fb
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment