unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Guix containers 'advertised' in git repos
@ 2020-08-10 10:36 Pjotr Prins
  2020-08-10 14:53 ` David Dashyan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pjotr Prins @ 2020-08-10 10:36 UTC (permalink / raw)
  To: guix-devel

We are using Guix containers for deployment and software development.
I was thinking it would be nice to advertise them in the git repos.

Maybe we can standardise on that. What I have now is have a file

  .git-deploy

for deployment. E.g.,
https://github.com/encryption4genetics/HEGP-website/blob/master/.guix-deploy

and 

  .git-dev 

for development. E.g.,
https://github.com/genetics-statistics/GEMMA/blob/master/.guix-dev

These are just examples and can be generalised with a manifest. And
I should probable use plain guix instead of ~/opt/guix/bin/guix ;).

But maybe we can document a 'standard' for people to follow that allow
for quickly finding the build using guix and deploying with a single
command

    sh .guix-deploy




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

* Re: Guix containers 'advertised' in git repos
  2020-08-10 10:36 Guix containers 'advertised' in git repos Pjotr Prins
@ 2020-08-10 14:53 ` David Dashyan
  2020-08-27 10:53 ` zimoun
  2020-08-28 10:33 ` Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: David Dashyan @ 2020-08-10 14:53 UTC (permalink / raw)
  To: Pjotr Prins; +Cc: guix-devel


Hi!

We do the same thing, kind of, but due to our CLA restrictions we have
everything in separate repository.

https://github.com/ipdb/bigchaindb-guix

I've named the file "activate" which is python's idiom taken from
virtualenv.  And it creates persistent dev environment in ".genv"
directory (maybe .guix-profile is a better name).  It would be cool to
have an naming conventions in place, the only problem I see here is that
guix is capable of so much stuff it is hard to predict ways people are
going to be using it.

-- 
David aka zzappie


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

* Re: Guix containers 'advertised' in git repos
  2020-08-10 10:36 Guix containers 'advertised' in git repos Pjotr Prins
  2020-08-10 14:53 ` David Dashyan
@ 2020-08-27 10:53 ` zimoun
  2020-08-28 10:33 ` Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: zimoun @ 2020-08-27 10:53 UTC (permalink / raw)
  To: Pjotr Prins, guix-devel

Hi Pjotr,

On Mon, 10 Aug 2020 at 12:36, Pjotr Prins <pjotr.public12@thebird.nl> wrote:
> We are using Guix containers for deployment and software development.
> I was thinking it would be nice to advertise them in the git repos.
>
> Maybe we can standardise on that. What I have now is have a file
>
>   .git-deploy
>
> for deployment. E.g.,
> https://github.com/encryption4genetics/HEGP-website/blob/master/.guix-deploy
>
> and 
>
>   .git-dev 
>
> for development. E.g.,
> https://github.com/genetics-statistics/GEMMA/blob/master/.guix-dev
>
> These are just examples and can be generalised with a manifest. And
> I should probable use plain guix instead of ~/opt/guix/bin/guix ;).
>
> But maybe we can document a 'standard' for people to follow that allow
> for quickly finding the build using guix and deploying with a single
> command
>
>     sh .guix-deploy

I am not convince that a shell file should be the “standard” and instead
“augmented” manifest files seem more elegant, as suggested for example
here:

  https://lists.gnu.org/archive/html/guix-devel/2020-07/msg00005.html


Cheers,
simon


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

* Re: Guix containers 'advertised' in git repos
  2020-08-10 10:36 Guix containers 'advertised' in git repos Pjotr Prins
  2020-08-10 14:53 ` David Dashyan
  2020-08-27 10:53 ` zimoun
@ 2020-08-28 10:33 ` Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2020-08-28 10:33 UTC (permalink / raw)
  To: Pjotr Prins; +Cc: guix-devel

Hello,

Pjotr Prins <pjotr.public12@thebird.nl> skribis:

> We are using Guix containers for deployment and software development.
> I was thinking it would be nice to advertise them in the git repos.
>
> Maybe we can standardise on that. What I have now is have a file
>
>   .git-deploy
>
> for deployment. E.g.,
> https://github.com/encryption4genetics/HEGP-website/blob/master/.guix-deploy
>
> and 
>
>   .git-dev 
>
> for development. E.g.,
> https://github.com/genetics-statistics/GEMMA/blob/master/.guix-dev

[...]

David Dashyan <mail@davie.li> skribis:

> We do the same thing, kind of, but due to our CLA restrictions we have
> everything in separate repository.
>
> https://github.com/ipdb/bigchaindb-guix
>
> I've named the file "activate" which is python's idiom taken from

There’s a rather widespread convention for ‘guix.scm’, to be passed to
‘guix environment -l’ or ‘guix package -f’.

However, there’s currently no tool to declare the container parameters,
which is why your ‘.guix-deploy’ file above is essentially a shell
script.

A long time ago Dave Thompson suggested having an <environment> (or
similar) data type on top of <manifest>, which would describe that sort
of thing.  Perhaps something to keep in mind for ‘guix shell’?

Ludo’.


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

end of thread, other threads:[~2020-08-28 10:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-10 10:36 Guix containers 'advertised' in git repos Pjotr Prins
2020-08-10 14:53 ` David Dashyan
2020-08-27 10:53 ` zimoun
2020-08-28 10:33 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).