[lxc-devel] [distrobuilder/master] Update README.md
The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/112 This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Thomas Hipp From 37cdd732670ee20201825edfe06a1cda65fcd8b3 Mon Sep 17 00:00:00 2001 From: Thomas Hipp Date: Thu, 4 Oct 2018 12:27:42 +0200 Subject: [PATCH] Update README.md Signed-off-by: Thomas Hipp --- README.md | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e8fecb1..573f580 100644 --- a/README.md +++ b/README.md @@ -43,15 +43,14 @@ In the following, we see how to create a container image for LXD. ### Installation Currently, there are no binary packages of `distrobuilder`. Therefore, you will need to compile it from source. -To do so, first install the Go programming language and the `debootstrap` package. +To do so, first install the Go programming language, and some other dependencies. ``` sudo apt update -sudo apt install -y golang-go -sudo apt install -y debootstrap +sudo apt install -y golang-go debootstrap rsync gpg squashfs-tools ``` -Second, download the source code of the `distrowatch` repository (this repository). The source will be placed in `$HOME/go/src/github.com/lxc/distrobuilder/` +Second, download the source code of the `distrobuilder` repository (this repository). The source will be placed in `$HOME/go/src/github.com/lxc/distrobuilder/` ``` go get -d -v github.com/lxc/distrobuilder ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
[lxc-devel] [distrobuilder/master] Update README.md
The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/73 This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === From 938e058855789957cdc88ab4bf40d76bd0a8c08d Mon Sep 17 00:00:00 2001 From: Thomas Hipp Date: Fri, 16 Mar 2018 14:27:36 +0100 Subject: [PATCH] Update README.md --- README.md | 5 + 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 6d6a3e4..4c27d9b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # distrobuilder System container image builder for LXC and LXD +## Status +Type| Service | Status +--- | --- | --- +CI | Jenkins | [![Build Status](https://travis-ci.org/lxc/distrobuilder.svg?branch=master)](https://travis-ci.org/lxc/distrobuilder) +Project status | CII Best Practices| [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1728/badge)](https://bestpractices.coreinfrastructure.org/projects/1728) ## Example yaml file Save the following yaml as a file (for example `ubuntu.yaml`). To create ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
[lxc-devel] [distrobuilder/master] Update README.md
The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/49 This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Thomas Hipp From 4244c14dc0d9cd066f24d6bb388368a35a839df5 Mon Sep 17 00:00:00 2001 From: Thomas Hipp Date: Thu, 8 Mar 2018 15:09:09 +0100 Subject: [PATCH] Update README.md Signed-off-by: Thomas Hipp --- README.md | 118 +++--- 1 file changed, 66 insertions(+), 52 deletions(-) diff --git a/README.md b/README.md index bc3b369..7b75d22 100644 --- a/README.md +++ b/README.md @@ -21,70 +21,84 @@ source: targets: lxc: -create-message: | -You just created an Ubuntu container (release=artful, arch=amd64, variant=default) +create-message: |- + You just created an Ubuntu container (release=artful, arch=amd64, variant=default) -To enable sshd, run: apt-get install openssh-server + To enable sshd, run: apt-get install openssh-server -For security reason, container images ship without user accounts -and without a root password. + 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 + Use lxc-attach or chroot directly into the rootfs to set a root password + or create user accounts. +config: + - type: all +before: 5 +content: |- + lxc.include = LXC_TEMPLATE_CONFIG/ubuntu.common.conf + + - type: user +before: 5 +content: |- + lxc.include = LXC_TEMPLATE_CONFIG/ubuntu.userns.conf + + - type: all +after: 4 +content: |- + lxc.include = LXC_TEMPLATE_CONFIG/common.conf + + - type: user +after: 4 +content: |- + lxc.include = LXC_TEMPLATE_CONFIG/userns.conf + + - type: all +content: |- + 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 + # 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 + manager: apt -update: false -install: -- systemd -- nginx -- vim -remove: -- vim + update: false + install: +- systemd +- nginx +- vim + remove: +- vim actions: -post-unpack: |- + - trigger: post-update +action: |- #!/bin/sh - echo "This is run after unpacking the downloaded content" + rm -rf /run/* -post-update: |- - #!/bin/sh - echo "This is run after updating all packages" - -post-packages: |- - #!/bin/sh - echo "This is run after installing/removing packages" - -post-files: |- - #!/bin/sh - echo "This is run after running the file templates" + - trigger: post-unpack + action: |- + #!/bin/sh + sed -i "s/foo/bar/g" /etc/hosts + releases: + - precise + - trusty mappings: -architecture_map: debian + architecture_map: debian ``` ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
[lxc-devel] [distrobuilder/master] Update README.md
The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/36 This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Thomas Hipp From c1d1d8fd5d54f1eccd23fefa22c3f92e5fbd0a1f Mon Sep 17 00:00:00 2001 From: Thomas Hipp Date: Wed, 7 Mar 2018 13:40:48 +0100 Subject: [PATCH] Update README.md Signed-off-by: Thomas Hipp --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 6529dfc..bc3b369 100644 --- a/README.md +++ b/README.md @@ -84,4 +84,7 @@ actions: post-files: |- #!/bin/sh echo "This is run after running the file templates" + +mappings: +architecture_map: debian ``` ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel