guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Named environments


From: pinoaffe
Subject: Re: Named environments
Date: Mon, 13 Sep 2021 17:48:43 +0200
User-agent: mu4e 1.4.15; emacs 27.2

Hey guix,

to me, this sounds very similar to the features offered by profiles,
which differences do you envision?

blessings,
pinoaffe

Ryan Prior writes:

> Hey Guix.
>
> I've been thinking lately it would be convenient to create certain uniquely 
> named execution environments on my machine. For example, I might have one set 
> up with dependencies for my Python webapp & environment variables set to 
> autoconnect to a Postgres server. I might have another that's got test 
> dependencies and is containerized, such that it can only access the network & 
> not the rest of my filesystem. Suppose I name these two "webapp" and "test" 
> respectively.
>
> I picture running eg `guix env @webapp -- uvicorn main:app` to start my 
> server, then `guix env @test -- pytest` to run my tests.
>
> I might write a wrapper in some scripting language that sets up this kind of 
> system. Would anybody else be interested in using such a thing? Would it make 
> sense to integrate this capability into Guix itself?
>
> Ryan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]