mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
c4adefbee7
commit
a898599832
@ -1,5 +1,5 @@
|
|||||||
# contexts
|
# Contexts
|
||||||
contexts 通过集群化、模块化、自动化的方式,用一个 20M 的程序文件,就可以在各种设备上,一键搭起完整的云计算与云研发服务。
|
contexts 通过集群化、模块化、自动化的方式,用一个 20M 的程序文件,就可以在各种设备上,一键搭起完整的云计算服务与云研发环境。
|
||||||
|
|
||||||
## 安装项目
|
## 安装项目
|
||||||
```sh
|
```sh
|
||||||
|
@ -40,6 +40,10 @@
|
|||||||
event listen event dream.create cmd web.code.tmux.session
|
event listen event dream.create cmd web.code.tmux.session
|
||||||
event listen event dream.create cmd web.chat.macos.notifications
|
event listen event dream.create cmd web.chat.macos.notifications
|
||||||
event listen event dream.create cmd web.chat.iframe
|
event listen event dream.create cmd web.chat.iframe
|
||||||
|
# event listen event dream.tables cmd web.wiki.word
|
||||||
|
# event listen event dream.tables cmd web.wiki.draw
|
||||||
|
# event listen event dream.tables cmd web.chat.macos.desktop
|
||||||
|
# event listen event dream.tables cmd web.team.plan
|
||||||
|
|
||||||
~ssh
|
~ssh
|
||||||
target web.chat.macos
|
target web.chat.macos
|
||||||
|
10
go.mod
10
go.mod
@ -2,13 +2,11 @@ module shylinux.com/x/contexts
|
|||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
replace (
|
replace shylinux.com/x/icebergs => ./usr/icebergs
|
||||||
shylinux.com/x/ice => ./usr/release
|
|
||||||
// shylinux.com/x/icebergs => ./usr/icebergs
|
replace shylinux.com/x/toolkits => ./usr/toolkits
|
||||||
shylinux.com/x/toolkits => ./usr/toolkits
|
|
||||||
)
|
|
||||||
|
|
||||||
require (
|
require (
|
||||||
shylinux.com/x/ice v1.3.3
|
shylinux.com/x/ice v1.3.3
|
||||||
shylinux.com/x/icebergs v1.5.9
|
shylinux.com/x/icebergs v1.5.11
|
||||||
)
|
)
|
||||||
|
4
go.sum
4
go.sum
@ -4,10 +4,6 @@ shylinux.com/x/go-qrcode v0.0.2 h1:/c0PLj+1RT+kUPfnZVXwgbgH5m1SxBUjM2MIKXbDk+E=
|
|||||||
shylinux.com/x/go-qrcode v0.0.2/go.mod h1:TlzGBENHXy19xC3AsC6h4Vs5fx2ZuDA4TZ0U3C2OeK4=
|
shylinux.com/x/go-qrcode v0.0.2/go.mod h1:TlzGBENHXy19xC3AsC6h4Vs5fx2ZuDA4TZ0U3C2OeK4=
|
||||||
shylinux.com/x/ice v1.3.3 h1:TcmKi6dr6GFKsjQTrO0tLYApXvPzkIOwn11ZtJELEZE=
|
shylinux.com/x/ice v1.3.3 h1:TcmKi6dr6GFKsjQTrO0tLYApXvPzkIOwn11ZtJELEZE=
|
||||||
shylinux.com/x/ice v1.3.3/go.mod h1:2jAHlyTfhncfRN+IVoqjeNJ3rIInhtT6J4bBw7YAp24=
|
shylinux.com/x/ice v1.3.3/go.mod h1:2jAHlyTfhncfRN+IVoqjeNJ3rIInhtT6J4bBw7YAp24=
|
||||||
shylinux.com/x/icebergs v1.5.7 h1:huIAAuBPMfXGXr+IEyjwOpheNUGbuIrtVpjCRzx0v/M=
|
|
||||||
shylinux.com/x/icebergs v1.5.7/go.mod h1:5LFzEEN89Esa9tL8v3rHYbG8VbawSX4rDQZAH2e5fNY=
|
|
||||||
shylinux.com/x/icebergs v1.5.8 h1:X48gBI/C0iGlLouUIC+r8yoRTpJHWNZP3aLQklWFL1A=
|
|
||||||
shylinux.com/x/icebergs v1.5.8/go.mod h1:5LFzEEN89Esa9tL8v3rHYbG8VbawSX4rDQZAH2e5fNY=
|
|
||||||
shylinux.com/x/icebergs v1.5.9 h1:MHJwT7Xs4WYqVrhPuwXFkLrG7ma1tUV0HcwlsQNS4AI=
|
shylinux.com/x/icebergs v1.5.9 h1:MHJwT7Xs4WYqVrhPuwXFkLrG7ma1tUV0HcwlsQNS4AI=
|
||||||
shylinux.com/x/icebergs v1.5.9/go.mod h1:5LFzEEN89Esa9tL8v3rHYbG8VbawSX4rDQZAH2e5fNY=
|
shylinux.com/x/icebergs v1.5.9/go.mod h1:5LFzEEN89Esa9tL8v3rHYbG8VbawSX4rDQZAH2e5fNY=
|
||||||
shylinux.com/x/toolkits v0.7.5/go.mod h1:8LbYHe7oxBIqb6s4MSOD+4d28QvPdvkyCVtwB/JW7AA=
|
shylinux.com/x/toolkits v0.7.5/go.mod h1:8LbYHe7oxBIqb6s4MSOD+4d28QvPdvkyCVtwB/JW7AA=
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
module shylinux.com/x/contexts
|
|
||||||
|
|
||||||
go 1.13
|
|
||||||
|
|
||||||
replace (
|
|
||||||
shylinux.com/x/ice => ./usr/release
|
|
||||||
shylinux.com/x/icebergs => ./usr/icebergs
|
|
||||||
shylinux.com/x/toolkits => ./usr/toolkits
|
|
||||||
)
|
|
||||||
|
|
||||||
require shylinux.com/x/ice v1.3.3
|
|
@ -18,7 +18,7 @@ Volcanos({river: {
|
|||||||
operate: {name: "运维群", storm: {
|
operate: {name: "运维群", storm: {
|
||||||
web: {name: "应用 web", index: ["broad", "serve", "space", "dream", "cache", "spide", "share"]},
|
web: {name: "应用 web", index: ["broad", "serve", "space", "dream", "cache", "spide", "share"]},
|
||||||
aaa: {name: "权限 aaa", index: ["offer", "email", "user", "totp", "sess", "role"]},
|
aaa: {name: "权限 aaa", index: ["offer", "email", "user", "totp", "sess", "role"]},
|
||||||
cli: {name: "系统 cli", index: ["qrcode", "daemon", "system", "runtime", "mirrors", "forever", "signal", "timer", "routine", "log.debug"]},
|
cli: {name: "系统 cli", index: ["cli.procstat", "qrcode", "daemon", "system", "runtime", "mirrors", "forever", "signal", "timer", "routine", "log.debug"]},
|
||||||
nfs: {name: "文件 nfs", index: ["dir", "cat", "tar", "pack", "tail", "trash", "server", "host", "port"]},
|
nfs: {name: "文件 nfs", index: ["dir", "cat", "tar", "pack", "tail", "trash", "server", "host", "port"]},
|
||||||
}},
|
}},
|
||||||
}})
|
}})
|
||||||
|
11
src/main.sh
11
src/main.sh
@ -7,11 +7,12 @@ main() {
|
|||||||
shift && prepare_ice && while true; do bin/ice.bin serve start dev dev "$@" && break; done
|
shift && prepare_ice && while true; do bin/ice.bin serve start dev dev "$@" && break; done
|
||||||
;;
|
;;
|
||||||
dev) # 开发环境
|
dev) # 开发环境
|
||||||
shift && prepare_system; require miss.sh
|
shift && prepare_system; require miss.sh; [ -f ~/.gitconfig ] || ish_dev_git_prepare
|
||||||
[ -f ~/.gitconfig ] || ish_dev_git_prepare
|
if [ -n "$ctx_pod" ]; then
|
||||||
git config --global url."$ctx_dev".insteadOf https://shylinux.com
|
git clone $ctx_dev/chat/pod/$ctx_pod; cd $ctx_pod && source etc/miss.sh dev dev "$@"
|
||||||
git clone https://shylinux.com/x/contexts
|
else
|
||||||
cd contexts && source etc/miss.sh dev dev "$@"
|
git clone $ctx_dev contexts; cd contexts && source etc/miss.sh dev dev "$@"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
cmd) # 命令环境
|
cmd) # 命令环境
|
||||||
ish_sys_dev_init >/dev/null; shift; [ -n "$*" ] && ish_sys_dev_run "$@"
|
ish_sys_dev_init >/dev/null; shift; [ -n "$*" ] && ish_sys_dev_run "$@"
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
module shylinux.com/x/contexts
|
|
||||||
|
|
||||||
go 1.13
|
|
||||||
|
|
||||||
require shylinux.com/x/ice v1.3.3
|
|
@ -1,3 +1,3 @@
|
|||||||
module %s
|
module %s
|
||||||
|
|
||||||
go 1.11
|
go 1.13
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"28780fc2a18723825b3cba021eb90ab1": {
|
"28780fc2a18723825b3cba021eb90ab1": {
|
||||||
"meta": {
|
"meta": {
|
||||||
"background": "usr/icons/background.jpg",
|
"background": "usr/icons/background.jpg",
|
||||||
"time": "2023-05-23 01:27:55.665",
|
"time": "2023-05-24 01:41:45.360",
|
||||||
"username": "shylinux",
|
"username": "shylinux",
|
||||||
"userrole": "tech",
|
"userrole": "tech",
|
||||||
"userzone": "dev"
|
"userzone": "dev"
|
||||||
@ -11,7 +11,7 @@
|
|||||||
"364d28ceb39aea833ab2b1323819bb05": {
|
"364d28ceb39aea833ab2b1323819bb05": {
|
||||||
"meta": {
|
"meta": {
|
||||||
"background": "usr/icons/background.jpg",
|
"background": "usr/icons/background.jpg",
|
||||||
"time": "2023-05-23 01:27:55.664",
|
"time": "2023-05-24 01:41:45.359",
|
||||||
"username": "shy",
|
"username": "shy",
|
||||||
"userrole": "root",
|
"userrole": "root",
|
||||||
"userzone": "ops"
|
"userzone": "ops"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"binary": "http://2021.shylinux.com:9020/chat/pod/20230511-nginx-story",
|
"binary": "http://2021.shylinux.com:9020/chat/pod/20230511-nginx-story",
|
||||||
"name": "20230511-nginx-story",
|
"name": "20230511-nginx-story",
|
||||||
"repos": "https://shylinux.com/x/nginx-story",
|
"repos": "https://shylinux.com/x/nginx-story",
|
||||||
"time": "2023-05-23 01:27:55.923"
|
"time": "2023-05-24 01:41:45.510"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"4367af656d2cdf23ec9ff6d3fd20818a": {
|
"4367af656d2cdf23ec9ff6d3fd20818a": {
|
||||||
@ -12,7 +12,7 @@
|
|||||||
"binary": "http://2021.shylinux.com:9020/chat/pod/20230511-golang-story",
|
"binary": "http://2021.shylinux.com:9020/chat/pod/20230511-golang-story",
|
||||||
"name": "20230511-golang-story",
|
"name": "20230511-golang-story",
|
||||||
"repos": "https://shylinux.com/x/golang-story",
|
"repos": "https://shylinux.com/x/golang-story",
|
||||||
"time": "2023-05-23 01:27:55.921"
|
"time": "2023-05-24 01:41:45.509"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"5da4f85bffeefcc732fb9f4390e42953": {
|
"5da4f85bffeefcc732fb9f4390e42953": {
|
||||||
@ -20,7 +20,13 @@
|
|||||||
"binary": "http://2021.shylinux.com:9020/chat/pod/20230511-mysql-story",
|
"binary": "http://2021.shylinux.com:9020/chat/pod/20230511-mysql-story",
|
||||||
"name": "20230511-mysql-story",
|
"name": "20230511-mysql-story",
|
||||||
"repos": "https://shylinux.com/x/mysql-story",
|
"repos": "https://shylinux.com/x/mysql-story",
|
||||||
"time": "2023-05-23 01:27:55.924"
|
"time": "2023-05-24 01:41:45.511"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"71c6523878bffd692ac5bf4e2ae31c3e": {
|
||||||
|
"meta": {
|
||||||
|
"name": "20230523-hi",
|
||||||
|
"time": "2023-05-23 19:01:20.059"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"870860712b733202a9daccb11b4059c2": {
|
"870860712b733202a9daccb11b4059c2": {
|
||||||
@ -28,7 +34,7 @@
|
|||||||
"binary": "http://2021.shylinux.com:9020/chat/pod/20230511-linux-story",
|
"binary": "http://2021.shylinux.com:9020/chat/pod/20230511-linux-story",
|
||||||
"name": "20230511-linux-story",
|
"name": "20230511-linux-story",
|
||||||
"repos": "https://shylinux.com/x/linux-story",
|
"repos": "https://shylinux.com/x/linux-story",
|
||||||
"time": "2023-05-23 01:27:55.922"
|
"time": "2023-05-24 01:41:45.509"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"d39c6e372fc7e07708b1cc7c9ca2bf92": {
|
"d39c6e372fc7e07708b1cc7c9ca2bf92": {
|
||||||
@ -36,7 +42,7 @@
|
|||||||
"binary": "http://2021.shylinux.com:9020/chat/pod/20230511-redis-story",
|
"binary": "http://2021.shylinux.com:9020/chat/pod/20230511-redis-story",
|
||||||
"name": "20230511-redis-story",
|
"name": "20230511-redis-story",
|
||||||
"repos": "https://shylinux.com/x/redis-story",
|
"repos": "https://shylinux.com/x/redis-story",
|
||||||
"time": "2023-05-23 01:27:55.923"
|
"time": "2023-05-24 01:41:45.510"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fa7fc1034e2fe13b88594a431c776cd8": {
|
"fa7fc1034e2fe13b88594a431c776cd8": {
|
||||||
@ -44,7 +50,7 @@
|
|||||||
"binary": "http://2021.shylinux.com:9020/chat/pod/20221205-sshd",
|
"binary": "http://2021.shylinux.com:9020/chat/pod/20221205-sshd",
|
||||||
"name": "20221205-sshd",
|
"name": "20221205-sshd",
|
||||||
"repos": "https://shylinux.com/x/sshd",
|
"repos": "https://shylinux.com/x/sshd",
|
||||||
"time": "2023-05-23 01:27:55.920"
|
"time": "2023-05-24 01:41:45.508"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user