Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 794 Bytes

README.md

File metadata and controls

46 lines (30 loc) · 794 Bytes

ufop demo

构建镜像

进入该目录,然后运行以下命令,获得名为 ufopdemo:v1 的 docker 镜像

docker build -t "ufopdemo:v1" .

验证镜像功能

运行镜像

docker run -p 9100:9100 ufopdemo:v1

测试数据处理接口

测试处理资源通过url参数来指定:

运行命令

curl -v "http://127.0.0.1:9100/handler?cmd=doraufoptest&url=http://www.qiniu.com"

来自 http://www.qiniu.com 的网页内容会被打印

测试处理资源通过请求body来指定:

运行命令

curl -d "this should be printed" "http://127.0.0.1:9100/handler?cmd=doraufoptest"

this should be printed将会被打印

健康检查

运行命令

curl -v "http://127.0.0.1:9100/health"

应返回status code为200的报文