mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
luci-app-docker: remove useless package
This commit is contained in:
parent
b0ca393af1
commit
6e2171c66d
@ -1,18 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
|
||||
#
|
||||
# This is free software, licensed under the Apache License, Version 2.0 .
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=Luci for Docker-CE
|
||||
LUCI_DEPENDS:=+docker-ce +e2fsprogs +fdisk
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_VERSION:=1
|
||||
PKG_RELEASE:=9
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
|
@ -1,17 +0,0 @@
|
||||
module("luci.controller.docker", package.seeall)
|
||||
|
||||
function index()
|
||||
if not nixio.fs.access("/etc/config/dockerd") then
|
||||
return
|
||||
end
|
||||
|
||||
entry({"admin", "services", "docker"}, cbi("docker"), _("Docker CE Container"), 199).dependent = true
|
||||
entry({"admin","services","docker","status"},call("act_status")).leaf=true
|
||||
end
|
||||
|
||||
function act_status()
|
||||
local e={}
|
||||
e.running=luci.sys.call("pgrep /usr/bin/dockerd >/dev/null")==0
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json(e)
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
local running = (luci.sys.call("pidof portainer >/dev/null") == 0)
|
||||
local button = ""
|
||||
|
||||
if running then
|
||||
button = " <br /><br /><input type=\"button\" value=\" " .. translate("Open Portainer Docker Admin") .. " \" onclick=\"window.open('http://'+window.location.hostname+':" .. 9999 .. "')\"/><br />"
|
||||
end
|
||||
|
||||
m = Map("dockerd", "Docker CE", translate("Docker is a set of platform-as-a-service (PaaS) products that use OS-level virtualization to deliver software in packages called containers.") .. button)
|
||||
|
||||
|
||||
m:section(SimpleSection).template = "docker/docker_status"
|
||||
|
||||
s = m:section(TypedSection, "docker")
|
||||
s.anonymous = true
|
||||
|
||||
wan_mode = s:option(Flag, "wan_mode", translate("Enable WAN access Dokcer"), translate("Enable WAN access docker mapped ports"))
|
||||
wan_mode.default = 0
|
||||
wan_mode.rmempty = false
|
||||
|
||||
o=s:option(DummyValue,"readme",translate(" "))
|
||||
o.description=translate("<a href=\"../../../../DockerReadme.pdf\" target=\"_blank\" />"..translate("Download DockerReadme.pdf").."</a>")
|
||||
|
||||
return m
|
@ -1,22 +0,0 @@
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
XHR.poll(3, '<%=url([[admin]], [[services]], [[docker]], [[status]])%>', null,
|
||||
function(x, data) {
|
||||
var tb = document.getElementById('docker_status');
|
||||
if (data && tb) {
|
||||
if (data.running) {
|
||||
var links = '<em><b><font color=green>Docker CE <%:RUNNING%></font></b></em>';
|
||||
tb.innerHTML = links;
|
||||
} else {
|
||||
tb.innerHTML = '<em><b><font color=red>Docker CE <%:NOT RUNNING%></font></b></em>';
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
//]]>
|
||||
</script>
|
||||
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
|
||||
<fieldset class="cbi-section">
|
||||
<p id="docker_status">
|
||||
<em><%:Collecting data...%></em>
|
||||
</p>
|
||||
</fieldset>
|
@ -1,39 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Luci ARP Bind\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-06-23 20:16+0800\n"
|
||||
"PO-Revision-Date: 2015-06-23 20:17+0800\n"
|
||||
"Last-Translator: coolsnowwolf <coolsnowwolf@gmail.com>\n"
|
||||
"Language-Team: PandoraBox Team\n"
|
||||
"Language: zh_Hans\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: Poedit 1.8.1\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
||||
msgid "Docker CE Container"
|
||||
msgstr "Docker CE 容器"
|
||||
|
||||
msgid "Open Portainer Docker Admin"
|
||||
msgstr "打开 Portainer Docker 管理页面"
|
||||
|
||||
msgid "Docker is a set of platform-as-a-service (PaaS) products that use OS-level virtualization to deliver software in packages called containers."
|
||||
msgstr "Docker是一组平台即服务(platform-as-a-service,PaaS)产品,它使用操作系统级容器虚拟化来交付软件包。"
|
||||
|
||||
msgid "Enable WAN access Dokcer"
|
||||
msgstr "允许 WAN 访问 Dokcer"
|
||||
|
||||
msgid "Enable WAN access docker mapped ports"
|
||||
msgstr "允许 WAN 访问 Dokcer 映射后的端口(易受攻击!)。<br /><br />推荐禁用该选项后,用系统防火墙选择性映射 172.17.0.X:XX 端口到 WAN"
|
||||
|
||||
msgid "Docker Readme First"
|
||||
msgstr "Docker 初始化无脑配置教程"
|
||||
|
||||
msgid "Download DockerReadme.pdf"
|
||||
msgstr "下载 Docker 初始化无脑配置教程"
|
||||
|
||||
msgid "Please download DockerReadme.pdf to read when first-running"
|
||||
msgstr "初次在OpenWrt中运行Docker必读(只需执行一次流程)"
|
@ -1,61 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Last-Translator: Automatically generated\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: zh-Hans\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: luasrc/model/cbi/docker.lua:21
|
||||
msgid "<a href=\"../../../../DockerReadme.pdf\" target=\"_blank\" />"
|
||||
msgstr ""
|
||||
|
||||
#: luasrc/view/docker/docker_status.htm:20
|
||||
msgid "Collecting data..."
|
||||
msgstr ""
|
||||
|
||||
#: luasrc/controller/docker.lua:8
|
||||
msgid "Docker CE Container"
|
||||
msgstr "Docker CE 容器"
|
||||
|
||||
#: luasrc/model/cbi/docker.lua:8
|
||||
msgid ""
|
||||
"Docker is a set of platform-as-a-service (PaaS) products that use OS-level "
|
||||
"virtualization to deliver software in packages called containers."
|
||||
msgstr ""
|
||||
"Docker是一组平台即服务(platform-as-a-service,PaaS)产品,它使用操作系统级容"
|
||||
"器虚拟化来交付软件包。"
|
||||
|
||||
#: luasrc/model/cbi/docker.lua:21
|
||||
msgid "Download DockerReadme.pdf"
|
||||
msgstr "下载 Docker 初始化无脑配置教程"
|
||||
|
||||
#: luasrc/model/cbi/docker.lua:16
|
||||
msgid "Enable WAN access Dokcer"
|
||||
msgstr "允许 WAN 访问 Dokcer"
|
||||
|
||||
#: luasrc/model/cbi/docker.lua:16
|
||||
msgid "Enable WAN access docker mapped ports"
|
||||
msgstr ""
|
||||
"允许 WAN 访问 Dokcer 映射后的端口(易受攻击!)。<br /><br />推荐禁用该选项"
|
||||
"后,用系统防火墙选择性映射 172.17.0.X:XX 端口到 WAN"
|
||||
|
||||
#: luasrc/view/docker/docker_status.htm:10
|
||||
msgid "NOT RUNNING"
|
||||
msgstr ""
|
||||
|
||||
#: luasrc/model/cbi/docker.lua:5
|
||||
msgid "Open Portainer Docker Admin"
|
||||
msgstr "打开 Portainer Docker 管理页面"
|
||||
|
||||
#: luasrc/view/docker/docker_status.htm:7
|
||||
msgid "RUNNING"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Docker Readme First"
|
||||
#~ msgstr "Docker 初始化无脑配置教程"
|
||||
|
||||
#~ msgid "Please download DockerReadme.pdf to read when first-running"
|
||||
#~ msgstr "初次在OpenWrt中运行Docker必读(只需执行一次流程)"
|
@ -1,4 +0,0 @@
|
||||
|
||||
config docker
|
||||
option wan_mode '0'
|
||||
|
@ -1,26 +0,0 @@
|
||||
#!/bin/sh
|
||||
dtype=`fdisk -l /dev/sda | grep 'Disklabel type' | awk '{print $3}'`
|
||||
partid="0"
|
||||
|
||||
if [ "$dtype" = "gpt" ]
|
||||
then
|
||||
partid=`echo "n
|
||||
|
||||
|
||||
|
||||
w
|
||||
" | fdisk /dev/sda | grep 'Created a new partition' | awk '{print $5}'`
|
||||
|
||||
elif [ "$dtype" = "dos" ]
|
||||
then
|
||||
partid=`echo "n
|
||||
p
|
||||
|
||||
|
||||
|
||||
w
|
||||
" | fdisk /dev/sda | grep 'Created a new partition' | awk '{print $5}'`
|
||||
fi
|
||||
|
||||
echo "y" | mkfs.ext4 /dev/sda$partid
|
||||
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker run -d --restart=always --name="portainer" -p 9999:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
|
@ -1,22 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
USE_PROCD=1
|
||||
START=25
|
||||
|
||||
start_service() {
|
||||
local nofile=$(cat /proc/sys/fs/nr_open)
|
||||
local wanmode=$(uci get dockerd.@docker[0].wan_mode)
|
||||
|
||||
if [ $wanmode = "1" ] ;then
|
||||
dockerwan=" "
|
||||
else
|
||||
dockerwan="--iptables=false"
|
||||
fi
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param stderr 1
|
||||
procd_set_param command /usr/bin/dockerd $dockerwan
|
||||
procd_set_param limits nofile="${nofile} ${nofile}"
|
||||
procd_close_instance
|
||||
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@dockerd[-1]
|
||||
add ucitrack dockerd
|
||||
set ucitrack.@dockerd[-1].init=dockerd
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user