https://github.com/houqianming/scriptseqchart
是阿里的同事使用Go写的
可以生成形如这样的流程图:
+----+ +-------+ +-------+
+--+
|Aone| |git/svn| |Freedom|
|AI|
+-+--+ +---+---+ +---+---+
++-+
| | |
|
|pull Dockerfile | |
|
|----------------------------------->| |
|
+---. | |
|
| |build/push image | |
|
|<--' | |
|
| update base image(appid,image url) | |
|
|------------------------------------+-------------->|
|
| | |
|
| | .-<-+
|
| | | +---.
|
| | | | |batch and rollback
control |
| | | |<--'
|
| | | |update
container(appid,image url) |
| | loop: |
|---------------------------------->|
| | batch | | done
|
| | control |
|<----------------------------------|
| | | |
|
| | '->-+
|
| | |
|
| done | |
|
|<-----------------------------------+---------------|
|
| | |
|
+-+--+ +---+---+ +---+---+
++-+
|Aone| |git/svn| |Freedom|
|AI|
+----+ +-------+ +-------+
+--+
上述图形的代码是:
participant Aone
participant git/svn
participant Freedom
participant AI
Aone -> git/svn:pull Dockerfile
Aone -> Aone:build/push image
Aone -> Freedom: update base image(appid,image url)
begin loop : do some thing
Freedom -> Freedom:batch and rollback control
begin alt: description
Freedom -> AI:update container(appid,image url)
AI -> Freedom: done
end alt
Freedom -> Freedom: test
end loop
Aone -> Aone:build/push image sdfadfsdfadsf
Freedom -> Aone: done -- Wang Kang Blog: http://scateu.me Fingerprint: 011F 0492 97D6 5D75 8AC4 6458 D43F 3CE2 3353 B7BD HAM Callsign: BH1RLW ----- You received this message because you are subscribed to the Google Groups "TUNA 主邮件列表" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
