Go to file
Stéphane Graber 2c49f149f2
README: Fix files section in yaml
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-08 12:12:59 -05:00
distrobuilder initial commit 2018-02-06 15:24:32 +01:00
managers initial commit 2018-02-06 15:24:32 +01:00
shared initial commit 2018-02-06 15:24:32 +01:00
sources initial commit 2018-02-06 15:24:32 +01:00
AUTHORS initial commit 2018-02-06 15:24:32 +01:00
COPYING initial commit 2018-02-06 15:24:32 +01:00
Makefile initial commit 2018-02-06 15:24:32 +01:00
README.md README: Fix files section in yaml 2018-02-08 12:12:59 -05:00

distrobuilder

Custom image generator

Example yaml file

image:
  distribution: ubuntu # required
  release: artful # required
  variant: default # optional
  description: Ubuntu Artful # optional
  expiry: 30d # optional: defaults to 30d
  arch: x86_64 # optional: defaults to local architecture

source:
  downloader: ubuntu-http
  url: http://cdimage.ubuntu.com/ubuntu-base

targets:
  lxc:
    create-message: |
        You just created an Ubuntu container (release=artful, arch=amd64, variant=default)

        To enable sshd, run: apt-get install openssh-server

        For security reason, container images ship without user accounts
        and without a root password.

        Use lxc-attach or chroot directly into the rootfs to set a root password
        or create user accounts.        
    config: |
        lxc.include = LXC_TEMPLATE_CONFIG/ubuntu.common.conf
        lxc.arch = x86_64        
    config-user: |
        lxc.include = LXC_TEMPLATE_CONFIG/ubuntu.common.conf
        lxc.include = LXC_TEMPLATE_CONFIG/ubuntu.userns.conf
        lxc.arch = x86_64        

files:
 # lxc: Puts the LXC_NAME placeholder in place
 # lxd: Adds a template to generate the file on create and copy
 - path: /etc/hostname
   generator: hostname

 # lxc: Puts the LXC_NAME placeholder in place
 # lxd: Adds a template to generate the file on create
 - path: /etc/hosts
   generator: hosts

 # all: Add the upstart job to deal with ttys
 - path: /etc/init/lxc-tty.conf
   generator: upstart-tty
   releases:
    - precise
    - trusty

packages:
    manager: apt

    update: false
    install:
        - systemd
        - nginx
        - vim
    remove:
        - vim