History log of /lxc/templates/lxc-alpine.in
Revision Date Author Comments Expand
bc86797e63f5aee394357ca662a6c377cfbaf283 10-Apr-2017 Vincent Catros <vincent.catros@laposte.net>

avoid assigning to a variable which is not POSIX shell proof (bug #1498) Signed-off-by: Vincent Catros <vincent.catros@laposte.net>

3088ce244682123bcd3610a915e52f40402b9d20 20-Mar-2017 Jakub Jirutka <jakub@jirutka.cz>

lxc-alpine: use dl-cdn.a.o as default mirror instead of random one Some mirrors from the mirrors list are not very reliable and it seems that no one really wants to use some random mirror as the default option. Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>

d8953e37edd4128fb0edc3165f98b61e78d245f4 26-Oct-2016 roedie <github@roedie.nl>

alpine: Fix installing extra packages Signed-off-by: Sander Klein <github@roedie.nl>

4674d20e336ae6d465cee7b605d68f3eb37db925 14-Sep-2016 Alex Athanasopoulos <alex@melato.org>

templates: use correct cron version in alpine template Signed-off-by: Alex Athanasopoulos <alex@melato.org>

ff48886e1d46d86ee8b16ef38672bd4368474706 11-Aug-2016 Carlo Landmeter <clandmeter@gmail.com>

templates: add support for new arch on Alpine Linux Signed-off-by: Carlo Landmeter <clandmeter@gmail.com>

08a204373170880ac46bc3bb578f399bfacb174a 12-May-2016 Andrey Kostin <andrey@kostin.email>

Fix hostname in interface config for apline template Signed-off-by: Andrey Kostin <andrey@kostin.email>

3fb82bafe07df61c6ba8f232568189ec39a5c030 11-May-2016 Lisio <andrey@kostin.email>

Force DHCP client to send hostname Required for proper applying dnsmasq config entries. Signed-off-by: Andrey Kostin <andrey@kostin.email>

1125e053fb0dbaad73437ed02e435f36e766fc2b 26-Feb-2016 Jakub Jirutka <jakub@jirutka.cz>

lxc-alpine: allow to install additional packages Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>

20f39db782ec0d2197cf3a81e6038fb908159ef6 26-Feb-2016 Jakub Jirutka <jakub@jirutka.cz>

lxc-alpine: cache APK packages instead of rootfs Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>

5845ac2bb83c2d509cbcb9a869d94b793f18cccc 26-Feb-2016 Jakub Jirutka <jakub@jirutka.cz>

lxc-alpine: remove all bashisms, make it compatible with dash Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>

04fa4e125397e022d99cd8448b221caef3c92452 26-Feb-2016 Jakub Jirutka <jakub@jirutka.cz>

lxc-alpine: make it compatible with ash, replace curl and rsync Now it runs even on minimal Alpine system without bash, curl, openssl or rsync. Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>

6515faa115664909351ac241763bcb374ff62608 26-Feb-2016 Jakub Jirutka <jakub@jirutka.cz>

lxc-alpine: completely rewrite the template script New template script is more readable and robust, uses cache and external LXC config file as other templates. Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>

5afb809607919f245e635a3883d7d7febb0caffa 28-Sep-2015 Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>

lxc-alpine: use getopt to parse options Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

0b8cdc10346baebe63b5ed87d11182720a1f67bb 28-Sep-2015 Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>

lxc-alpine: avoid GNU BRE extensions for better portability Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

e00f9e4e7ab5a76cfd4068e09579f9f471666a90 04-Aug-2015 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: fix verification of apk.static binary We need specify which hashing algorithm was used to create the signature we check. Fixes #609 Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

83828d6770ff2a186a2f17cba8e8a15a4dfb8ca8 24-Apr-2015 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: create /dev/shm before mounting This is needed for lxc.autodev=1 to work. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

f24a52d5f588ff4e4575046903fb9498c376d833 29-Jan-2015 Stéphane Graber <stgraber@ubuntu.com>

Use consistent /proc, /sys and /sys/fs/cgroup (v2) - Implements mixed mode for /sys where it's mounted read-only but with /sys/devices/virtual/net/ writable. - Sets lxc.mount.auto to "cgroup:mixed proc:mixed sys:mixed" for all templates. - Drop any template-specific mount for /proc, /sys or /sys/fs/cgroup. - Get rid of the fstab file by default, using lxc.mount.entry instead. - Set sys:mixed as the default for "sys". sys:mixed is slightly more permissive than sys:ro so this shouldn't be a problem. The read-only bind mount of /sys on top of itself is there so that mountall and other init systems don't attempt to remount /sys read-write. v2 changes: - Fix the mount list, don't specify a source for the remount. - Update the documentation. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

abf117c398c957b213feebe3fa6dea3107c3a452 05-Jan-2015 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: use yaml for detection of latest release Alpine Linux provides yaml files with latest release instead of the old approach with .latest.txt. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

646b1ef753d24d458ee5c2420cf4af16e4971f74 27-Nov-2014 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: create a default tty for console Create a tty so we get login prompt on console by default Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

b55a6622420eeaea0e563ba8f0721dfcc76361f8 27-Nov-2014 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: make sure /dev/shm is world writeable Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

91828b0e1f7b2c88dab7708694e3d93ac6e6cf80 30-Apr-2014 Carlo Landmeter <clandmeter@gmail.com>

alpinelinux: set correct lxc_arch for x86 Signed-off-by: Carlo Landmeter <clandmeter@gmail.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

0e18cacab53447931c82475920ca6a18a8fe29e2 20-Feb-2014 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: add support for architecture arm Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

6460d3c5f006d6cdae72e5c01e3a844986d20ff7 19-Feb-2014 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: add checksums for musl libc build server pubkeys We have added 3 new build servers for Alpine Linux musl libc x86, x86_64 and arm. Add the sha256sum for those keys. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

d2b2911c5530a5fec6e337a52ac906e14beea5f4 19-Feb-2014 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: fixes for checkbashism Fix the issues reported by checkbashisms and change back to #!/bin/sh Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

207bf0e475f1dc6e9a2dac2cee3a209b56427855 06-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

templates: Make sure usual locations are in PATH Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

c63c04fcaf1c3a78c70500eae253d72fa9c8358a 06-Feb-2014 TAMUKI Shoichi <tamuki@linet.gr.jp>

templates: improve refusing to run unprivileged For all templates except lxc-ubuntu-cloud and lxc-download, detect not only --mapped-uid but also --mapped-gid and error out. Detecting will not be done after -- parameter because of non-option parameters. Also, change the mode of lxc-archlinux.in 100755 to 100644. Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

8ec981fc8b0105da5f071e40811e0c2472a6c3c9 04-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

templates: Refuse to run unprivileged Only the download and ubuntu-cloud templates work with unprivileged containers, for all others, detect --mapped-uid and error out as early as possible, recommending the use of the download template. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>

1d1774b1ac705364c8eb7959a554935d8c134230 31-Jan-2014 Bogdan Purcareata <bogdan.purcareata@freescale.com>

use susv3 head arguments Without enabling INCLUDE_SUSv2 in busybox, we need to use head's -n argument, rather than -#. Signed-off-by: Christopher Larson <kergoth@gmail.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

6ff9f8ec1c997d52fac089f9db929f1fea534faa 29-Jan-2014 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: disable sys_admin by default It is normally not needed. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

1bdedfacc260545b77e2da557850ba420a0fb12c 29-Jan-2014 Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>

lxc-alpine: mount tmpfs on /dev/shm Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

691ac4a3397a652dc163e4014720f3c6f4836052 26-Jan-2014 Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>

lxc-alpine: copy /etc/TZ to container if present Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

17abf2784de1047fb2904ff130ee5efe4ea7b598 14-Jan-2014 Elan Ruusamäe <glen@delfi.ee>

handle simple bashisms: - [[ ]] -> [ ] - == -> = - source -> . - redirect of fd 200 is error in mksh, use fd 9 - &> /dev/null -> > /dev/null 2>&1 - useless function keyword - echo -e -> printf still left bash shebang which did not validate with checkbashism, mostly due 'type' being reported as bashism Signed-Off-By: Elan Ruusamäe <glen@delfi.ee> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

c01c25fcdd1e0cacad8075bcfcef4c8e8d4b8cb6 25-Nov-2013 Stéphane Graber <stgraber@ubuntu.com>

Tab/spaces consistency for templates Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

44f820e30b6fab2094dff1269a137983208b3b6d 25-Oct-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: enable 4 consoles by default We allow 4 consoles in the LXC config file so we can enable 4 in the inittab as well. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

2899ab0b1a607e7824214590ebe93f76fa7f7c20 25-Oct-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: run bootmisc and syslog at boot runlevel The bootmisc script is needed to clean up various temp dirs like /tmp and migrate /var/run to /run if needed. The syslog service is started in 'boot' runlevel when running on real hardware so we do the same for containers. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

6bd3f98c469f311f6afbffbb3586efddae3c4eb4 22-Oct-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: allow /dev/full The template creates /dev/full for the container but needs also give permission to access it. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

3d460a3856376a043b3fa9addee50f89d21fa747 18-Oct-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: enable loopback interface by default It was probably disabled by a mistake Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

75b5535282453b3442a41df4a3ba6d3058cd6e48 04-Sep-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: add hwaddr for a single macvlan interface We already add harware address for a single veth interface. Do the same with a single macvlan interface. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

48c63f8d035045af1103b677b5ec577aec59a5b5 26-Aug-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: create /dev/zero Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

5be56973e5e874a142263dfb164b0b03e18a65f3 22-Jul-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

templates: require running as root Up to now lxc-create ensured that you were running as root. Now the templates which require root need to do it for themselves. Templates which do mknod definately require root. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

2e599a6a25b533fe63840edc34ee265811b7b814 28-Jun-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: make --release work when apk exists Use sed to set the specified alpine release in the copied /etc/apk/repositories Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

982e7b6ea40ea57923f4f094858424debc1a5f7f 27-Jun-2013 Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>

lxc-alpine: option for specifying the release to be installed Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

85b41c7d7f72213199b5cff9525d17f44b49a842 27-Jun-2013 Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>

lxc-alpine: automatic repository selection pick random server from mirror list use the latest stable release Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

569bee5cc3d647032573db8f72734faa9307d577 03-Jun-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: download a static package manager if its missing If the package manager, apk-tools is missing, then: - download a static binary and public keys - verify the keys against embedded checksum - verify the signature of the static binary against the downloaded keys - use the verified static binary Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

1897e3bcd36af9f3fe6d3649910a9adb93e5e988 26-May-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

Move container creation fully into the api 1. implement bdev->create: python and lua: send NULL for bdevtype and bdevspecs. They'll want to be updated to pass those in in a way that makes sense, but I can't think about that right now. 2. templates: pass --rootfs If the container is backed by a device which must be mounted (i.e. lvm) then pass the actual rootfs mount destination to the templates. Note that the lxc.rootfs can be a mounted block device. The template should actually be installing the rootfs under the path where the lxc.rootfs is *mounted*. Still, some people like to run templates by hand and assume purely directory backed containers, so continue to support that use case (i.e. if no --rootfs is listed). Make sure the templates don't re-write lxc.rootfs if it is already in the config. (Most were already checking for that) 3. Replace lxc-create script with lxc_create.c program. Changelog: May 24: when creating a container, create $lxcpath/$name/partial, and flock it. When done, close that file and unlink it. In lxc_container_new() and lxcapi_start(), check for this file. If it is locked, create is ongoing. If it exists but is not locked, create() was killed - remove the container. May 24: dont disk-lock during lxcapi_create. The partial lock is sufficient. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

eee3ba81c88e64b8a732694fc4843a39d5bde491 01-May-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

templates: deny writes to host's clock (v2) Don't allow write to /dev/rtc0, and remove sys_time. Thanks, Christoph. v2: drop sys_time, sys_module, mac_admin and mac_override in all templates. Reported-by: Christoph Mitasch <cmitasch@thomas-krenn.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

d42277f769d1bed8a4a198a49dbe96582a4fa2ec 18-Feb-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: autodetect standard bridges and set hwaddress Check for lxcbr0, virbr0 and br0 and use one of those if they exist. Set mac address if network type is veth. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

670c6ab8caac48ce5cf043796dd8908114b7f607 02-Jan-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: add support for installing optional packages Let users append a list of packages they want install in the container Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

2b49de9a3ff182c208148d780f6b26cf8cdd09d8 02-Jan-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: add support for setting arch from command line This allows us to lxc-create 32 bit guests on x86_64 hosts. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

e5846a6f89db72bdbf3d651e5faf232045d17af8 02-Jan-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: add --repository option This allows specifying what repository to use for the container. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

b1aa0624bae5a81d6f6bbc2653a388d148cffef8 02-Jan-2013 Natanael Copa <ncopa@alpinelinux.org>

lxc-alpine: indent fixes Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

2a9a0a08077d88ee1d70ca46ca122216f3d1c89a 25-Dec-2012 Natanael Copa <ncopa@alpinelinux.org>

templates: initial support for Alpine Linux Requires apk-tools (http://git.alpinelinux.org/cgit/apk-tools) Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>