dockerapi 0.19.0 → 0.20.0.pre.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/.github/workflows/cd.yml +32 -0
 - data/.github/workflows/{ruby.yml → ci.yml} +2 -4
 - data/Rakefile +4 -0
 - data/lib/docker/api/system.rb +2 -2
 - data/lib/docker/api/version.rb +2 -2
 - data/lib/dockerapi.rb +14 -13
 - metadata +7 -6
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ec38ed78e97d2efa65198915b8e5880daad75e3f01e88636ee3350fbf428e815
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 4ba1e53f3da7a273c46dd2c72ee22f0ad0902800ab39deaa0aea22e284dfdf1f
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 25ebe5a684d88813f59ce85a6ff64cd03e9b9c3ffc2ffba43f23fe4a40f6c58770a4a8e836dbac04fd212ff5d3261709726722dbc4369328130a753bdf9cf665
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: edd39fdc14951da6affc693dbcca46e4f488e54ad7fdb47ea2d3e08f9d1df1f87982174b4834867d915701bd55f813fa1e85c89f950a389c34c684baf4efc409
         
     | 
| 
         @@ -0,0 +1,32 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # This workflow uses actions that are not certified by GitHub.
         
     | 
| 
      
 2 
     | 
    
         
            +
            # They are provided by a third-party and are governed by
         
     | 
| 
      
 3 
     | 
    
         
            +
            # separate terms of service, privacy policy, and support
         
     | 
| 
      
 4 
     | 
    
         
            +
            # documentation.
         
     | 
| 
      
 5 
     | 
    
         
            +
            # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
         
     | 
| 
      
 6 
     | 
    
         
            +
            # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            name: CD
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            on:
         
     | 
| 
      
 11 
     | 
    
         
            +
              push:
         
     | 
| 
      
 12 
     | 
    
         
            +
                branches: [ master ]
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            jobs:
         
     | 
| 
      
 15 
     | 
    
         
            +
              release:
         
     | 
| 
      
 16 
     | 
    
         
            +
                runs-on: ubuntu-latest
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
                steps:
         
     | 
| 
      
 19 
     | 
    
         
            +
                - uses: actions/checkout@v3
         
     | 
| 
      
 20 
     | 
    
         
            +
                - name: Set up Ruby
         
     | 
| 
      
 21 
     | 
    
         
            +
                # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
         
     | 
| 
      
 22 
     | 
    
         
            +
                # change this to (see https://github.com/ruby/setup-ruby#versioning):
         
     | 
| 
      
 23 
     | 
    
         
            +
                # uses: ruby/setup-ruby@v1
         
     | 
| 
      
 24 
     | 
    
         
            +
                  uses: ruby/setup-ruby@21351ecc0a7c196081abca5dc55b08f085efe09a
         
     | 
| 
      
 25 
     | 
    
         
            +
                  with:
         
     | 
| 
      
 26 
     | 
    
         
            +
                    ruby-version: 2.6
         
     | 
| 
      
 27 
     | 
    
         
            +
                - name: Release
         
     | 
| 
      
 28 
     | 
    
         
            +
                  run: |
         
     | 
| 
      
 29 
     | 
    
         
            +
                    TAG=$(rake version | tr -d '"')
         
     | 
| 
      
 30 
     | 
    
         
            +
                    git tag $TAG
         
     | 
| 
      
 31 
     | 
    
         
            +
                    git push --tags
         
     | 
| 
      
 32 
     | 
    
         
            +
                    gh release create $TAG --generate-notes
         
     | 
| 
         @@ -5,11 +5,9 @@ 
     | 
|
| 
       5 
5 
     | 
    
         
             
            # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
         
     | 
| 
       6 
6 
     | 
    
         
             
            # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
     | 
    
         
            -
            name:  
     | 
| 
      
 8 
     | 
    
         
            +
            name: CI
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
10 
     | 
    
         
             
            on:
         
     | 
| 
       11 
     | 
    
         
            -
              push:
         
     | 
| 
       12 
     | 
    
         
            -
                branches: [ master ]
         
     | 
