Hi,
> existing tbz images that I use (with additions added later via zypper)
> are for Leap 15.3 and 15.6. I suspect that I could make a new 15.6
> one. But not a 15.3. I guess getting the existing trees into docker is
> a docker thing. Any pointers from the kiwi perspective would be
> welcome.
You can turn any existing tbz image into a docker container
with the following procedure:
1. Unpack your existing .tbz
mkdir -p /tmp/myimage/build/image-root
tar -C /tmp/myimage/build/image-root -xf ...
2. Create an image description suitable for building a docker
container.
mkdir -p /path/to/your/image/description
vi /path/to/your/image/description/appliance.kiwi
---
<image schemaversion="7.5" name="kiwi-test-image-docker">
<description type="system">
<author>You</author>
<contact>
y...@example.com</contact>
<specification>build an OCI container</specification>
</description>
<preferences>
<version>1.1.0</version>
<packagemanager>zypper</packagemanager>
<type image="docker">
<containerconfig name="some"/>
</type>
</preferences>
<!-- some repo is needed, but without packages nothing happens -->
<repository type="rpm-md">
<source path="obs://Virtualization:Appliances:Builder/openSUSE_Leap_15.4"/>
</repository>
<packages type="bootstrap"/>
</image>
---
3. Now create the container via
kiwi-ng system build \
--description /path/to/your/image/description \
--target-dir /tmp/myimage \
--allow-existing-root
With "--allow-existing-root" and no instructions to install anything,
kiwi just takes the root tree as it is present and creates the
requested image type. A container in your case
Hope this helps
Regards,
-------------------------------------------------------
Marcus Schäfer Brunnenweg 18
Tel:
+49 7562 905437 D-88260 Argenbühl
Germany
-------------------------------------------------------