百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

micro-starter

> DevOps
开源

微服务实践

397 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

微服务实践

Micro github.com/micro

Local

Build micro cmd

go build -o bin/micro cmd/micro/main.go

Start registry & api with server runtime

./bin/micro --profile starter-local server

Start registry & api with service command Run registry service

./bin/micro --profile starter-local service registry

Run API service

./bin/micro --profile starter-local service api

Run example service

# Greeting
cd service/greeting
CGO_ENABLED=0 go run main.go --profile starter-local

Test example service

# Greeting
curl "http://localhost:8080/greeting/call?msg=helloworld"
{"id":"1","msg":"helloworld"}

curl "http://localhost:8080/greeting/list?page=1&size=10"
{"items":[{"id":"1","msg":"helloworld"}]}

Kubernetes

$ make snapshot

$ docker build ./ -f Dockerfile --platform=linux/amd64 -t registry.cn-hangzhou.aliyuncs.com/hb-chen/micro-starter-micro:latest

Attention: default ingress class=nginx, host=api.micro.hbchen.com

helm install -n micro micro-server manifests/charts/micro \
--set ingress.enabled=true

# Digest
helm install -n micro micro-server manifests/charts/micro \
--set image.tag="latest@sha256:aceabd67ac333dcd19bde3524c54e7a556b8651cf049495ab6e086d45bb7ad77" \
--set ingress.enabled=true
helm install -n micro micro-example manifests/charts/service

# Digest
helm install -n micro micro-example manifests/charts/service \
--set image.tag="latest@sha256:a2af30ff9a0a66ade77672e01679a2b02ead3b2b0f27bd7092d726d75fd069e0"
curl "http://api.micro.hbchen.com/greeting/call?msg=helloworld"

Issues· 5 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goconsuldockergo-microistio

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理