mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
add docker all feeds soft
This commit is contained in:
parent
4ff1102a1a
commit
4b2ee656b7
178 changed files with 15534 additions and 0 deletions
3
luci-app-docker/root/etc/config/dockerd
Normal file
3
luci-app-docker/root/etc/config/dockerd
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
config docker
|
||||
option wan_mode '0'
|
||||
26
luci-app-docker/root/etc/docker-init
Executable file
26
luci-app-docker/root/etc/docker-init
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/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
|
||||
|
||||
3
luci-app-docker/root/etc/docker-web
Executable file
3
luci-app-docker/root/etc/docker-web
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/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-ce
|
||||
4
luci-app-docker/root/etc/docker/daemon.json
Normal file
4
luci-app-docker/root/etc/docker/daemon.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"data-root": "/opt/",
|
||||
"log-level": "warn"
|
||||
}
|
||||
22
luci-app-docker/root/etc/init.d/dockerd
Executable file
22
luci-app-docker/root/etc/init.d/dockerd
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/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
|
||||
|
||||
}
|
||||
11
luci-app-docker/root/etc/uci-defaults/luci-docker
Executable file
11
luci-app-docker/root/etc/uci-defaults/luci-docker
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/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
|
||||
BIN
luci-app-docker/root/www/DockerReadme.pdf
Normal file
BIN
luci-app-docker/root/www/DockerReadme.pdf
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue