unofficial mirror of gwl-devel@gnu.org
 help / color / mirror / Atom feed
* Running hello tutorial in container
@ 2022-04-19 21:24 Olivier Dion via
  2022-04-22 18:16 ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Olivier Dion via @ 2022-04-19 21:24 UTC (permalink / raw)
  To: gwl-devel

Hi,

I'm trying to run the following workflow in a container:
------------------------------------------------------------
process greet
  packages "hello"
  # { hello }

process sleep
  packages "coreutils"
  # {
    echo "Sleeping..."
    sleep 10
  }

process eat (with something)
  name
    string-append "eat-" something
  # {
    echo "Eating {{something}}"
  }

process bye
  # { echo "Farewell, world!" }

workflow simple-wisp
  processes
    define eat-fruit
      eat "fruit"
    define eat-veges
      eat "vegetables"
    graph
      eat-fruit -> greet
      eat-veges -> greet
      sleep     -> eat-fruit eat-veges
      bye       -> sleep
------------------------------------------------------------

but I get many errors like this:
------------------------------------------------------------
run: 1.49 Executing: /bin/sh -c /gnu/store/z0kvv54isp0nb8ywrsjnwyp0im8hfp2g-gwl-greet-container.scm '((inputs) (outputs) (values) (name . "greet"))'
Backtrace:
           1 (primitive-load "/gnu/store/ggza923skigkq628gm9zpxbi4h9?")
In ice-9/eval.scm:
    619:8  0 (_ #(#(#<directory (guile-user) 7f7dfdad5c80> ("/gn?"))))

ice-9/eval.scm:619:8: Throw to key `match-error' with args `("match" "no matching pattern" ("/gnu/store/ggza923skigkq628gm9zpxbi4h9kmp73-gwl-greet.scm"))'.
run: 1.56 Executing: /bin/sh -c /gnu/store/dzm1alcp1x8b0i0k7xyjwmi4jwvxr0g9-gwl-eat-fruit-container.scm '((inputs) (outputs) (values) (name . "eat-fruit"))'
Backtrace:
           1 (primitive-load "/gnu/store/xc37y4crxjmi5pzhxvzsn3gc47h?")
In ice-9/eval.scm:
    619:8  0 (_ #(#(#<directory (guile-user) 7efe6e8e6c80> ("/gn?"))))
------------------------------------------------------------

I'm using gwl from commit bf1e701c610951bec93b2e49d186264100486847.

Is /gnu/store correctly exposed to the container?

-- 
Olivier Dion
oldiob.dev



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-22 18:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-19 21:24 Running hello tutorial in container Olivier Dion via
2022-04-22 18:16 ` Ricardo Wurmus
2022-04-22 18:24   ` Ricardo Wurmus
2022-04-22 18:42     ` Olivier Dion via

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).