unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* guix system docker-image: nix not found
@ 2021-05-09 18:58 stuebinm
  2021-05-09 19:46 ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: stuebinm @ 2021-05-09 18:58 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 1218 bytes --]

Hi all,

I've been playing around with docker containers and guix (both to 
package software, and to eventually fit "building guix packages" into a 
docker-based CI pipeline).

The guix manual mentions that apart from `guix pack`, `guix system` can 
also build docker images of whole system configs, which seemed fitting, 
but it lacks an example, and I'm a bit unclear on some points. In 
particular, I don't know what to set for the bootloader and file-systems 
options in the system config, as neither really applies to a docker 
container (I tried not setting them at all, but guix doesn't allow that).

When trying with dummy values (taken from my own system config),
`guix system docker-image system.scm` fails to build the
guix-docker-image.tar.gz.drv, and the build log contains

   /gnu/store/...bash-5.0.16/bin/bash: nix: command not found

which doesn't really help.

I'm on a current guix system, i.e. `guix describe` gives:

   guix 069399e
     repository URL: https://git.savannah.gnu.org/git/guix.git
     branch: master
     commit: 069399ee9dbf75b7c89583f03346a63b2cfe4ac6

Thanks!

~stuebinm

[1] https://guix.gnu.org/manual/en/html_node/Invoking-guix-system.html


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

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

* Re: guix system docker-image: nix not found
  2021-05-09 18:58 guix system docker-image: nix not found stuebinm
@ 2021-05-09 19:46 ` Leo Famulari
  2021-05-09 19:59   ` stuebinm
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2021-05-09 19:46 UTC (permalink / raw)
  To: stuebinm; +Cc: help-guix

On Sun, May 09, 2021 at 08:58:59PM +0200, stuebinm wrote:
> When trying with dummy values (taken from my own system config),
> `guix system docker-image system.scm` fails to build the
> guix-docker-image.tar.gz.drv, and the build log contains
> 
>   /gnu/store/...bash-5.0.16/bin/bash: nix: command not found

It would help if you sent the entire log file as an attachment.


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

* Re: guix system docker-image: nix not found
  2021-05-09 19:46 ` Leo Famulari
@ 2021-05-09 19:59   ` stuebinm
  2021-05-09 20:38     ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: stuebinm @ 2021-05-09 19:59 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 1035 bytes --]

> On Sun, May 09, 2021 at 08:58:59PM +0200, stuebinm wrote:
>> When trying with dummy values (taken from my own system config),
>> `guix system docker-image system.scm` fails to build the
>> guix-docker-image.tar.gz.drv, and the build log contains
>>
>>    /gnu/store/...bash-5.0.16/bin/bash: nix: command not found
> 
> It would help if you sent the entire log file as an attachment.

nevermind; I thought that /was/ the entire logfile, but it turns out 
that I had the emacs nix-mode installed, which recognised the logfile as 
a derivation and tried to call nix to parse it, and apparently its 
failure mode (since I don't have nix installed) was to write its own 
stderr into the buffer without giving any indication that wasn't the 
real content of the file …

The actual logfile is of the vm running out of memory, which is a known 
issue [1]; I'll look into how to solve that.

Sorry for the unnecessary message, but thanks anyways for responding :)

~stuebinm

[1] https://issues.guix.gnu.org/48178


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

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

* Re: guix system docker-image: nix not found
  2021-05-09 19:59   ` stuebinm
@ 2021-05-09 20:38     ` Leo Famulari
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2021-05-09 20:38 UTC (permalink / raw)
  To: stuebinm; +Cc: help-guix

On Sun, May 09, 2021 at 09:59:06PM +0200, stuebinm wrote:
> The actual logfile is of the vm running out of memory, which is a known
> issue [1]; I'll look into how to solve that.

Oh... we need to fix that. Sorry for the roadblock.


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

end of thread, other threads:[~2021-05-09 23:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-09 18:58 guix system docker-image: nix not found stuebinm
2021-05-09 19:46 ` Leo Famulari
2021-05-09 19:59   ` stuebinm
2021-05-09 20:38     ` Leo Famulari

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