-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docker personality to support API 1.25
1. Updated all the backend interfaces within vic/lib/apiservers/backends 2. Added hollowed out swarm.go and backends/exec/SwarmBackend.go 3. Updated main.go 4. Added robot scripts for docker secret, checkpoint, deploy, node, plugin, service, stack, swarm.
- Loading branch information
sflxn
committed
Feb 10, 2017
1 parent
f54b6ef
commit 3521f72
Showing
54 changed files
with
1,361 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"Services": { | ||
"db": { | ||
"Env": [ | ||
"PGDATA=/var/lib/postgresql/data/data" | ||
], | ||
"Image": "postgres@sha256:9db811348585075eddb7b6938fa65c0236fe8e4f7feaf3c2890a3c4b7f4c9bfc", | ||
"Networks": [ | ||
"default" | ||
] | ||
}, | ||
"redis": { | ||
"Image": "redis@sha256:f1ed3708f538b537eb9c2a7dd50dc90a706f7debd7e1196c9264edeea521a86d", | ||
"Networks": [ | ||
"default" | ||
], | ||
"Ports": [ | ||
{ | ||
"Port": 6379, | ||
"Protocol": "tcp" | ||
} | ||
] | ||
}, | ||
"result": { | ||
"Args": [ | ||
"nodemon", | ||
"--debug", | ||
"server.js" | ||
], | ||
"Image": "victest/vote-result@sha256:413fcc5d11e4426d9e5ec512056aeeb7fa83acc61eec2ed6346e8d30d56b7ae7", | ||
"Networks": [ | ||
"default" | ||
], | ||
"Ports": [ | ||
{ | ||
"Port": 80, | ||
"Protocol": "tcp" | ||
}, | ||
{ | ||
"Port": 5858, | ||
"Protocol": "tcp" | ||
} | ||
] | ||
}, | ||
"vote": { | ||
"Args": [ | ||
"python", | ||
"app.py" | ||
], | ||
"Image": "victest/vote@sha256:13037f3373a3b10dfeac4f323b38a215d9665d88d72b1bb5fe7baef83c3b34ad", | ||
"Networks": [ | ||
"default" | ||
], | ||
"Ports": [ | ||
{ | ||
"Port": 80, | ||
"Protocol": "tcp" | ||
} | ||
] | ||
}, | ||
"worker": { | ||
"Image": "victest/vote-worker@sha256:70cc69d1e91b8c23bbfd7515572c804c8b954c227da0e55e1131c367929f79dd", | ||
"Networks": [ | ||
"default" | ||
] | ||
} | ||
}, | ||
"Version": "0.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright 2016 VMware, Inc. All Rights Reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package backends | ||
|
||
import ( | ||
"fmt" | ||
"io" | ||
|
||
"github.com/docker/docker/api/types" | ||
"github.com/docker/docker/api/types/backend" | ||
"golang.org/x/net/context" | ||
) | ||
|
||
type Builder struct { | ||
|
||
} | ||
|
||
func (b *Builder) BuildFromContext(ctx context.Context, src io.ReadCloser, remote string, buildOptions *types.ImageBuildOptions, pg backend.ProgressWriter) (string, error) { | ||
return "", fmt.Errorf("%s does not yet implement BuildFromContext", ProductName()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright 2016 VMware, Inc. All Rights Reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package backends | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/docker/docker/api/types" | ||
) | ||
|
||
type Checkpoint struct { | ||
} | ||
|
||
func NewCheckpointBackend() *Checkpoint { | ||
return &Checkpoint{} | ||
} | ||
|
||
func (c *Checkpoint) CheckpointCreate(container string, config types.CheckpointCreateOptions) error { | ||
return fmt.Errorf("%s does not yet implement checkpointing", ProductName()) | ||
} | ||
|
||
func (c *Checkpoint) CheckpointDelete(container string, config types.CheckpointDeleteOptions) error { | ||
return fmt.Errorf("%s does not yet implement checkpointing", ProductName()) | ||
} | ||
|
||
func (c *Checkpoint) CheckpointList(container string, config types.CheckpointListOptions) ([]types.Checkpoint, error) { | ||
return nil, fmt.Errorf("%s does not yet implement checkpointing", ProductName()) | ||
} |
Oops, something went wrong.