Skip to content

Commit b241c3f

Browse files
authored
fix: docker cmd issue (#315)
1 parent 0357420 commit b241c3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

swiftwave_service/worker/process_application_deploy_request.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,15 @@ func (m Manager) deployApplicationHelper(request DeployApplicationRequest) error
160160
sysctls[sysctlPart[0]] = sysctlPart[1]
161161
}
162162
}
163+
command := make([]string, 0)
164+
if application.Command != "" {
165+
command = strings.Split(application.Command, " ")
166+
}
163167
// create service
164168
service := containermanger.Service{
165169
Name: application.Name,
166170
Image: dockerImageUri,
167-
Command: []string{},
171+
Command: command,
168172
Env: environmentVariablesMap,
169173
Networks: []string{m.SystemConfig.ServiceConfig.NetworkName},
170174
DeploymentMode: containermanger.DeploymentMode(application.DeploymentMode),

0 commit comments

Comments
 (0)