Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Commit

Permalink
new features
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonYangShadow committed Apr 30, 2022
1 parent 926f69f commit 9dcf263
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Binary file modified build/linux/x86_64/Linux-x86_64-lpmx
Binary file not shown.
5 changes: 0 additions & 5 deletions compose/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ func (topLevel *TopLevel) Validate() ([]string, []string, *map[string]AppLevel,
return nil, nil, nil, err
}

if stringUtils.IsEmpty(element.Command) {
err := ErrNew(ErrNExist, "command type is a mandatory field")
return nil, nil, nil,err
}

if len(element.Expose) > 0 {
for _, expose := range element.Expose {
if !stringUtils.Contains(expose, ":") {
Expand Down
6 changes: 4 additions & 2 deletions container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -3891,11 +3891,12 @@ func autoDownload(name string) *Error {
}

func convertMapValue (values []string) string {
var retValues []string
if len(values) > 0 {
for _, value := range values {
strings.ReplaceAll(value, ":", "=")
retValues = append(retValues, strings.ReplaceAll(value, ":", "="))
}
return strings.Join(values, ":")
return strings.Join(retValues, ":")
}
return ""
}
Expand All @@ -3907,6 +3908,7 @@ func runComposeApp (targetApp AppLevel) *Error {
exec_map := convertMapValue(targetApp.Inject)
mountfile := ""
command := targetApp.Command

container_id, cerr := CommonComposeRun(name, container_name, volume_map, exec_map, mountfile, command)
if cerr != nil{
return cerr
Expand Down

0 comments on commit 9dcf263

Please sign in to comment.