Starterkits/builder: Difference between revisions

From ALT Linux Wiki
m (→‎Examples: help/distro clarified (thx Ivanov Oleg))
m (→‎Download: s/altlinux-p7/alt-p8/g)
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
== Download ==
== Download ==


ISO: [http://nightly.altlinux.org/p7/permalink/altlinux-p7-builder-latest-i586.iso i586], [http://nightly.altlinux.org/p7/permalink/altlinux-p7-builder-latest-x86_64.iso x86_64]; see also the [[Starterkits#builder|Starterkits page]].
ISO: [http://nightly.altlinux.org/p8/permalink/alt-p8-builder-latest-i586.iso i586], [http://nightly.altlinux.org/p8/permalink/alt-p8-builder-latest-x86_64.iso x86_64]; see also the [[Starterkits#builder|Starterkits page]].


== Contents ==
== Contents ==
Line 34: Line 34:


  make -C /usr/share/mkimage-profiles syslinux.iso
  make -C /usr/share/mkimage-profiles syslinux.iso
See also the preset shell history.


One can copy the results by means of {{cmd|scp}}/{{cmd|rsync}} or having mounted a local/network file system as these will become unavailable after reboot since it's tmpfs!
One can copy the results by means of {{cmd|scp}}/{{cmd|rsync}} or having mounted a local/network file system as these will become unavailable after reboot since it's tmpfs!

Latest revision as of 13:53, 4 November 2016

Screenshots

Intro

A part of ALT Linux Starterkits project aiming to help getting started with ALT Linux build tools without having to install the system and configure user environment (or to allow use of temporarily available hardware for builds).

Download

ISO: i586, x86_64; see also the Starterkits page.

Contents

This is a LiveCD which doesn't touch local drives while booting and contains these components:

  • hasher has been created to reproducibly build packages in isolated environment;
  • gear is a tool to store sources in a git repository and extract the version to be built;
  • mkimage is a set of utilities made to build images (mostly ISO ones);
  • mkimage-profiles are a metaprofile with quite a few image building blocks and configurations (documented in Russian).

Examples

This command clones the repo from git.alt caching archive and tries to build a package (note that this happens in a chroot so build results are to be found within ~/hasher/repo):

git clone git://git.altlinux.org/gears/h/hello.git && cd hello && gear-hsh

And this one tries to build a tiny test image (replace syslinux.iso make target with help/distro to see complete list):

make -C /usr/share/mkimage-profiles syslinux.iso

See also the preset shell history.

One can copy the results by means of scp/rsync or having mounted a local/network file system as these will become unavailable after reboot since it's tmpfs!

Prerequisites

These hybrid image should boot off a flash drive or CD on any x86 host or virtual machine with BIOS or UEFI; it's reasonable to provide at least a gigabyte of RAM (4+ is better) as part of it will be used for tmpfs mounted in /tmp.

Run swapon /dev/sdxN and service livecd-tmpfs restart if local swap is desired; this will add the pre-existing swap partition and reconfigure /tmp size appropriately.

An Ethernet interface with DHCP and access to http://ftp.altlinux.org is desirable.

Feedback

You're welcome to subscribe to our mailing list to discuss anything related to these images.