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

Stéphane Graber stgraber at ubuntu.com
Fri Jan 24 18:14:21 UTC 2014


On Fri, Jan 24, 2014 at 09:12:41AM +0900, TAMUKI Shoichi wrote:
> 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

The images are now building with the configuration above.

I had to go with the expanded list of packages though as those expansion
patterns are bashisms and the shell used by Jenkins is dash.

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140124/da92ddb2/attachment.pgp>


More information about the lxc-devel mailing list