[lxc-devel] Last minute template addition - universal image based

TAMUKI Shoichi tamuki at linet.gr.jp
Fri Jan 24 00:12:41 UTC 2014


Hello,

Due to the recent changes in lxc-plamo.in related to environment
variables, lxc-plamo is now able to create variant containers with
additional environment variables other than the default configuration.

For example:

# Add "09_kernel" category to the default configuration
CATEGORIES="00_base 01_minimum 09_kernel"
/usr/local/share/lxc/templates/lxc-plamo \
    --path /build-lxc/containers/LXC_NAME \
    --rootfs /build-lxc/containers/LXC_NAME/rootfs \
    --name LXC_NAME -r 5.x -a x86_64

# Add "fuga-1.0.0-x86_64.P1.txz" package in "contrib/hoge" category
ADDONPKGS="contrib/hoge/fuga"
/usr/local/share/lxc/templates/lxc-plamo \
    --path /build-lxc/containers/LXC_NAME \
    --rootfs /build-lxc/containers/LXC_NAME/rootfs \
    --name LXC_NAME -r 5.x -a x86_64

So, we would like to turn on the job to your Jenkins server, according
to the configuration matrix below:

##### Jenkins: lxc-template-plamo #####

[The Configuration Matrix]

+--------------+---------+---------+---------+
| ARCH/VARIANT | default |  mini   |  full   |
+--------------+---------+---------+---------+
|     x86      |    *    |    *    |    *    |
+--------------+---------+---------+---------+
|    x86_64    |    *    |    *    |    *    |
+--------------+---------+---------+---------+

When creating rootfs images corresponding to each variant, the sets of
environment variables to be given are shown below:

[x86,5.x,default]    (same as the existing configuration)
[x86_64,5.x,default] (same as the existing configuration)
----------------------------------------------------------------------
(unset CATEGORIES) # using default value in lxc-plamo
(unset EXTRACTGRS) # using default value in lxc-plamo
(unset IGNOREPKGS) # using default value in lxc-plamo
(unset ADDONPKGS)  # using default value in lxc-plamo
----------------------------------------------------------------------

[x86,5.x,mini]    (similar to P-Plamo-5.2/mini)
[x86_64,5.x,mini] (similar to P-Plamo-5.2/mini64)
----------------------------------------------------------------------
CATEGORIES="00_base 01_minimum 02_x11 03_xclassics"
(unset EXTRACTGRS) # using default value in lxc-plamo
IGNOREPKGS=""
ADDONPKGS="`echo plamo/04_xapps/{dbus,print.txz/openslp}`
    `echo plamo/05_ext/AV.txz/{libao,flac,jack_audio_connection_kit}`
    `echo plamo/05_ext/{AV.txz/{libvorbis,libogg,speex},ftgl}`"
----------------------------------------------------------------------

[x86,5.x,full]    (similar to P-Plamo-5.2/x86)
[x86_64,5.x,full] (similar to P-Plamo-5.2/x86_64)
----------------------------------------------------------------------
CATEGORIES="00_base 01_minimum 02_x11 03_xclassics 04_xapps 05_ext
    06_xfce 07_kde 08_tex 09_kernel 10_lof 11_mate"
EXTRACTGRS="AVtool Education Hamradio Haskell MUA Virtualization"
IGNOREPKGS=""
ADDONPKGS=""
----------------------------------------------------------------------

Thanks in advance.

Regards,
TAMUKI Shoichi


More information about the lxc-devel mailing list