| 
       13 
11 
     | 
    
         
             
              pull_request:
         
     | 
| 
       14 
12 
     | 
    
         
             
                branches: [ master ]
         
     | 
| 
       15 
13 
     | 
    
         | 
| 
         @@ -38,7 +36,7 @@ jobs: 
     | 
|
| 
       38 
36 
     | 
    
         
             
                - name: Test Image
         
     | 
| 
       39 
37 
     | 
    
         
             
                  run: rspec spec/endpoints/image_spec.rb:1
         
     | 
| 
       40 
38 
     | 
    
         
             
                - name: Test Image authentication
         
     | 
| 
       41 
     | 
    
         
            -
                  run: rspec spec/endpoints/image_spec.rb: 
     | 
| 
      
 39 
     | 
    
         
            +
                  run: rspec spec/endpoints/image_spec.rb:196
         
     | 
| 
       42 
40 
     | 
    
         
             
                  continue-on-error: true
         
     | 
| 
       43 
41 
     | 
    
         
             
                - name: Test Container
         
     | 
| 
       44 
42 
     | 
    
         
             
                  run: rspec spec/endpoints/container_spec.rb
         
     | 
    
        data/Rakefile
    CHANGED
    
    
    
        data/lib/docker/api/system.rb
    CHANGED
    
    | 
         @@ -58,8 +58,8 @@ class Docker::API::System < Docker::API::Base 
     | 
|
| 
       58 
58 
     | 
    
         
             
                #
         
     | 
| 
       59 
59 
     | 
    
         
             
                # Docker API: GET /system/df
         
     | 
| 
       60 
60 
     | 
    
         
             
                # @see https://docs.docker.com/engine/api/v1.40/#operation/SystemDataUsage
         
     | 
| 
       61 
     | 
    
         
            -
                def df
         
     | 
| 
       62 
     | 
    
         
            -
                    @connection.get("/system/df")
         
     | 
| 
      
 61 
     | 
    
         
            +
                def df params = {}
         
     | 
| 
      
 62 
     | 
    
         
            +
                    @connection.get(build_path("/system/df", params))
         
     | 
| 
       63 
63 
     | 
    
         
             
                end
         
     | 
| 
       64 
64 
     | 
    
         | 
| 
       65 
65 
     | 
    
         
             
            end
         
     | 
    
        data/lib/docker/api/version.rb
    CHANGED
    
    
    
        data/lib/dockerapi.rb
    CHANGED
    
    | 
         @@ -39,14 +39,14 @@ module Docker 
     | 
|
| 
       39 
39 
     | 
    
         
             
                  "Docker::API::Image" => {
         
     | 
| 
       40 
40 
     | 
    
         
             
                    "build" => [:dockerfile, :t, :extrahosts, :remote, :q, :nocache, :cachefrom, :pull, :rm, :forcerm, :memory, :memswap, :cpushares, :cpusetcpus, :cpuperiod, :cpuquota, :buildargs, :shmsize, :squash, :labels, :networkmode, :platform, :target, :outputs],
         
     | 
| 
       41 
41 
     | 
    
         
             
                    "prune" => [:filters],
         
     | 
| 
       42 
     | 
    
         
            -
                    "list" => [:all, :filters, :digests],
         
     | 
| 
      
 42 
     | 
    
         
            +
                    "list" => [:all, :filters, "shared-size", :digests],
         
     | 
| 
       43 
43 
     | 
    
         
             
                    "search" => [:term, :limit, :filters],
         
     | 
| 
       44 
44 
     | 
    
         
             
                    "tag" => [:repo, :tag],
         
     | 
| 
       45 
45 
     | 
    
         
             
                    "remove" => [:force, :noprune],
         
     | 
| 
       46 
46 
     | 
    
         
             
                    "import" => [:quiet],
         
     | 
| 
       47 
47 
     | 
    
         
             
                    "push" => [:tag],
         
     | 
| 
       48 
48 
     | 
    
         
             
                    "commit" => [:container, :repo, :tag, :comment, :author, :pause, :changes],
         
     | 
| 
       49 
     | 
    
         
            -
                    "create" => [:fromImage, :fromSrc, :repo, :tag, :message, :platform],
         
     | 
| 
      
 49 
     | 
    
         
            +
                    "create" => [:fromImage, :fromSrc, :repo, :tag, :message, :changes, :platform],
         
     | 
| 
       50 
50 
     | 
    
         
             
                    "delete_cache" => [:all, "keep-storage", :filters]
         
     | 
| 
       51 
51 
     | 
    
         
             
                  },
         
     | 
