unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* system docker-image needs file-system
@ 2020-01-15 16:17 Jimmy Thrasibule
  2020-01-15 20:01 ` Josh Marshall
  0 siblings, 1 reply; 5+ messages in thread
From: Jimmy Thrasibule @ 2020-01-15 16:17 UTC (permalink / raw)
  To: help-guix

Hi,

I'm trying to use Guix in order to create a Docker image. However, I'm
forced to set both ``bootloader`` and ``file-systems`` initializers:

    system.scm:29:0: error: missing field initializers (bootloader
file-systems)

For a Docker image this is quite unexpected. I'm wondering whether there is
a way to bypass this limitation?

Regards,
Jimmy

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

* Re: system docker-image needs file-system
  2020-01-15 16:17 system docker-image needs file-system Jimmy Thrasibule
@ 2020-01-15 20:01 ` Josh Marshall
  2020-01-15 20:19   ` Julien Lepiller
  0 siblings, 1 reply; 5+ messages in thread
From: Josh Marshall @ 2020-01-15 20:01 UTC (permalink / raw)
  To: jimmy; +Cc: help-guix

I'll second this.  It is one of my expected use cases.

On Wed, Jan 15, 2020, 13:32 Jimmy Thrasibule <jimmy.thrasibule@gmail.com>
wrote:

> Hi,
>
> I'm trying to use Guix in order to create a Docker image. However, I'm
> forced to set both ``bootloader`` and ``file-systems`` initializers:
>
>     system.scm:29:0: error: missing field initializers (bootloader
> file-systems)
>
> For a Docker image this is quite unexpected. I'm wondering whether there is
> a way to bypass this limitation?
>
> Regards,
> Jimmy
>

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

* Re: system docker-image needs file-system
  2020-01-15 20:01 ` Josh Marshall
@ 2020-01-15 20:19   ` Julien Lepiller
  2020-01-15 22:43     ` Jimmy Thrasibule
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Lepiller @ 2020-01-15 20:19 UTC (permalink / raw)
  To: help-guix, Josh Marshall, jimmy

Le 15 janvier 2020 15:01:18 GMT-05:00, Josh Marshall <joshua.r.marshall.1991@gmail.com> a écrit :
>I'll second this.  It is one of my expected use cases.
>
>On Wed, Jan 15, 2020, 13:32 Jimmy Thrasibule
><jimmy.thrasibule@gmail.com>
>wrote:
>
>> Hi,
>>
>> I'm trying to use Guix in order to create a Docker image. However,
>I'm
>> forced to set both ``bootloader`` and ``file-systems`` initializers:
>>
>>     system.scm:29:0: error: missing field initializers (bootloader
>> file-systems)
>>
>> For a Docker image this is quite unexpected. I'm wondering whether
>there is
>> a way to bypass this limitation?
>>
>> Regards,
>> Jimmy
>>

Not sure if that will work, but have you tried:

(bootloader #f)
(file-systems '())

?

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

* Re: system docker-image needs file-system
  2020-01-15 20:19   ` Julien Lepiller
@ 2020-01-15 22:43     ` Jimmy Thrasibule
  2020-01-16  7:31       ` Efraim Flashner
  0 siblings, 1 reply; 5+ messages in thread
From: Jimmy Thrasibule @ 2020-01-15 22:43 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: help-guix

I got it working by using


    (bootloader (bootloader-configuration
                 (bootloader grub-efi-bootloader)
                 (target "noop")))

    (file-systems (list (file-system
                         (device "noop")
                         (mount-point "/")
                         (type "noop"))))


Your suggestion seems to be working for (file-systems) but not (bootloader):

    Wrong type argument in position 1 (expecting struct): #f


Le mer. 15 janv. 2020 à 21:19, Julien Lepiller <julien@lepiller.eu> a
écrit :

> Le 15 janvier 2020 15:01:18 GMT-05:00, Josh Marshall <
> joshua.r.marshall.1991@gmail.com> a écrit :
> >I'll second this.  It is one of my expected use cases.
> >
> >On Wed, Jan 15, 2020, 13:32 Jimmy Thrasibule
> ><jimmy.thrasibule@gmail.com>
> >wrote:
> >
> >> Hi,
> >>
> >> I'm trying to use Guix in order to create a Docker image. However,
> >I'm
> >> forced to set both ``bootloader`` and ``file-systems`` initializers:
> >>
> >>     system.scm:29:0: error: missing field initializers (bootloader
> >> file-systems)
> >>
> >> For a Docker image this is quite unexpected. I'm wondering whether
> >there is
> >> a way to bypass this limitation?
> >>
> >> Regards,
> >> Jimmy
> >>
>
> Not sure if that will work, but have you tried:
>
> (bootloader #f)
> (file-systems '())
>
> ?
>
>

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

* Re: system docker-image needs file-system
  2020-01-15 22:43     ` Jimmy Thrasibule
@ 2020-01-16  7:31       ` Efraim Flashner
  0 siblings, 0 replies; 5+ messages in thread
From: Efraim Flashner @ 2020-01-16  7:31 UTC (permalink / raw)
  To: jimmy; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 2201 bytes --]

On Wed, Jan 15, 2020 at 11:43:25PM +0100, Jimmy Thrasibule wrote:
> I got it working by using
> 
> 
>     (bootloader (bootloader-configuration
>                  (bootloader grub-efi-bootloader)
>                  (target "noop")))
> 
>     (file-systems (list (file-system
>                          (device "noop")
>                          (mount-point "/")
>                          (type "noop"))))
> 
> 
> Your suggestion seems to be working for (file-systems) but not (bootloader):
> 
>     Wrong type argument in position 1 (expecting struct): #f

Here's what I typically use for my guix system containers:

  (bootloader (bootloader-configuration
               (bootloader grub-bootloader)
               (target "does-not-matter")))
  (file-systems %base-file-systems)
  ;; No firmware for VMs.
  (firmware '())
  ;; We don't need any packages inside the container.
  (packages '())

Based on other discussions, it seems that (bootloader #f) may also work.

> 
> 
> Le mer. 15 janv. 2020 à 21:19, Julien Lepiller <julien@lepiller.eu> a
> écrit :
> 
> > Le 15 janvier 2020 15:01:18 GMT-05:00, Josh Marshall <
> > joshua.r.marshall.1991@gmail.com> a écrit :
> > >I'll second this.  It is one of my expected use cases.
> > >
> > >On Wed, Jan 15, 2020, 13:32 Jimmy Thrasibule
> > ><jimmy.thrasibule@gmail.com>
> > >wrote:
> > >
> > >> Hi,
> > >>
> > >> I'm trying to use Guix in order to create a Docker image. However,
> > >I'm
> > >> forced to set both ``bootloader`` and ``file-systems`` initializers:
> > >>
> > >>     system.scm:29:0: error: missing field initializers (bootloader
> > >> file-systems)
> > >>
> > >> For a Docker image this is quite unexpected. I'm wondering whether
> > >there is
> > >> a way to bypass this limitation?
> > >>
> > >> Regards,
> > >> Jimmy
> > >>
> >
> > Not sure if that will work, but have you tried:
> >
> > (bootloader #f)
> > (file-systems '())
> >
> > ?
> >
> >

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2020-01-16  7:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-15 16:17 system docker-image needs file-system Jimmy Thrasibule
2020-01-15 20:01 ` Josh Marshall
2020-01-15 20:19   ` Julien Lepiller
2020-01-15 22:43     ` Jimmy Thrasibule
2020-01-16  7:31       ` Efraim Flashner

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