Starterkits/builder: Difference between revisions

From ALT Linux Wiki
(init)
 
m (→‎Download: s/altlinux-p7/alt-p8/g)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="border:1px solid #AAA; background:#F9F9F9; margin: 0 0 1em 1em; padding:.2em; text-align:center; float: right;" class=noprint
{| style="border:1px solid #AAA; background:#F9F9F9; margin: 0 0 1em 1em; padding:.2em; text-align:center; float: right;" class=noprint
| __TOC__
| __TOC__
|-
| '''Screenshots'''
|-
|<gallery perrow="1">
Image:Altlinux-p7-builder-20150312-x86_64.jpg|make $this
</gallery>
|-
|-
|}
|}
Line 6: Line 12:


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).
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: [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 21: 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.