| 
       52 
52 
     | 
    
         
             
                  "Docker::API::Container" => {
         
     | 
| 
         @@ -54,8 +54,8 @@ module Docker 
     | 
|
| 
       54 
54 
     | 
    
         
             
                    "details" => [:size],
         
     | 
| 
       55 
55 
     | 
    
         
             
                    "top" => [:ps_args],
         
     | 
| 
       56 
56 
     | 
    
         
             
                    "start" => [:detachKeys],
         
     | 
| 
       57 
     | 
    
         
            -
                    "stop" => [:t],
         
     | 
| 
       58 
     | 
    
         
            -
                    "restart" => [:t],
         
     | 
| 
      
 57 
     | 
    
         
            +
                    "stop" => [:signal, :t],
         
     | 
| 
      
 58 
     | 
    
         
            +
                    "restart" => [:signal, :t],
         
     | 
| 
       59 
59 
     | 
    
         
             
                    "kill" => [:signal],
         
     | 
| 
       60 
60 
     | 
    
         
             
                    "wait" => [:condition],
         
     | 
| 
       61 
61 
     | 
    
         
             
                    "rename" => [:name],
         
     | 
| 
         @@ -64,10 +64,10 @@ module Docker 
     | 
|
| 
       64 
64 
     | 
    
         
             
                    "remove" => [:v, :force, :link],
         
     | 
| 
       65 
65 
     | 
    
         
             
                    "logs" => [:follow, :stdout, :stderr, :since, :until, :timestamps, :tail],
         
     | 
| 
       66 
66 
     | 
    
         
             
                    "attach" => [:detachKeys, :logs, :stream, :stdin, :stdout, :stderr],
         
     | 
| 
       67 
     | 
    
         
            -
                    "stats" => [:stream],
         
     | 
| 
      
 67 
     | 
    
         
            +
                    "stats" => [:stream, "one-shot"],
         
     | 
| 
       68 
68 
     | 
    
         
             
                    "get_archive" => [:path],
         
     | 
| 
       69 
69 
     | 
    
         
             
                    "put_archive" => [:path, :noOverwriteDirNonDir, :copyUIDGID],
         
     | 
| 
       70 
     | 
    
         
            -
                    "create" => [:name]
         
     | 
| 
      
 70 
     | 
    
         
            +
                    "create" => [:name, :platform]
         
     | 
| 
       71 
71 
     | 
    
         
             
                  },
         
     | 
| 
       72 
72 
     | 
    
         
             
                  "Docker::API::Volume" => {
         
     | 
| 
       73 
73 
     | 
    
         
             
                    "list" => [:filters],
         
     | 
| 
         @@ -80,7 +80,8 @@ module Docker 
     | 
|
| 
       80 
80 
     | 
    
         
             
                    "prune" => [:filters]
         
     | 
| 
       81 
81 
     | 
    
         
             
                  },
         
     | 
| 
       82 
82 
     | 
    
         
             
                  "Docker::API::System" => {
         
     | 
| 
       83 
     | 
    
         
            -
                    "events" => [:since, :until, :filters]
         
     | 
| 
      
 83 
     | 
    
         
            +
                    "events" => [:since, :until, :filters],
         
     | 
| 
      
 84 
     | 
    
         
            +
                    "df" => [:type]
         
     | 
| 
       84 
85 
     | 
    
         
             
                  },
         
     | 
| 
       85 
