unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: paul <goodoldpaul@autistici.org>
To: Nicolas Odermatt-Lemay <nodermattlemay@gmail.com>, guix-devel@gnu.org
Subject: Re: oci-container-service-type: Add support for creating networks
Date: Fri, 27 Sep 2024 21:29:55 +0200	[thread overview]
Message-ID: <05782d24-1ca2-d44b-b662-e612b9dca77c@autistici.org> (raw)
In-Reply-To: <CAC-BrWrbbJ0aRaxhb1WXMfgRMMi3w329vL396e7_G+PSsMp9DA@mail.gmail.com>

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

Hi Nicolas,

I'm working on a big refactor for the oci-container-service type at [0]. 
Basically users would be able to write something like the following in 
their own configurations:

(simple-service 'oci-monitoring
                 oci-service-type
                 (oci-configuration
                   (volumes (oci-volume-configuration  (name "my-volume")))
                   (networks (oci-network-configuration  (name "monitoring")))
                   (containers
                    (oci-container-configuration
                      (image "grafana")
                      (network "monitoring"))
                    (oci-container-configuration
                      (image "prometheus")
                      (network "monitoring")))))


It is completely compatible and with time I believe would deprecate the 
oci-container-service type. It will bring more features besides networks 
and volumes, such as support for running on top of rootless podman. It 
currently depends on [1] and [2] which bring respectively structured 
subuids and subgids support and rootless-podman as a Guix System 
service. Once they get in Guix I will upstream the new oci-service-type. 
If you'd like to collaborate on the service the development is happening 
on gocix [3] let's get in touch :)

I hope to work on [1] this weekend and to have it soon in Guix, if you 
have further comments on the implementation let me know!


Cheers,

giacomo


[0]: 
https://github.com/fishinthecalculator/guix-fork/compare/master...oci-service-type

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

[2]: https://issues.guix.gnu.org/72740

[3]: 
https://github.com/fishinthecalculator/gocix/blob/main/modules/oci/services/containers.scm

[-- Attachment #2: Type: text/html, Size: 2682 bytes --]

      reply	other threads:[~2024-09-27 19:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-26 19:31 oci-container-service-type: Add support for creating networks Nicolas Odermatt-Lemay
2024-09-27 19:29 ` paul [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=05782d24-1ca2-d44b-b662-e612b9dca77c@autistici.org \
    --to=goodoldpaul@autistici.org \
    --cc=guix-devel@gnu.org \
    --cc=nodermattlemay@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).