~cnx/guix/gnu/system/linux-container.scm, branch wip-filesearch Personal Guix development branches http://trong.loang.net/~cnx/guix/atom?h=wip-filesearch 2020-04-26T20:49:49+00:00 services: system: Initial entries are non-monadic. 2020-04-26T20:49:49+00:00 Ludovic Courtès ludo@gnu.org 2020-04-22T14:22:33+00:00 urn:sha1:0e5c2d5e145118ec47329d6b3a534344d2e89cd3 * gnu/system.scm (operating-system-directory-base-entries): Return a regular, non-monadic value. * gnu/services.scm (system-derivation): Adjust accordingly. * gnu/system/linux-container.scm (container-essential-services): Likewise. system: linux-container: Recommend guix container. 2020-01-06T10:20:21+00:00 Efraim Flashner efraim@flashner.co.il 2019-12-23T14:05:04+00:00 urn:sha1:c27710859c3cb59c439571ddc56cf71c36a1c33c * gnu/system/linux-container.scm (container-script)[script]: Recommend using 'guix container' to get a shell inside the running container. linux-container: 'eval/container' correctly passes -L and -C flags. 2019-09-18T21:08:28+00:00 Ludovic Courtès ludo@gnu.org 2019-09-18T13:11:40+00:00 urn:sha1:96b35998e610c7fc37bf87bf9e07e63d3bebd0a3 This fixes a type error. * gnu/system/linux-container.scm (eval/container): Use 'append-map', not 'map'. * tests/containers.scm ("eval/container, non-empty load path"): New test. linux-container: "run-container" scripts shows the container's PID. 2019-09-12T21:07:43+00:00 Ludovic Courtès ludo@gnu.org 2019-09-12T21:06:12+00:00 urn:sha1:d236cd16a7173278ca69578d3e7ce4d1ce55e04c * gnu/build/linux-container.scm (call-with-container): Add #:process-spawned-hook and honor it. * gnu/system/linux-container.scm (container-script)[script]: Define 'explain' and pass it as #:process-spawned-hook'. linux-container: Exclude more services when sharing networking with the host. 2019-09-12T21:07:42+00:00 Ludovic Courtès ludo@gnu.org 2019-09-12T20:23:35+00:00 urn:sha1:da966a7a3d8a5c3fbc2f4105b95c4af17b2bbfdc * gnu/system/linux-container.scm (containerized-operating-system)[useless-services]: Add more services to the list when SHARED-NETWORK? is true. file-systems: Add /var/run/nscd to '%network-file-mappings'. 2019-09-12T21:07:42+00:00 Ludovic Courtès ludo@gnu.org 2019-09-12T20:17:43+00:00 urn:sha1:5ccec77176b7e0c67ed58c8849e5e76f3dd79a88 This allows containers created by "guix environment -CN" or by "guix system container -N" to talk to the host nscd. * gnu/system/file-systems.scm (%network-file-mappings): Add "/var/run/nscd". * gnu/build/shepherd.scm (default-mounts)[nscd-socket]: Remove. * gnu/system/linux-container.scm (container-script)[nscd-run-directory] [nscd-mapping, nscd-os, nscd-specs]: Remove. [script]: Filter out from SPECS bind-mounts where the device does not exist. * guix/scripts/environment.scm (launch-environment/container) [optional-mapping->fs]: New procedure. [mappings]: Remove %NETWORK-FILE-MAPPINGS. [file-systems]: Add %NETWORK-FILE-MAPPINGS here, filtered through 'optional-mapping->fs'. linux-container: Add 'eval/container'. 2019-07-19T09:53:47+00:00 Ludovic Courtès ludo@gnu.org 2019-07-15T14:14:31+00:00 urn:sha1:bacfec8611530dc3e849fb804b51f50b299796f0 * gnu/system/linux-container.scm (eval/container): New procedure. * tests/containers.scm ("eval/container, exit status") ("eval/container, writable user mapping"): New tests. linux-container: Remove networking service when network is shared with host. 2019-06-18T18:49:47+00:00 Arun Isaac arunisaac@systemreboot.net 2019-05-25T06:19:42+00:00 urn:sha1:b84c4cda046589658c4d1ba4a9c0b292351fe5ca * gnu/system/linux-container.scm (dummy-networking-service-type): New variable. (containerized-operating-system): If network is shared with host, replace static-networking-service-type with dummy-networking-service-type. linux-container: Check if nscd run directory exists when container is run. 2019-05-25T05:36:22+00:00 Arun Isaac arunisaac@systemreboot.net 2019-05-21T20:16:54+00:00 urn:sha1:d2928fa63f97844f8b60b9baf8e9a023ee7f2f80 * gnu/system/linux-container.scm (containerized-operating-system): (container-script): Check for existence of the host nscd run directory in the container script. This check should be run when the container is started, not when the container script is created. [network-mappings]: Delete variable. [nscd-run-directory, nscd-mapping]: New variables. linux-container: Compute essential services for THIS-OPERATING-SYSTEM. 2019-05-15T14:36:21+00:00 Ludovic Courtès ludo@gnu.org 2019-05-10T20:07:55+00:00 urn:sha1:3f9bed04f031a4d4f8d3b6dc0a4de42b0c628496 Previously, the 'essential-services' would correspond to the initial, non-containerized OS. Thus, all the file systems removed in 'container-essential-services' would actually still be there because the essential services would be computed on the non-containerized OS. This is a followup to 69cae3d3356a69b7fe69481338f760545995485e. * gnu/system/linux-container.scm (container-essential-services): Call 'operating-system-default-essential-services' to get the baseline services. (containerized-operating-system): Pass THIS-OPERATING-SYSTEM, not OS, to 'container-essential-services'. Add a dummy root file system to 'file-systems'. (container-script)[mountable-file-system?]: New procedure. Use it.
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<feed xmlns="http://www.w3.org/2005/Atom">
<title>~cnx/guix/gnu/system/linux-container.scm, branch wip-filesearch</title>
<subtitle>Personal Guix development branches </subtitle>
<id>http://trong.loang.net/~cnx/guix/atom?h=wip-filesearch</id>
<link rel="self" href="http://trong.loang.net/~cnx/guix/atom?h=wip-filesearch"/>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/"/>
<updated>2020-04-26T20:49:49+00:00</updated>
<entry>
<title>services: system: Initial entries are non-monadic.</title>
<updated>2020-04-26T20:49:49+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2020-04-22T14:22:33+00:00</published>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/commit/?id=0e5c2d5e145118ec47329d6b3a534344d2e89cd3"/>
<id>urn:sha1:0e5c2d5e145118ec47329d6b3a534344d2e89cd3</id>
<content type="text"> * gnu/system.scm (operating-system-directory-base-entries): Return a regular, non-monadic value. * gnu/services.scm (system-derivation): Adjust accordingly. * gnu/system/linux-container.scm (container-essential-services): Likewise. </content>
</entry>
<entry>
<title>system: linux-container: Recommend guix container.</title>
<updated>2020-01-06T10:20:21+00:00</updated>
<author>
<name>Efraim Flashner</name>
<email>efraim@flashner.co.il</email>
</author>
<published>2019-12-23T14:05:04+00:00</published>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/commit/?id=c27710859c3cb59c439571ddc56cf71c36a1c33c"/>
<id>urn:sha1:c27710859c3cb59c439571ddc56cf71c36a1c33c</id>
<content type="text"> * gnu/system/linux-container.scm (container-script)[script]: Recommend using 'guix container' to get a shell inside the running container. </content>
</entry>
<entry>
<title>linux-container: 'eval/container' correctly passes -L and -C flags.</title>
<updated>2019-09-18T21:08:28+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-09-18T13:11:40+00:00</published>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/commit/?id=96b35998e610c7fc37bf87bf9e07e63d3bebd0a3"/>
<id>urn:sha1:96b35998e610c7fc37bf87bf9e07e63d3bebd0a3</id>
<content type="text"> This fixes a type error. * gnu/system/linux-container.scm (eval/container): Use 'append-map', not 'map'. * tests/containers.scm ("eval/container, non-empty load path"): New test. </content>
</entry>
<entry>
<title>linux-container: "run-container" scripts shows the container's PID.</title>
<updated>2019-09-12T21:07:43+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-09-12T21:06:12+00:00</published>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/commit/?id=d236cd16a7173278ca69578d3e7ce4d1ce55e04c"/>
<id>urn:sha1:d236cd16a7173278ca69578d3e7ce4d1ce55e04c</id>
<content type="text"> * gnu/build/linux-container.scm (call-with-container): Add #:process-spawned-hook and honor it. * gnu/system/linux-container.scm (container-script)[script]: Define 'explain' and pass it as #:process-spawned-hook'. </content>
</entry>
<entry>
<title>linux-container: Exclude more services when sharing networking with the host.</title>
<updated>2019-09-12T21:07:42+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-09-12T20:23:35+00:00</published>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/commit/?id=da966a7a3d8a5c3fbc2f4105b95c4af17b2bbfdc"/>
<id>urn:sha1:da966a7a3d8a5c3fbc2f4105b95c4af17b2bbfdc</id>
<content type="text"> * gnu/system/linux-container.scm (containerized-operating-system)[useless-services]: Add more services to the list when SHARED-NETWORK? is true. </content>
</entry>
<entry>
<title>file-systems: Add /var/run/nscd to '%network-file-mappings'.</title>
<updated>2019-09-12T21:07:42+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-09-12T20:17:43+00:00</published>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/commit/?id=5ccec77176b7e0c67ed58c8849e5e76f3dd79a88"/>
<id>urn:sha1:5ccec77176b7e0c67ed58c8849e5e76f3dd79a88</id>
<content type="text"> This allows containers created by "guix environment -CN" or by "guix system container -N" to talk to the host nscd. * gnu/system/file-systems.scm (%network-file-mappings): Add "/var/run/nscd". * gnu/build/shepherd.scm (default-mounts)[nscd-socket]: Remove. * gnu/system/linux-container.scm (container-script)[nscd-run-directory] [nscd-mapping, nscd-os, nscd-specs]: Remove. [script]: Filter out from SPECS bind-mounts where the device does not exist. * guix/scripts/environment.scm (launch-environment/container) [optional-mapping->fs]: New procedure. [mappings]: Remove %NETWORK-FILE-MAPPINGS. [file-systems]: Add %NETWORK-FILE-MAPPINGS here, filtered through 'optional-mapping->fs'. </content>
</entry>
<entry>
<title>linux-container: Add 'eval/container'.</title>
<updated>2019-07-19T09:53:47+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-07-15T14:14:31+00:00</published>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/commit/?id=bacfec8611530dc3e849fb804b51f50b299796f0"/>
<id>urn:sha1:bacfec8611530dc3e849fb804b51f50b299796f0</id>
<content type="text"> * gnu/system/linux-container.scm (eval/container): New procedure. * tests/containers.scm ("eval/container, exit status") ("eval/container, writable user mapping"): New tests. </content>
</entry>
<entry>
<title>linux-container: Remove networking service when network is shared with host.</title>
<updated>2019-06-18T18:49:47+00:00</updated>
<author>
<name>Arun Isaac</name>
<email>arunisaac@systemreboot.net</email>
</author>
<published>2019-05-25T06:19:42+00:00</published>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/commit/?id=b84c4cda046589658c4d1ba4a9c0b292351fe5ca"/>
<id>urn:sha1:b84c4cda046589658c4d1ba4a9c0b292351fe5ca</id>
<content type="text"> * gnu/system/linux-container.scm (dummy-networking-service-type): New variable. (containerized-operating-system): If network is shared with host, replace static-networking-service-type with dummy-networking-service-type. </content>
</entry>
<entry>
<title>linux-container: Check if nscd run directory exists when container is run.</title>
<updated>2019-05-25T05:36:22+00:00</updated>
<author>
<name>Arun Isaac</name>
<email>arunisaac@systemreboot.net</email>
</author>
<published>2019-05-21T20:16:54+00:00</published>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/commit/?id=d2928fa63f97844f8b60b9baf8e9a023ee7f2f80"/>
<id>urn:sha1:d2928fa63f97844f8b60b9baf8e9a023ee7f2f80</id>
<content type="text"> * gnu/system/linux-container.scm (containerized-operating-system): (container-script): Check for existence of the host nscd run directory in the container script. This check should be run when the container is started, not when the container script is created. [network-mappings]: Delete variable. [nscd-run-directory, nscd-mapping]: New variables. </content>
</entry>
<entry>
<title>linux-container: Compute essential services for THIS-OPERATING-SYSTEM.</title>
<updated>2019-05-15T14:36:21+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-05-10T20:07:55+00:00</published>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/commit/?id=3f9bed04f031a4d4f8d3b6dc0a4de42b0c628496"/>
<id>urn:sha1:3f9bed04f031a4d4f8d3b6dc0a4de42b0c628496</id>
<content type="text"> Previously, the 'essential-services' would correspond to the initial, non-containerized OS. Thus, all the file systems removed in 'container-essential-services' would actually still be there because the essential services would be computed on the non-containerized OS. This is a followup to 69cae3d3356a69b7fe69481338f760545995485e. * gnu/system/linux-container.scm (container-essential-services): Call 'operating-system-default-essential-services' to get the baseline services. (containerized-operating-system): Pass THIS-OPERATING-SYSTEM, not OS, to 'container-essential-services'. Add a dummy root file system to 'file-systems'. (container-script)[mountable-file-system?]: New procedure. Use it. </content>
</entry>
</feed>