86 
     | 
    
         
             
                  "Docker::API::Exec" => {
         
     | 
| 
       86 
87 
     | 
    
         
             
                    "resize" => [:w, :h]
         
     | 
| 
         @@ -95,7 +96,7 @@ module Docker 
     | 
|
| 
       95 
96 
     | 
    
         
             
                    "delete" => [:force]
         
     | 
| 
       96 
97 
     | 
    
         
             
                  },
         
     | 
| 
       97 
98 
     | 
    
         
             
                  "Docker::API::Service" => {
         
     | 
| 
       98 
     | 
    
         
            -
                    "list" => [:filters],
         
     | 
| 
      
 99 
     | 
    
         
            +
                    "list" => [:filters, :status],
         
     | 
| 
       99 
100 
     | 
    
         
             
                    "update" => [:version, :registryAuthFrom, :rollback],
         
     | 
| 
       100 
101 
     | 
    
         
             
                    "details" => [:insertDefaults],
         
     | 
| 
       101 
102 
     | 
    
         
             
                    "logs" => [:details, :follow, :stdout, :stderr, :since, :timestamps, :tail]
         
     | 
| 
         @@ -130,10 +131,10 @@ module Docker 
     | 
|
| 
       130 
131 
     | 
    
         
             
                  },
         
     | 
| 
       131 
