unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#67574] oci-container-service: hotfix
@ 2023-12-01 22:38 paul via Guix-patches via
  2023-12-01 22:45 ` [bug#67574] [PATCH] services: Fix oci-container-service-type container user Giacomo Leidi via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: paul via Guix-patches via @ 2023-12-01 22:38 UTC (permalink / raw)
  To: 67574; +Cc: Ludovic Courtès

Hello Ludo’ ,

I just managed to read my Guix email after some  time. I just guix 
pulled and realized there's a bug at [0]. The fix is trivial and I'm 
sending it as a patch. I'm also working on a test suite to prevent this 
to happen in the future.


Thanks for all your work,

giacomo



[0]: 
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/docker.scm#n377





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

* [bug#67574] [PATCH] services: Fix oci-container-service-type container user.
  2023-12-01 22:38 [bug#67574] oci-container-service: hotfix paul via Guix-patches via
@ 2023-12-01 22:45 ` Giacomo Leidi via Guix-patches via
  2023-12-10 21:23   ` bug#67574: oci-container-service: hotfix Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2023-12-01 22:45 UTC (permalink / raw)
  To: 67574; +Cc: Giacomo Leidi

The oci-container-configuration supports two user fields: one is the
user, from the host system, under whose authority the OCI-backed
Shepherd service is run; the other is an optional user/UID that can be
passed to the docker run invokation to override the user defined in the
OCI image.

The user from the host system is incorrectly passed to docker run
command, this patches reverts the incorrect behavior and passes the
correct container-user field value.

* gnu/services/docker.scm (oci-container-configuration): Fix the user
passed to the docker run invokation.
---
 gnu/services/docker.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/services/docker.scm b/gnu/services/docker.scm
index ebea0a473a..72ef7d74db 100644
--- a/gnu/services/docker.scm
+++ b/gnu/services/docker.scm
@@ -374,7 +374,7 @@ (define oci-container-configuration->options
           (network
            (oci-container-configuration-network config))
           (user
-           (oci-container-configuration-user config))
+           (oci-container-configuration-container-user config))
           (workdir
            (oci-container-configuration-workdir config)))
       (apply append

base-commit: 842a11f1caa1bb929c427722ad9d7b7c1ff65727
-- 
2.41.0





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

* bug#67574: oci-container-service: hotfix
  2023-12-01 22:45 ` [bug#67574] [PATCH] services: Fix oci-container-service-type container user Giacomo Leidi via Guix-patches via
@ 2023-12-10 21:23   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2023-12-10 21:23 UTC (permalink / raw)
  To: Giacomo Leidi; +Cc: 67574-done

Giacomo Leidi <goodoldpaul@autistici.org> skribis:

> The oci-container-configuration supports two user fields: one is the
> user, from the host system, under whose authority the OCI-backed
> Shepherd service is run; the other is an optional user/UID that can be
> passed to the docker run invokation to override the user defined in the
> OCI image.
>
> The user from the host system is incorrectly passed to docker run
> command, this patches reverts the incorrect behavior and passes the
> correct container-user field value.
>
> * gnu/services/docker.scm (oci-container-configuration): Fix the user
> passed to the docker run invokation.

Applied, thanks!




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

end of thread, other threads:[~2023-12-10 21:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-01 22:38 [bug#67574] oci-container-service: hotfix paul via Guix-patches via
2023-12-01 22:45 ` [bug#67574] [PATCH] services: Fix oci-container-service-type container user Giacomo Leidi via Guix-patches via
2023-12-10 21:23   ` bug#67574: oci-container-service: hotfix 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).