* * image build in cluster now use InitContainer to do the image building inside pods, which invoke docker again node's docker daemon * create a docker build image tool fx/contrib/docker_packer * clean up no need env in GitHub action workflow * bump version
21 lines
412 B
Go
21 lines
412 B
Go
package types
|
|
|
|
// ServiceRunOptions a service to start options
|
|
type ServiceRunOptions struct {
|
|
Image string
|
|
Port int64
|
|
}
|
|
|
|
// DefaultHost default host IP
|
|
const DefaultHost = "0.0.0.0"
|
|
|
|
// Service instance of a service
|
|
type Service struct {
|
|
ID string `json:"id"`
|
|
Host string `json:"host"`
|
|
Port int `json:"port"`
|
|
State string `json:"state"`
|
|
Name string `json:"name"`
|
|
Image string `json:"image"`
|
|
}
|