Debian Codegraph @

share/man/container-build-debconf.1.rst

raw
1 .. Open Infrastructure: compute-tools
2
3 .. Copyright (C) 2014-2026 Daniel Baumann <[email protected]>
4 ..
5 .. SPDX-License-Identifier: GPL-3.0+
6 ..
7 .. This program is free software: you can redistribute it and/or modify
8 .. it under the terms of the GNU General Public License as published by
9 .. the Free Software Foundation, either version 3 of the License, or
10 .. (at your option) any later version.
11 ..
12 .. This program is distributed in the hope that it will be useful,
13 .. but WITHOUT ANY WARRANTY; without even the implied warranty of
14 .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 .. GNU General Public License for more details.
16 ..
17 .. You should have received a copy of the GNU General Public License
18 .. along with this program. If not, see <https://www.gnu.org/licenses/>.
19
20 =======================
21 container-build-debconf
22 =======================
23
24 -----------------------------------------------------
25 Build an advanced Debian based container with debconf
26 -----------------------------------------------------
27
28 :manual section: 1
29 :manual group: Open Infrastructure
30
31 Synopsis
32 ========
33
34 | **container build -s debconf** ['OPTIONS']
35 | **cnt b -s debconf** ['OPTIONS']
36
37 | **container build -s debian** ['OPTIONS']
38 | **cnt b -s debian** ['OPTIONS']
39
40 | **container build -s progress-linux** ['OPTIONS']
41 | **cnt b -s progress-linux** ['OPTIONS']
42
43 Description
44 ===========
45
46 The debconf container build script uses debconf(1) to automatically build a
47 Debian based container.
48
49 Scope
50 -----
51
52 Note that this container build script can do a few things more than just
53 automatically debootstrap based on a preseed file. It also allows you to set a
54 root password, configure the network, install certain packages and execute
55 hooks.
56
57 But: this is *not* a replacement for a configuration management system (like
58 ansible, puppet, etc.). The intenion of this script is to build the initial
59 container to that extend that a configuration management system can take over.
60
61 As an analogy, think of debian-installer: d-i sets up your system to make it
62 ready to boot and connect to the network. Everything after that is out of scope.
63 Same goes for this script.
64
65 Functions
66 ---------
67
68 This script performs the following configuration on top of a Debian based
69 system:
70
71 * network
72 * root password
73 * apt repositories
74 * \.\.\.
75
76 Modes
77 -----
78
79 This container build script can be used under two different names: debian and
80 progress-linux.
81
82 Alternative, calling it under the debconf name is equal to the debian mode.
83
84 Preseeding
85 ----------
86
87 Hierarchy of Preseed Files:
88
89 * The debconf script can be fully preseeded. Such preseed files can include
90 one or more preseed files themselfs (currently, only one layer of includes
91 is supported, no nested or recursive includes).
92
93 * The general rule of 'the later preseed file overwrites the earlier' applies.
94 The debconf script reads the main preseed file (specified either on command
95 line or by debconf selection/input dialog) after any included preseed files
96 in there.
97
98 * That means that debconf values after the include statement in the main
99 preseed file can overwrite any values specified in the included preseed
100 files.
101
102 Options
103 =======
104
105 The following script options are available:
106
107 -n, --name='NAME':
108 Specify container name.
109
110 -p, --preseed-file='FILE':
111 Specify the preseed file.
112
113 Examples
114 ========
115
116 Build a Debian based container:
117
118 sudo container build -s debian -n debian.example.net
119
120 Build a Progress Linux container:
121
122 sudo container build -s progress-linux -n progress.example.net
123
124 Files
125 =====
126
127 The following files are used:
128
129 /etc/compute-tools/config:
130 Container configuration files.
131
132 /usr/share/compute-tools/build-scripts:
133 Container build scripts.
134
135 /usr/share/doc/compute-tools:
136 Container documentation.
137
138 /var/lib/machines:
139 Container directory.
140
141 /var/cache/container:
142 Container cache directory.
143
144 /tmp/compute-tools:
145 Container temporary directory.
146
147 See also
148 ========
149
150 | compute-tools(7),
151 | container(1).
152
153 Homepage
154 ========
155
156 More information about compute-tools and the Open Infrastructure project can be
157 found on the homepage (https://open-infrastructure.net).
158
159 Contact
160 =======
161
162 Bug reports, feature requests, help, patches, support and everything else are
163 welcome on the Open Infrastructure Software Mailing List
164 <[email protected]>.
165
166 Debian specific bugs can also be reported in the Debian Bug Tracking System
167 (https://bugs.debian.org).
168
169 Authors
170 =======
171
172 compute-tools were written by Daniel Baumann
173 <[email protected]> and others.