Skip to content

Commit e3387a1

Browse files
Initial files!
0 parents  commit e3387a1

2,003 files changed

Lines changed: 596020 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Jitesoft
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# docker-multi-plugin
2+
3+
A simple CLI plugin (created mainly to test the capabilities of the go docker cli plugin api) which
4+
allows to push and tag images with multiple arguments in one command!
5+
6+
Ever found the following annoying?
7+
8+
```bash
9+
docker tag myimage:latest myimage:1.0.1.1.0
10+
docker tag myimage:latest myimage:1.0.1.1
11+
docker tag myimage:latest myimage:1.0.1
12+
docker tag myimage:latest myimage:1.0
13+
docker tag myimage:latest myimage:1
14+
15+
docker push myimage:latest
16+
docker push myimage:1.0.1.1.0
17+
docker push myimage:1.0.1.1
18+
docker push myimage:1.0.1
19+
docker push myimage:1.0
20+
docker push myimage:1
21+
```
22+
23+
Well, with the `multi` cli plugin, you could instead do this!
24+
25+
```bash
26+
docker multi tag myimage:latest myimage:1.0.1.1.0 myimage:latest myimage:1.0.1.1 myimage:latest myimage:1.0.1 myimage:latest myimage:1.0 myimage:latest myimage:1
27+
docker multi push myimage:latest myimage:1.0.1.1.0 myimage:latest myimage:1.0.1.1 myimage:latest myimage:1.0.1 myimage:latest myimage:1.0 myimage:latest myimage:1
28+
```
29+
30+
Awesome right?!
31+
32+
## License
33+
34+
MIT
35+
36+
No warranty, no liability.

go.mod

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
module github.com/jitesoft/docker-multi-plugin
2+
3+
go 1.13
4+
5+
require (
6+
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect
7+
github.com/Microsoft/go-winio v0.4.14 // indirect
8+
github.com/Microsoft/hcsshim v0.8.6 // indirect
9+
github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412 // indirect
10+
github.com/containerd/console v0.0.0-20181022165439-0650fd9eeb50 // indirect
11+
github.com/containerd/containerd v1.3.0-rc.2 // indirect
12+
github.com/containerd/continuity v0.0.0-20190827140505-75bee3e2ccb6 // indirect
13+
github.com/containerd/fifo v0.0.0-20190816180239-bda0ff6ed73c // indirect
14+
github.com/containerd/ttrpc v0.0.0-20190828172938-92c8520ef9f8 // indirect
15+
github.com/containerd/typeurl v0.0.0-20190911142611-5eb25027c9fd // indirect
16+
github.com/docker/cli v0.0.0-20190822175708-578ab52ece34
17+
github.com/docker/distribution v2.7.1-0.20190205005809-0d3efadf0154+incompatible // indirect
18+
github.com/docker/docker v1.4.2-0.20190511020111-3998dffb806f // indirect
19+
github.com/docker/docker-credential-helpers v0.6.3 // indirect
20+
github.com/docker/go v1.5.1-1 // indirect
21+
github.com/docker/go-connections v0.4.0 // indirect
22+
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
23+
github.com/docker/go-metrics v0.0.1 // indirect
24+
github.com/docker/go-units v0.4.0 // indirect
25+
github.com/gogo/googleapis v1.3.0 // indirect
26+
github.com/gorilla/mux v1.7.3 // indirect
27+
github.com/hashicorp/go-version v1.2.0 // indirect
28+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
29+
github.com/miekg/pkcs11 v1.0.3 // indirect
30+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
31+
github.com/modern-go/reflect2 v1.0.1 // indirect
32+
github.com/morikuni/aec v0.0.0-20170113033406-39771216ff4c // indirect
33+
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
34+
github.com/opencontainers/image-spec v1.0.1 // indirect
35+
github.com/opencontainers/runc v0.1.1 // indirect
36+
github.com/opencontainers/runtime-spec v1.0.1 // indirect
37+
github.com/sirupsen/logrus v1.4.2
38+
github.com/spf13/cobra v0.0.3
39+
github.com/spf13/pflag v1.0.3 // indirect
40+
github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2 // indirect
41+
github.com/theupdateframework/notary v0.6.1 // indirect
42+
golang.org/x/net v0.0.0-20190923162816-aa69164e4478 // indirect
43+
google.golang.org/grpc v1.23.1 // indirect
44+
vbom.ml/util v0.0.0-20180919145318-efcd4e0f9787 // indirect
45+
)

0 commit comments

Comments
 (0)