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
+6
View File
@@ -122,11 +122,17 @@ func getThisContainerId() {
// https://docs.docker.com/engine/api/sdk/examples/
func deployWorker(image string, identifier string, env []string) {
// Binds is the actual "-v" volume.
// Max 20% CPU every second
hostConfig := &container.HostConfig{
LogConfig: container.LogConfig{
Type: "json-file",
Config: map[string]string{},
},
Resources: container.Resources{
CPUShares: 256,
CPUQuota: 25000,
CPUPeriod: 100000,
},
Binds: []string{
"/var/run/docker.sock:/var/run/docker.sock:rw",
},
+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,
},
}