ypcs / baseimage

Scripts for building base OS images for multiple uses (bare metal, docker, vagrant, ...)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Base images for containers etc.

This repository contains various scripts for generating somewhat standardized Debian/Ubuntu base images for containers and other usages.

Docker images built using these scripts are available at Docker Hub: ypcs/debian and ypcs/ubuntu.

Debian images

This assumes that your build host is Debian, and you've installed docker.io package.

Build images

This creates Docker images and also exports them as .tar archives

sudo make <wheezy|jessie|stretch|sid>

Images are also imported into Docker, by default with namespace ypcs/{debian,ubuntu}:{codename}

Docker

You may import images using

docker import - <image> < <rootfs tar>

eg.

docker import - ypcs/debian:sid < debian-sid.tar

LXC

To import images into LXC, execute

lxc image import <metadata .tar.gz> <rootfs tar> --alias <name of the image>

eg.

lxc image import debian-sid_metadata.tar.gz debian-sid.tar --alias debian-sid

Misc

Install VM from webserver

Use

http://192.168.122.1:3142/deb.debian.org/debian/dists/stable/main/installer-amd64/

as installer URL and set kernel parameters

auto debian-installer/locale=en_US.UTF-8 keyboard-configuration/xkb-keymap=us netcfg/choose_interface=auto netcfg/get_hostname=localhost netcfg/get_domain=localdomain url=ypcs.fi

to execute fully automated installation without any prompts. These assume you have local apt-cacher-ng instance running at IP 192.168.122.1, which is default network bridge for QEMU/KVM on my env.

About

Scripts for building base OS images for multiple uses (bare metal, docker, vagrant, ...)

License:GNU General Public License v3.0


Languages

Language:Shell 76.0%Language:Makefile 21.4%Language:Dockerfile 2.6%