mirror of
https://shylinux.com/x/ollama-story
synced 2025-04-28 16:52:00 +08:00
add some
This commit is contained in:
commit
bd3729c985
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017-2025 shylinux
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
12
Makefile
Normal file
12
Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
binarys = bin/ice.bin
|
||||
version = src/version.go
|
||||
binpack = src/binpack.go
|
||||
flags = -ldflags "-w -s" -v
|
||||
|
||||
all: def
|
||||
@date +"%Y-%m-%d %H:%M:%S"
|
||||
go build ${flags} -o ${binarys} src/main.go ${version} ${binpack} && ./${binarys} forever restart &>/dev/null
|
||||
|
||||
def:
|
||||
@[ -f ${version} ] || echo "package main">${version}
|
||||
@[ -f ${binpack} ] || echo "package main">${binpack}
|
19
README.md
Normal file
19
README.md
Normal file
@ -0,0 +1,19 @@
|
||||
# ContextOS
|
||||
ContextOS 通过集群化、模块化、自动化的方式,只用一个 20M 大小的程序文件,就可以在各种设备上,一键启动完整的云计算服务与云研发环境。
|
||||
|
||||
## 源码安装
|
||||
### 克隆编译
|
||||
```sh
|
||||
git clone https://shylinux.com/x/ContextOS
|
||||
cd ContextOS; source etc/miss.sh
|
||||
```
|
||||
|
||||
### 启动服务
|
||||
```sh
|
||||
ish_miss_serve
|
||||
```
|
||||
|
||||
### 访问网页
|
||||
```sh
|
||||
open http://localhost:9020
|
||||
```
|
15
etc/miss.sh
Normal file
15
etc/miss.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
export ctx_shy=${ctx_shy:=https://shylinux.com}
|
||||
if [ -f $PWD/.ish/plug.sh ]; then source $PWD/.ish/plug.sh; elif [ -f $HOME/.ish/plug.sh ]; then source $HOME/.ish/plug.sh; else
|
||||
temp=$(mktemp); if curl -h &>/dev/null; then curl -o $temp -fsSL $ctx_shy; else wget -O $temp -q $ctx_shy; fi; source $temp intshell
|
||||
fi; require conf.sh; require miss.sh; ish_sys_cli_prepare
|
||||
|
||||
ish_miss_prepare_compile
|
||||
ish_miss_prepare_develop
|
||||
ish_miss_prepare_project
|
||||
|
||||
ish_miss_prepare_contexts
|
||||
ish_miss_prepare_resource
|
||||
|
||||
ish_miss_make; [ -z "$*" ] || ish_miss_serve "$@"
|
5
src/main.go
Normal file
5
src/main.go
Normal file
@ -0,0 +1,5 @@
|
||||
package main
|
||||
|
||||
import "shylinux.com/x/ice"
|
||||
|
||||
func main() { print(ice.Run()) }
|
53
src/main.shy
Normal file
53
src/main.shy
Normal file
@ -0,0 +1,53 @@
|
||||
title "ContextOS"
|
||||
|
||||
chapter "实践"
|
||||
label `
|
||||
code wiki chat team mall
|
||||
linux nginx docker redis mysql
|
||||
bash git golang vim tmux
|
||||
`
|
||||
|
||||
chapter "理论"
|
||||
label `集群化 模块化 自动化`
|
||||
|
||||
chapter "项目"
|
||||
label `
|
||||
matrix release program
|
||||
intshell icebergs volcanos
|
||||
contexts toolkits learning
|
||||
`
|
||||
|
||||
section "火山架"
|
||||
field "趋势图" web.code.git.trends args `volcanos`
|
||||
field "架构图" web.code.git.spides args `volcanos`
|
||||
|
||||
section "冰山架"
|
||||
field "趋势图" web.code.git.trends args `icebergs`
|
||||
field "架构图" web.code.git.spides args `icebergs`
|
||||
label `
|
||||
ctx mdb web aaa
|
||||
lex yac ssh gdb
|
||||
tcp nfs cli log
|
||||
`
|
||||
chain `
|
||||
web
|
||||
code
|
||||
wiki
|
||||
chart
|
||||
chat
|
||||
macos
|
||||
oauth
|
||||
location
|
||||
team
|
||||
mall
|
||||
`
|
||||
label `
|
||||
websocket webview qrcode xterm ssh git
|
||||
vim bash tmux alpha input lex yac
|
||||
node java coder github chrome
|
||||
wx lark wework
|
||||
` compact true
|
||||
|
||||
section "神农架"
|
||||
field "趋势图" web.code.git.trends args `intshell`
|
||||
field "架构图" web.code.git.spides args `intshell`
|
Loading…
x
Reference in New Issue
Block a user