[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#28128] [PATCH] scripts: system: Add support for container network s
From: |
Ludovic Courtès |
Subject: |
[bug#28128] [PATCH] scripts: system: Add support for container network sharing. |
Date: |
Sun, 10 Mar 2019 18:20:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hi Arun,
Arun Isaac <address@hidden> skribis:
>> a. Add in (gnu services) an ‘hosts-database-service-type’ that would
>> take could be extended with IP/name pairs that it would put in
>> /etc/hosts.
>>
>> b. Have ‘essential-services’ extend ‘hosts-database-service-type’.
>>
>> In the container-with-shared-network case we’d arrange to not extend
>> ‘hosts-database-service-type’, which would thus not produce /etc/hosts.
>
> How would we arrange to not extend `hosts-database-service-type' in the
> container-with-shared-network case? Wouldn't such an arrangement still
> require us to pass #:container-shared-network? to `essential-services'?
Oh, hmm, good point.
Perhaps ‘essential-services’ could check whether
‘hosts-database-service-type’ is part of the
‘operating-system-user-services’.
If it is, it would extend it; if not, it would do nothing.
‘hosts-database-service-type’ would be part of ‘%base-services’, but
in the container-with-shared-network case, we’d remove it (in a
procedure similar to ‘virtualized-operating-system’.)
How does that sound?
Thanks,
Ludo’.