feat: 增加创建 php 运行环境功能

This commit is contained in:
zhengkunwang223
2023-03-30 16:47:47 +08:00
committed by zhengkunwang223
parent 1949be2490
commit 64a954df53
29 changed files with 546 additions and 36 deletions

View File

@@ -83,6 +83,10 @@ func (s *ComposeService) ComposeCreate() error {
return s.Create(context.Background(), s.project, api.CreateOptions{})
}
func (s *ComposeService) ComposeBuild() error {
return s.Build(context.Background(), s.project, api.BuildOptions{})
}
func GetComposeProject(projectName, workDir string, yml []byte, env []byte) (*types.Project, error) {
var configFiles []types.ConfigFile
configFiles = append(configFiles, types.ConfigFile{