
The original image-builder approach had an entirely containerized approach for building target images. This approach was flawed because: 1. There are a number of debian packages which will not install without /sys, /proc, /dev, or /dev/pts mountpoints, and 2. Container build process does not support building with privileges needed to bind-mount these directories into the chroot build space 3. It is a requirement for all packages to be installed in the container image in order to avoid deployment risk of missing mirror resources This patchset addresses this problem by performing necessary privileged steps outside of a containerized build process. At the end of this process, the root filesystem is packaged into a docker container when elevated permissions are no longer required. Change-Id: I5f8dc972f67c5649bf5f9403a5a512d06c948720
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
- name: "Including any user-defined vars"
|
|
include_vars:
|
|
file: main.yaml
|
|
name: user-vars
|
|
|
|
- block:
|
|
- name: "write user-provided files"
|
|
include_tasks: write-user-files.yaml
|
|
- name: "configure cloud-init"
|
|
include_tasks: cloud-init.yaml
|
|
- name: "configure modules"
|
|
include_tasks: modules.yaml
|
|
- name: "configure limits"
|
|
include_tasks: limits.yaml
|
|
- name: "configure sysctl"
|
|
include_tasks: sysctl.yaml
|
|
- name: "configure grub"
|
|
include_tasks: grub.yaml
|
|
- name: "configure kubernetes"
|
|
include_tasks: kubernetes.yaml
|
|
- name: "configure locale"
|
|
include_tasks: locale.yaml
|
|
- name: "configure hostname and hosts"
|
|
include_tasks: hostname-hosts.yaml
|
|
- name: "configure banners"
|
|
include_tasks: banners.yaml
|
|
- name: "unattended upgrades"
|
|
include_tasks: unattended-upgrades.yaml
|
|
- name: "configure base systemd"
|
|
include_tasks: systemd.yaml
|
|
- name: "configure user-defined systemd"
|
|
include_tasks: systemd-user.yaml
|
|
- name: "configure file permissions"
|
|
include_tasks: file-permissions.yaml
|
|
- name: "finalise rootfs"
|
|
include_tasks: finalise-rootfs.yaml
|
|
tags: runtime_and_buildtime
|
|
- block:
|
|
- name: "run user-defined scripts"
|
|
include_tasks: buildtime-user-scripts.yaml
|
|
tags: buildtime_only
|
|
- block:
|
|
- name: "run system-defined scripts"
|
|
include_tasks: runtime-system-scripts.yaml
|
|
- name: "run user-defined scripts"
|
|
include_tasks: runtime-user-scripts.yaml
|
|
tags: runtime_only
|