-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use
embed
pkg to split long template to file
- Loading branch information
1 parent
4d17212
commit 5281171
Showing
2 changed files
with
77 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
version: '2.4' | ||
|
||
networks: | ||
{{ .Name }}: | ||
labels: | ||
e2e: true | ||
driver: bridge | ||
{{- if .IPv6 }} | ||
enable_ipv6: true | ||
{{- end }} | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: {{ .IP }} | ||
|
||
services: | ||
{{- range .Nodes }} | ||
{{ .Name }}: | ||
labels: | ||
e2e: true | ||
container_name: {{ .Name }} | ||
image: {{ .Version }} | ||
{{- if eq .ABCIProtocol "builtin" }} | ||
entrypoint: /usr/bin/entrypoint-builtin | ||
{{- else if .Misbehaviors }} | ||
entrypoint: /usr/bin/entrypoint-maverick | ||
command: ["node", "--misbehaviors", "{{ misbehaviorsToString .Misbehaviors }}"] | ||
{{- end }} | ||
init: true | ||
ports: | ||
- 26656 | ||
- {{ if .ProxyPort }}{{ .ProxyPort }}:{{ end }}26657 | ||
{{- if .PrometheusProxyPort }} | ||
- {{ .PrometheusProxyPort }}:26660 | ||
{{- end }} | ||
- 6060 | ||
volumes: | ||
- ./{{ .Name }}:/cometbft | ||
- ./{{ .Name }}:/tendermint | ||
networks: | ||
{{ $.Name }}: | ||
ipv{{ if $.IPv6 }}6{{ else }}4{{ end}}_address: {{ .IP }} | ||
{{- if ne .Version $.UpgradeVersion}} | ||
|
||
{{ .Name }}_u: | ||
labels: | ||
e2e: true | ||
container_name: {{ .Name }}_u | ||
image: {{ $.UpgradeVersion }} | ||
{{- if eq .ABCIProtocol "builtin" }} | ||
entrypoint: /usr/bin/entrypoint-builtin | ||
{{- else if .Misbehaviors }} | ||
entrypoint: /usr/bin/entrypoint-maverick | ||
command: ["node", "--misbehaviors", "{{ misbehaviorsToString .Misbehaviors }}"] | ||
{{- end }} | ||
init: true | ||
ports: | ||
- 26656 | ||
- {{ if .ProxyPort }}{{ .ProxyPort }}:{{ end }}26657 | ||
{{- if .PrometheusProxyPort }} | ||
- {{ .PrometheusProxyPort }}:26660 | ||
{{- end }} | ||
- 6060 | ||
volumes: | ||
- ./{{ .Name }}:/cometbft | ||
- ./{{ .Name }}:/tendermint | ||
networks: | ||
{{ $.Name }}: | ||
ipv{{ if $.IPv6 }}6{{ else }}4{{ end}}_address: {{ .IP }} | ||
{{- end }} | ||
|
||
{{end}} |
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