132 
     | 
    
         
             
                  "Docker::API::Container" => {
         
     | 
| 
       132 
133 
     | 
    
         
             
                    "create" => [:Hostname,:Domainname,:User,:AttachStdin,:AttachStdout,:AttachStderr,:ExposedPorts,:Tty,:OpenStdin,:StdinOnce,:Env,:Cmd,:HealthCheck,:ArgsEscaped,:Image,:Volumes,:WorkingDir,:Entrypoint,:NetworkDisabled,:MacAddress,:OnBuild,:Labels,:StopSignal,:StopTimeout,:Shell,:HostConfig,:NetworkingConfig],
         
     | 
| 
       133 
     | 
    
         
            -
                    "update" => [:CpuShares, :Memory, :CgroupParent, :BlkioWeight, :BlkioWeightDevice, : 
     | 
| 
      
 134 
     | 
    
         
            +
                    "update" => [:CpuShares, :Memory, :CgroupParent, :BlkioWeight, :BlkioWeightDevice, :BlkioDeviceReadBps, :BlkioDeviceWriteBps, :BlkioDeviceReadIOps, :BlkioDeviceWriteIOps, :CpuPeriod, :CpuQuota, :CpuRealtimePeriod, :CpuRealtimeRuntime, :CpusetCpus, :CpusetMems, :Devices, :DeviceCgroupRules, :DeviceRequest, :Memory, :KernelMemoryTCP, :MemoryReservation, :MemorySwap, :MemorySwappiness, :NanoCPUs, :OomKillDisable, :Init, :PidsLimit, :ULimits, :CpuCount, :CpuPercent, :IOMaximumIOps, :IOMaximumBandwidth, :RestartPolicy]
         
     | 
| 
       134 
135 
     | 
    
         
             
                  },
         
     | 
| 
       135 
136 
     | 
    
         
             
                  "Docker::API::Volume" => {
         
     | 
| 
       136 
     | 
    
         
            -
                    "create" => [:Name, :Driver, :DriverOpts, :Labels]
         
     | 
| 
      
 137 
     | 
    
         
            +
                    "create" => [:Name, :Driver, :DriverOpts, :Labels, :ClusterVolumeSpec]
         
     | 
| 
       137 
138 
     | 
    
         
             
                  },
         
     | 
| 
       138 
139 
     | 
    
         
             
                  "Docker::API::Network" => {
         
     | 
| 
       139 
140 
     | 
    
         
             
                    "create" => [:Name, :CheckDuplicate, :Driver, :Internal, :Attachable, :Ingress, :IPAM, :EnableIPv6, :Options, :Labels],
         
     | 
| 
         @@ -144,8 +145,8 @@ module Docker 
     | 
|
| 
       144 
145 
     | 
    
         
             
                    "auth" => [:username, :password, :email, :serveraddress, :identitytoken]
         
     | 
| 
       145 
146 
     | 
    
         
             
                  },
         
     | 
| 
       146 
147 
     | 
    
         
             
                  "Docker::API::Exec" => {
         
     | 
| 
       147 
     | 
    
         
            -
                    "create" => [:AttachStdin, :AttachStdout, :AttachStderr, :DetachKeys, :Tty, :Env, :Cmd, :Privileged, :User, :WorkingDir],
         
     | 
| 
       148 
     | 
    
         
            -
                    "start" => [:Detach, :Tty]
         
     | 
| 
      
 148 
     | 
    
         
            +
                    "create" => [:AttachStdin, :AttachStdout, :AttachStderr, :ConsoleSize, :DetachKeys, :Tty, :Env, :Cmd, :Privileged, :User, :WorkingDir],
         
     | 
| 
      
 149 
     | 
    
         
            +
                    "start" => [:Detach, :Tty, :ConsoleSize]
         
     | 
| 
       149 
150 
     | 
    
         
             
                  },
         
     | 
| 
       150 
151 
     | 
    
         
             
                  "Docker::API::Swarm" => {
         
     | 
| 
       151 
152 
     | 
    
         
             
                    "init" => [:ListenAddr, :AdvertiseAddr, :DataPathAddr, :DataPathPort, :DefaultAddrPool, :ForceNewCluster, :SubnetSize, :Spec],
         
     | 
| 
         @@ -166,7 +167,7 @@ module Docker 
     | 
|
| 
       166 
167 
     | 
    
         
             
                  },
         
     | 
| 
       167 
168 
     | 
    
         
             
                  "Docker::API::Config" => {
         
     | 
| 
       168 
169 
     | 
    
         
             
                    "create" => [:Name, :Labels, :Data, :Templating],
         
     | 
| 
       169 
     | 
    
         
            -
                    "update" => [:Name, :Labels, :Data, : 
     | 
| 
      
 170 
     | 
    
         
            +
                    "update" => [:Name, :Labels, :Data, :Templating]
         
     | 
| 
       170 
171 
     | 
    
         
             
                  }
         
     | 
| 
       171 
172 
     | 
    
         
             
                }
         
     | 
| 
       172 
173 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: dockerapi
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.20.0.pre.rc2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Alysson A. Costa
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2023-07-12 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: excon
         
     | 
| 
         @@ -33,7 +33,8 @@ executables: [] 
     | 
|
| 
       33 
33 
     | 
    
         
             
            extensions: []
         
     | 
| 
       34 
34 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       35 
35 
     | 
    
         
             
            files:
         
     | 
| 
       36 
     | 
    
         
            -
            - ".github/workflows/ 
     | 
| 
      
 36 
     | 
    
         
            +
            - ".github/workflows/cd.yml"
         
     | 
| 
      
 37 
     | 
    
         
            +
            - ".github/workflows/ci.yml"
         
     | 
| 
       37 
38 
     | 
    
         
             
            - ".gitignore"
         
     | 
| 
       38 
39 
     | 
    
         
             
            - ".rspec"
         
     | 
| 
       39 
40 
     | 
    
         
             
            - CHANGELOG.md
         
     | 
| 
         @@ -83,11 +84,11 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       83 
84 
     | 
    
         
             
                  version: 2.3.0
         
     | 
| 
       84 
85 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       85 
86 
     | 
    
         
             
              requirements:
         
     | 
| 
       86 
     | 
    
         
            -
              - - " 
     | 
| 
      
 87 
     | 
    
         
            +
              - - ">"
         
     | 
| 
       87 
88 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       88 
     | 
    
         
            -
                  version:  
     | 
| 
      
 89 
     | 
    
         
            +
                  version: 1.3.1
         
     | 
| 
       89 
90 
     | 
    
         
             
            requirements: []
         
     | 
| 
       90 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 91 
     | 
    
         
            +
            rubygems_version: 3.3.5
         
     | 
| 
       91 
92 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       92 
93 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       93 
94 
     | 
    
         
             
            summary: Interact with Docker API from Ruby code.
         
     |