Commit Graph

13 Commits

Author SHA1 Message Date
Michal Hrušecký 764ac1a078
luci-app-lxc: Minor polishing
Add more dependencies needed by download template and replace all, not just
first occurence of : or _ in template name with space in webui.

Signed-off-by: Michal Hrušecký <Michal.Hrusecky@nic.cz>
2016-10-30 22:54:42 +01:00
champtar 25af3a6632 Merge pull request #2865 from miska/lxc-luci-features
Little improvement to LXC LuCI app
2016-06-17 15:42:23 +03:00
Michal Hrusecky b6d1ef53c3
luci-app-lxc: Bump version
Did quite some changes, so bumping version so users would get the change.

Signed-off-by: Michal Hrusecky <michal.hrusecky@nic.cz>
2016-06-17 09:22:41 +02:00
Michal Hrusecky 449a19ff5d
luci-app-lxc: Download list of available distributions
There was harcoded list of available images. Instead of it, LuCI LXC app will
now try to download list of available container images.

Signed-off-by: Michal Hrusecky <michal.hrusecky@nic.cz>
2016-06-16 16:18:59 +02:00
Michal Hrusecky 0084c9377e
luci-app-lxc: Use uname -m as architecture
As containers are basically virtual machines, it should not depend on the
build target but on the real hardware architecture. For example there is plenty
of ARM families (mvebu, sunxi, ...) but all armv7l arms should be able to run
armv7l containers.

Signed-off-by: Michal Hrusecky <michal.hrusecky@nic.cz>
2016-06-16 10:49:23 +02:00
Michal Hrusecky da074c9766
luci-app-lxc: Allow versioned images
I makes quite some sense to provide user the choice between various versions of
the distribution to install into LXC.

Signed-off-by: Michal Hrusecky <michal.hrusecky@nic.cz>
2016-06-16 10:44:23 +02:00
Michal Hrusecky 287edf574d
luci-app-lxc: Use correct path for configuration
Adjusting LuCI app for LXC to try to read path to your LXC containers from
configuration file and if not succeeding falling back to /srv/lxc to match
previous commit.

Signed-off-by: Michal Hrusecky <michal.hrusecky@nic.cz>
2016-06-09 09:42:15 +02:00
Petar Koretic d15b15b951 luci-app-lxc: use ubus binding for lxc-create
Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>
2014-11-18 13:46:30 +01:00
Luka Perkov e044d612a0 lxc: minor dependencies tweak
Signed-off-by: Luka Perkov <luka@openwrt.org>
2014-11-13 14:59:44 +01:00
Luka Perkov e430a93605 luci-app-lxc: add spdx license info
Signed-off-by: Luka Perkov <luka@openwrt.org>
2014-11-11 11:54:38 +01:00
Luka Perkov 2da2a9e900 luci-app-lxc: update dependencies
Signed-off-by: Luka Perkov <luka@openwrt.org>
2014-11-11 11:49:48 +01:00
Petar Koretic 8467d0ea3f luci-app-lxc: code cleanup
Number of suggested rewrites:
* use lua ubus bindings instead of os.execute
* combine multiple actions to use same handler 'lxc_action' and pass
actions as arguments to consolidate code
* read openwrt version from lua directly
* start using String.prototype.format for string formatting

Also, drop 'rename' and 'clone' until they are fully functional on all
platforms.

Thanks Jo-Philipp for suggestions on how to improve the code.

Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>
2014-10-30 20:50:39 -04:00
Petar Koretic e81ae1e7eb luci-app-lxc: add package for luci lxc app
Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>
2014-10-30 06:26:02 -04:00