forked from codeskyblue/gohttpserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d8af0a
commit 1187cbd
Showing
227 changed files
with
96,039 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
:<<'EOF' | ||
配置docker的镜像加速器: | ||
gedit /etc/docker/daemon.json | ||
{ | ||
"registry-mirrors": ["https://docker.rainbond.cc"] | ||
} | ||
systemctl daemon-reload | ||
systemctl restart docker | ||
使用docker info 查看是否有mirror. | ||
EOF | ||
|
||
:<<'EOF' | ||
错误: | ||
go: github.com/alecthomas/kingpin@v2.2.6+incompatible: Get "https://proxy.golang.org/github.com/alecthomas/kingpin/@v/v2.2.6+incompatible.mod": dial tcp 172.217.160.81:443: i/o timeout | ||
解决: | ||
####export GOPROXY=https://mirrors.aliyun.com/goproxy/ | ||
go env -w GOPROXY=https://goproxy.cn/,direct | ||
go mod tidy | ||
go mod vendor | ||
go mod download | ||
EOF | ||
|
||
#begin docker build | ||
#编译端 | ||
docker build -t sietium/gohttpserver -f docker/Dockerfile . | ||
|
||
docker save -o gohttpserver.tar sietium/gohttpserver:latest | ||
|
||
#部署服务器端 | ||
#systemctl start docker | ||
|
||
#docker load -i gohttpserver.tar | ||
|
||
#docker run -it --rm -p 8000:8000 -v $PWD:/app/public --name gohttpserver sietium/gohttpserver --upload | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash - | ||
#这个脚本被gohttpserver可执行程序调用,在用户点击网页解析按钮时调用进行解析dump为txt | ||
script_dir="$(cd "$(dirname "$0")" && pwd)" | ||
|
||
dumpfile=$1 | ||
symbolDir=$2 | ||
echo "script_dir path: $script_dir" | ||
echo "dumpfile : $1" | ||
echo "symbolDir : $2" | ||
|
||
#将堆栈跟踪信息重定向到文件中 | ||
./minidump_stackwalk ${dumpfile} ${symbolDir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.