Bumped compose version to .97

This commit is contained in:
frikky
2021-05-29 18:18:59 +02:00
parent 010659c86c
commit 35336663d7
12 changed files with 48 additions and 20 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
NAME=shuffle-worker
VERSION=0.8.92
VERSION=0.8.97
echo "Running docker build with $NAME:$VERSION"
#CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o worker.bin .
+5 -2
View File
@@ -199,14 +199,17 @@ func shutdown(workflowExecution shuffle.WorkflowExecution, nodeId string, reason
func deployApp(cli *dockerclient.Client, image string, identifier string, env []string, workflowExecution shuffle.WorkflowExecution) error {
// form basic hostConfig
ctx := context.Background()
// Max 10% CPU every second
hostConfig := &container.HostConfig{
LogConfig: container.LogConfig{
Type: "json-file",
Config: map[string]string{},
},
Resources: container.Resources{
CPUShares: 256,
CPUPeriod: 10000,
CPUShares: 128,
CPUQuota: 10000,
CPUPeriod: 100000,
},
}