[lxc-devel] [distrobuilder/master] Update README.md
monstermunchkin on Github
lxc-bot at linuxcontainers.org
Thu Mar 8 14:58:37 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 363 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180308/5b25774d/attachment.bin>
-------------- next part --------------
From 4244c14dc0d9cd066f24d6bb388368a35a839df5 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Thu, 8 Mar 2018 15:09:09 +0100
Subject: [PATCH] Update README.md
Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
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
```
More information about the lxc-devel
mailing list