Starterkits/builder: Difference between revisions

From ALT Linux Wiki
m (builder screenshot)
m (→‎Download: s/altlinux-p7/alt-p8/g)
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
|-
|-
|<gallery perrow="1">
|<gallery perrow="1">
Image:Altlinux-p7-builder-20141212-i586.jpg|make $this
Image:Altlinux-p7-builder-20150312-x86_64.jpg|make $this
</gallery>
</gallery>
|-
|-
Line 15: Line 15:
== Download ==
== Download ==


See 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 31: Line 31:
  git clone git://git.altlinux.org/gears/h/hello.git && cd hello && gear-hsh
  git clone git://git.altlinux.org/gears/h/hello.git && cd hello && gear-hsh


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


  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.