[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A public Lisp programming interface provide feature like `guix envir
From: |
Zhu Zihao |
Subject: |
Re: A public Lisp programming interface provide feature like `guix environment --container` |
Date: |
Wed, 04 Nov 2020 18:36:25 +0800 |
User-agent: |
mu4e 1.4.13; emacs 27.1 |
Leo Prikler writes:
> For the record, what you do want is something à la
> (call-in-container-environment THUNK MANIFEST . KWARGS)
> where manifest is the Guix environment manifest, THUNK is a procedure
> to call with 0 arguments and KWARGS is a list of options for things you
> might want to set up, e.g. just the GUIX_ENVIRONMENT variable or more
> than that.
>
> Is that about right?
>
> Regards, Leo
Yes, that's what I want. KWARGS may accept something like user-mappings,
network?, namepsaces etc. like `launch-environment/container`. So I can
create container entry script for different executable in batch with
more confidence in code reuse. It's ugly to
concatenate string argument (For example: `(string-append "--expose="
xxxx "=" yyy)`) when I want to reuse some path variable.
--
Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp
Zihao
signature.asc
Description: PGP signature