summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-lxc/luasrc
AgeCommit message (Collapse)Author
2024-11-22treewide: HTML CleanupMustafa Can Elmacı
* HTML Cleanup: Meta tags. * Converted charset to shorthand. * Removed meta tags with `Content-Script-Type` attribute. (Invalid in HTML5 spec.) * HTML Cleanup: CSS tags. * Removed `type` attribute with CSS files from link tags. (HTML5 spec recommends omitting it.) * Removed `type` attribute from style tags. (Deprecated in HTML5 spec.) https://html.spec.whatwg.org/#attr-link-type https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style * HTML Cleanup: Convert from XHTML to HTML5 * Removed XML declaration. * Removed XML namespace. * Changed doctype to HTML5. * HTML Cleanup: CDATA tags. * CDATA sections should not be used within HTML they are considered as comments and not displayed. https://developer.mozilla.org/en-US/docs/Web/API/CDATASection * HTML Cleanup: Script tags. * Removed `language` attribute from script tags. (No longer valid in HTML5) * Removed `type` attribute with JavaScript MIME type from script tags. (HTML5 spec recommends omitting it.) https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type https://mimesniff.spec.whatwg.org/#javascript-mime-type Signed-off-by: Mustafa Can Elmacı <mustafacan@elmaci.net>
2024-05-02luci-app-lxc: remove bypassing GPG validationDaniel Nilsson
Since https://github.com/lxc/lxc/commit/58520263041b6864cadad96278848f9b8ce78ee9 which is part of LXC 5.0, not being able to bypass GPG validation anymore has been enforced by upstream in lxc-download. When LXC was bumped to 5.0.1 in https://github.com/openwrt/packages/commit/d957a2293b2a21b1edca1aa92e141bad8292251a this broke passing the --no-validate option to lxc-download, which resulted in getting the output of the --help command line option as the RPC output of lxc-download as it doesn't understand the --no-validate option. This in turn broke the string parsing for compatible distributions and their versions. To solve this, this commit removes the --no-validate option entirely as it has been removed by upstream. Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
2020-04-19applications: add ACL dependency annotations to legacy controllersJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-15luci-app-lxc: remove obsolete note about enabling kernel featuresDaniel Golle
Since commit openwrt/openwrt@fcb41decf6 ("config: enable some useful features on !SMALL_FLASH devices") LXC related features are enabled by default. Hence remove note stating that a custom image is required for LXC. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-01-29luci-app-lxc: add aarch64 to target mapJosef Schlehofer
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2018-11-19luci-app-lxc: add i686 to target mapJames Buren
Add i686 to target map so i386 container templates are usable. Signed-off-by: James Buren <ryuo@ryuo.xyz>
2018-07-09treewide: always include cbi.jsJo-Philipp Wich
Include cbi.js in the main header template like it is done for xhr.js and remove the page specific includes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-01luci-app-lxc: add backingstore supportDirk Brenken
* second try to enable backingstore support, untested (see #1919) Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-06-30luci-app-lxc: small fixes & cosmeticsDirk Brenken
* backingstore support via ubus does not work, remove it for now * fix target mapping for linuximages.org * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-06-03luci-app-lxc: made container creation more reliableDirk Brenken
* wait/lock "create" button until the real end of container creation, this includes download time plus tar/gz processing time * cosmetics Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-06-01luci-app-lxc: bugfixDirk Brenken
* fix remaining javascript errors in Chrome Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-05-31luci-app-lxc: fix "plain-vanilla" integration, part 3Dirk Brenken
* migrate JS generated HTML tables to divs * remove (most of) the inline styles * various markup cleanups That's the final part ... hopefully it's now in a more usable & maintainable state. Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-05-27luci-app-lxc: fix "plain-vanilla" integration, part 2Dirk Brenken
I've tried to get the lxc app in a more usable state. Tested with mips and amd64 targets. * check /etc/config/lxc in controller, not in cbi * more controller cleanups * remove unused 'fork_exec' function * check path before container creation * check space requirements before container creation * support new uci options 'min_space' and 'min_temp', default for both is 100000 KB * both options are configurable via LuCI CBI template * write messages to log in case of an error * validate the container name during creation, automatically remove invalid chars * inform the user that only a stopped container can be destroyed * add experimental ssl support (untested, disabled by default) Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-05-23luci-app-lxc: fix "plain-vanilla" integrationDirk Brenken
I've tried to get the lxc app in a more usable state. Tested with mips and amd64 targets. * fix missing tar/xz dependency, only if LXC_BUSYBOX_OPTIONS is not selected * mute needless gpg validation warning * tidy up controller a little bit * fix multiple possible dispatcher errors * fix compatibility with XHTML standard theme (looks still horrible ;-) * inform the user about custom kernel prerequisites * inform the user about the template download * inform the user if no template was found Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-04-21luci-app-lxc: fix syntax error in previous commitJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-21luci-app-lxc: various changesAdmin Localnet
1) Modify dependencies Add dependencies required for to be able use containers created from "images.linuxcontainers.org". Several of them require "lxc-attach" for set password so to be able login. None of them has SSH preinstalled so "lxc-console" is required to be able login and install SSH, for example. Remove dependency "xz", it seems incompatible with LXC_BUSYBOX_OPTIONS when both are enabled happens a build crash. 2) Change container image repository The repository "virtualwrt.org/containers/" seems to not work, I have change it by the official LXC container image repository. 3) Translate the arch Translate the local uname architecture to a valid "images.linuxcontainers.org" arch. Only tested with the platform "mvebu" (armv7l -> armhf). 4) Other minor fixes Use same server to list images and download the image. Disable GPG check when listing images. Reported-by: "Admin Localnet <localnet@users.noreply.github.com>" [Squashed commits, cleaned up whitespace, refactor arch mapping, escape url setting, use system wide ubus helper, use uci model library] Closes: #1422 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-02-21luci-app-lxc: initial commitdanrl
Moved over here from the packages repository. Signed-off-by: Dan Luedtke <mail@danrl.com>