bigrig 0.0.0 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +20 -0
  5. data/.travis.yml +3 -0
  6. data/CHANGELOG.md +19 -0
  7. data/Gemfile +2 -0
  8. data/Gemfile.lock +84 -0
  9. data/LICENSE +28 -0
  10. data/README.md +191 -0
  11. data/Rakefile +10 -0
  12. data/bigrig.gemspec +29 -0
  13. data/bin/bigrig +113 -0
  14. data/lib/bigrig/actions/destroy_action.rb +21 -0
  15. data/lib/bigrig/actions/dev_action.rb +19 -0
  16. data/lib/bigrig/actions/log_action.rb +45 -0
  17. data/lib/bigrig/actions/run_action.rb +14 -0
  18. data/lib/bigrig/actions/ship_action.rb +51 -0
  19. data/lib/bigrig/actions.rb +5 -0
  20. data/lib/bigrig/dependency_graph.rb +21 -0
  21. data/lib/bigrig/descriptor.rb +43 -0
  22. data/lib/bigrig/docker_adapter.rb +129 -0
  23. data/lib/bigrig/models/application.rb +22 -0
  24. data/lib/bigrig/models/base_model.rb +7 -0
  25. data/lib/bigrig/models/container.rb +40 -0
  26. data/lib/bigrig/models.rb +3 -0
  27. data/lib/bigrig/output_parser.rb +52 -0
  28. data/lib/bigrig/runner.rb +94 -0
  29. data/lib/bigrig/version.rb +3 -0
  30. data/lib/bigrig.rb +8 -0
  31. data/spec/bigrig/actions/destroy_action_spec.rb +55 -0
  32. data/spec/bigrig/actions/dev_action_spec.rb +17 -0
  33. data/spec/bigrig/actions/log_action_spec.rb +33 -0
  34. data/spec/bigrig/actions/run_action_spec.rb +270 -0
  35. data/spec/bigrig/actions/ship_action_spec.rb +82 -0
  36. data/spec/bigrig/dependency_graph_spec.rb +19 -0
  37. data/spec/bigrig/descriptor_spec.rb +56 -0
  38. data/spec/bigrig/docker_adapter_spec.rb +409 -0
  39. data/spec/bigrig/models/application_spec.rb +32 -0
  40. data/spec/bigrig/models/container_spec.rb +115 -0
  41. data/spec/bigrig/output_parser_spec.rb +71 -0
  42. data/spec/bigrig_spec.rb +249 -0
  43. data/spec/data/addscontainer.json +24 -0
  44. data/spec/data/build/Dockerfile +2 -0
  45. data/spec/data/build/test +0 -0
  46. data/spec/data/dev.json +26 -0
  47. data/spec/data/duplicate.json +13 -0
  48. data/spec/data/env.json +12 -0
  49. data/spec/data/hosts_ip.json +12 -0
  50. data/spec/data/hosts_name.json +11 -0
  51. data/spec/data/links.json +13 -0
  52. data/spec/data/log.json +8 -0
  53. data/spec/data/multiple.json +13 -0
  54. data/spec/data/path.json +5 -0
  55. data/spec/data/ports.json +9 -0
  56. data/spec/data/profiles.json +24 -0
  57. data/spec/data/ship.json +5 -0
  58. data/spec/data/single.json +8 -0
  59. data/spec/data/tagandpath.json +24 -0
  60. data/spec/data/tiny-image.tar +0 -0
  61. data/spec/data/volumes.json +13 -0
  62. data/spec/spec_helper.rb +104 -0
  63. data/spec/support/bigrig_vcr +8 -0
  64. data/spec/support/vcr.rb +15 -0
  65. data/spec/vcr/Bigrig_DestroyAction/_perform/given_json_with_a_single_container/and_the_container_has_exited/should_remove_the_container.yml +392 -0
  66. data/spec/vcr/Bigrig_DestroyAction/_perform/given_json_with_a_single_container/and_the_container_is_running/kills_and_removes_the_container.yml +418 -0
  67. data/spec/vcr/Bigrig_DockerAdapter/_build/builds_the_given_directory.yml +63 -0
  68. data/spec/vcr/Bigrig_DockerAdapter/_build/passes_build_input_to_a_block.yml +35 -0
  69. data/spec/vcr/Bigrig_DockerAdapter/_container_exists_/when_the_container_does_not_exist/is_false.yml +115 -0
  70. data/spec/vcr/Bigrig_DockerAdapter/_container_exists_/when_the_container_exists/is_true.yml +82 -0
  71. data/spec/vcr/Bigrig_DockerAdapter/_image_id_by_tag/when_the_image_does_not_exist/raise_a_ImageNotFoundError.yml +172 -0
  72. data/spec/vcr/Bigrig_DockerAdapter/_image_id_by_tag/when_the_image_exists/returns_the_image_id.yml +148 -0
  73. data/spec/vcr/Bigrig_DockerAdapter/_kill/given_the_container_does_not_exist/should_raise_an_error.yml +115 -0
  74. data/spec/vcr/Bigrig_DockerAdapter/_kill/given_the_container_is_running/should_kill_the_container.yml +200 -0
  75. data/spec/vcr/Bigrig_DockerAdapter/_logs/streams_logs_to_a_block.yml +163 -0
  76. data/spec/vcr/Bigrig_DockerAdapter/_pull/given_a_block_to_capture_output/should_capture_output.yml +64 -0
  77. data/spec/vcr/Bigrig_DockerAdapter/_pull/given_the_repo_does_not_exist/raises_a_RepoNotFoundError.yml +30 -0
  78. data/spec/vcr/Bigrig_DockerAdapter/_pull/given_the_repo_exists/returns_the_image_id.yml +92 -0
  79. data/spec/vcr/Bigrig_DockerAdapter/_push/given_credentials/will_pass_login_and_password.yml +254 -0
  80. data/spec/vcr/Bigrig_DockerAdapter/_push/should_push_the_image.yml +482 -0
  81. data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_does_not_exist/raises_a_ContainerNotFoundError.yml +227 -0
  82. data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_exists/should_remove_the_container.yml +222 -0
  83. data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_is_running/raises_a_ContainerRunningError.yml +80 -0
  84. data/spec/vcr/Bigrig_DockerAdapter/_remove_image/when_the_image_doesnt_exist/raises_an_error.yml +115 -0
  85. data/spec/vcr/Bigrig_DockerAdapter/_remove_image/when_the_image_exists/removes_the_image.yml +199 -0
  86. data/spec/vcr/Bigrig_DockerAdapter/_run/given_an_image_id_that_exists/and_a_name/starts_the_container_with_the_right_name.yml +204 -0
  87. data/spec/vcr/Bigrig_DockerAdapter/_run/given_an_image_id_that_exists/and_a_name_and_env_variables/starts_the_container_with_env_set.yml +204 -0
  88. data/spec/vcr/Bigrig_DockerAdapter/_run/given_an_image_id_that_exists/and_a_name_and_ports/starts_the_container_with_ports_exposed.yml +230 -0
  89. data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_does_not_exist/returns_false.yml +115 -0
  90. data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_is_not_running/returns_false.yml +82 -0
  91. data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_is_running/returns_true.yml +103 -0
  92. data/spec/vcr/Bigrig_DockerAdapter/_tag/should_tag_the_image.yml +290 -0
  93. data/spec/vcr/Bigrig_LogAction/_perform/follows_the_log.yml +163 -0
  94. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_a_path/builds_the_image_before_starting_it.yml +310 -0
  95. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_hosts_by_ip/should_pass_hosts_to_container.yml +430 -0
  96. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_hosts_by_name/should_lookup_ips_for_hosts_with_a_hostname.yml +430 -0
  97. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_links/should_pass_links_to_the_right_container.yml +805 -0
  98. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_multiple_containers/launches_both_containers_in_parallel.yml +731 -0
  99. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_multiple_containers/spins_up_multiple_containers.yml +805 -0
  100. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_one_container/should_spin_up_a_single_container.yml +404 -0
  101. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_one_container/when_a_dead_container_exists/should_remove_existing_containers.yml +329 -0
  102. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes_from/should_pass_volumes_from_to_the_right_container.yml +805 -0
  103. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes_from/starts_the_dependant_container_last.yml +731 -0
  104. data/spec/vcr/Bigrig_RunAction/_perform/when_activating_profiles_that_do_not_exist/ignores_the_missing_profile.yml +409 -0
  105. data/spec/vcr/Bigrig_RunAction/_perform/with_a_file_with_active_profiles/uses_the_overridden_image.yml +432 -0
  106. data/spec/vcr/bigrig/destroy/spec/data/single_json/kills_the_container.yml +166 -0
  107. data/spec/vcr/bigrig/dev/spec/data/dev_json/activates_the_dev_profile.yml +37 -0
  108. data/spec/vcr/bigrig/dev/spec/data/dev_json/destroys_containers_on_exit.yml +227 -0
  109. data/spec/vcr/bigrig/dev/spec/data/dev_json/starts_the_containers.yml +107 -0
  110. data/spec/vcr/bigrig/logs/spec/data/log_json/tails_the_logs.yml +163 -0
  111. data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/leaves_existing_env_values_alone.yml +110 -0
  112. data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_env.yml +110 -0
  113. data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_tag.yml +103 -0
  114. data/spec/vcr/bigrig/run/spec/data/single_json/sends_the_name_of_the_container_to_stdout.yml +75 -0
  115. data/spec/vcr/bigrig/run/spec/data/single_json/starts_the_container.yml +101 -0
  116. data/spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/-c/cleans_the_image_when_its_done.yml +212 -0
  117. data/spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/builds_and_pushes_the_image.yml +128 -0
  118. data/spec/vcr/bigrig_bin_bigrig_destroy_spec/data/single_json_kills_the_container.yml +179 -0
  119. data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_activates_the_dev_profile.yml +1068 -0
  120. data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_destroys_containers_on_exit.yml +1070 -0
  121. data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_starts_the_containers.yml +1068 -0
  122. data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_tails_the_logs.yml +1075 -0
  123. data/spec/vcr/bigrig_bin_bigrig_logs_spec/data/log_json_tails_the_logs.yml +69 -0
  124. data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_leaves_existing_env_values_alone.yml +306 -0
  125. data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_env.yml +306 -0
  126. data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_tag.yml +306 -0
  127. data/spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_sends_the_name_of_the_container_to_stdout.yml +306 -0
  128. data/spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_starts_the_container.yml +306 -0
  129. data/spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_-c_cleans_the_image_when_its_done.yml +335 -0
  130. data/spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_builds_and_pushes_the_image.yml +285 -0
  131. data/test/dev/shipper.json +24 -0
  132. data/test/logs/bigrig.json +6 -0
  133. data/test/logs/container1/Dockerfile +4 -0
  134. data/test/logs/container1/run.sh +7 -0
  135. data/test/logs/container2/Dockerfile +4 -0
  136. data/test/logs/container2/run.sh +7 -0
  137. data/test/ship/bigrig-1.2.3.json +1 -0
  138. data/test/ship/bigrig.json +5 -0
  139. data/test/ship/registry.json +11 -0
  140. data/test/ship/ship/Dockerfile +4 -0
  141. data/test/ship/ship/run.sh +6 -0
  142. data/test/volumes_from/exports_volumes/Dockerfile +8 -0
  143. data/test/volumes_from/exports_volumes/index.html +8 -0
  144. data/test/volumes_from/exports_volumes/run.sh +7 -0
  145. data/test/volumes_from/shipper.json +14 -0
  146. metadata +278 -8
@@ -0,0 +1,230 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: "<DOCKER_HOST>/v1.16/containers/create?name=with_ports"
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"Env":[],"Image":"hawknewton/show-env","ExposedPorts":{"80/tcp":{},"70/tcp":{}}}'
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.20.0
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message:
18
+ headers:
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Thu, 12 Mar 2015 21:38:05 GMT
23
+ Content-Length:
24
+ - '90'
25
+ body:
26
+ encoding: UTF-8
27
+ string: |
28
+ {"Id":"74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e","Warnings":null}
29
+ http_version:
30
+ recorded_at: Thu, 12 Mar 2015 21:38:07 GMT
31
+ - request:
32
+ method: post
33
+ uri: "<DOCKER_HOST>/v1.16/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/start"
34
+ body:
35
+ encoding: UTF-8
36
+ string: '{"Links":null,"ExtraHosts":[],"PortBindings":{"80/tcp":[{"HostPort":"59352"}],"70/tcp":[{}]},"VolumesFrom":null}'
37
+ headers:
38
+ User-Agent:
39
+ - Swipely/Docker-API 1.20.0
40
+ Content-Type:
41
+ - application/json
42
+ response:
43
+ status:
44
+ code: 204
45
+ message:
46
+ headers:
47
+ Date:
48
+ - Thu, 12 Mar 2015 21:38:06 GMT
49
+ body:
50
+ encoding: UTF-8
51
+ string: ''
52
+ http_version:
53
+ recorded_at: Thu, 12 Mar 2015 21:38:08 GMT
54
+ - request:
55
+ method: get
56
+ uri: "<DOCKER_HOST>/v1.16/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/json"
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ''
60
+ headers:
61
+ User-Agent:
62
+ - Swipely/Docker-API 1.20.0
63
+ Content-Type:
64
+ - text/plain
65
+ response:
66
+ status:
67
+ code: 200
68
+ message:
69
+ headers:
70
+ Content-Type:
71
+ - application/json
72
+ Date:
73
+ - Thu, 12 Mar 2015 21:38:06 GMT
74
+ body:
75
+ encoding: UTF-8
76
+ string: |
77
+ {"AppArmorProfile":"","Args":["-c","ruby /code/server.rb"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":null,"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":["/bin/sh","-c","ruby /code/server.rb"],"Env":["PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","RUBY_MAJOR=2.1","RUBY_VERSION=2.1.3","GEM_HOME=/usr/local/bundle","BUNDLE_APP_CONFIG=/usr/local/bundle"],"ExposedPorts":{"70/tcp":{},"80/tcp":{}},"Hostname":"74881c3c7a3e","Image":"hawknewton/show-env","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-03-12T21:38:05.557240852Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":{"70/tcp":[{"HostIp":"","HostPort":""}],"80/tcp":[{"HostIp":"","HostPort":"59352"}]},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/hosts","Id":"74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/with_ports","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.100","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:264","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:64","PortMapping":null,"Ports":{"70/tcp":[{"HostIp":"0.0.0.0","HostPort":"49167"}],"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"59352"}]}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11805,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:06.221689Z"},"Volumes":{},"VolumesRW":{}}
78
+ http_version:
79
+ recorded_at: Thu, 12 Mar 2015 21:38:08 GMT
80
+ - request:
81
+ method: get
82
+ uri: "<DOCKER_HOST>/v1.16/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/json"
83
+ body:
84
+ encoding: US-ASCII
85
+ string: ''
86
+ headers:
87
+ User-Agent:
88
+ - Swipely/Docker-API 1.20.0
89
+ Content-Type:
90
+ - text/plain
91
+ response:
92
+ status:
93
+ code: 200
94
+ message:
95
+ headers:
96
+ Content-Type:
97
+ - application/json
98
+ Date:
99
+ - Thu, 12 Mar 2015 21:38:06 GMT
100
+ body:
101
+ encoding: UTF-8
102
+ string: |
103
+ {"AppArmorProfile":"","Args":["-c","ruby /code/server.rb"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":null,"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":["/bin/sh","-c","ruby /code/server.rb"],"Env":["PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","RUBY_MAJOR=2.1","RUBY_VERSION=2.1.3","GEM_HOME=/usr/local/bundle","BUNDLE_APP_CONFIG=/usr/local/bundle"],"ExposedPorts":{"70/tcp":{},"80/tcp":{}},"Hostname":"74881c3c7a3e","Image":"hawknewton/show-env","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-03-12T21:38:05.557240852Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":{"70/tcp":[{"HostIp":"","HostPort":""}],"80/tcp":[{"HostIp":"","HostPort":"59352"}]},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/hosts","Id":"74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/with_ports","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.100","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:264","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:64","PortMapping":null,"Ports":{"70/tcp":[{"HostIp":"0.0.0.0","HostPort":"49167"}],"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"59352"}]}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11805,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:06.221689Z"},"Volumes":{},"VolumesRW":{}}
104
+ http_version:
105
+ recorded_at: Thu, 12 Mar 2015 21:38:08 GMT
106
+ - request:
107
+ method: get
108
+ uri: "<DOCKER_HOST>/v1.16/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/json"
109
+ body:
110
+ encoding: US-ASCII
111
+ string: ''
112
+ headers:
113
+ User-Agent:
114
+ - Swipely/Docker-API 1.20.0
115
+ Content-Type:
116
+ - text/plain
117
+ response:
118
+ status:
119
+ code: 200
120
+ message:
121
+ headers:
122
+ Content-Type:
123
+ - application/json
124
+ Date:
125
+ - Thu, 12 Mar 2015 21:38:06 GMT
126
+ body:
127
+ encoding: UTF-8
128
+ string: |
129
+ {"AppArmorProfile":"","Args":["-c","ruby /code/server.rb"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":null,"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":["/bin/sh","-c","ruby /code/server.rb"],"Env":["PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","RUBY_MAJOR=2.1","RUBY_VERSION=2.1.3","GEM_HOME=/usr/local/bundle","BUNDLE_APP_CONFIG=/usr/local/bundle"],"ExposedPorts":{"70/tcp":{},"80/tcp":{}},"Hostname":"74881c3c7a3e","Image":"hawknewton/show-env","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-03-12T21:38:05.557240852Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":{"70/tcp":[{"HostIp":"","HostPort":""}],"80/tcp":[{"HostIp":"","HostPort":"59352"}]},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/hosts","Id":"74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/with_ports","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.100","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:264","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:64","PortMapping":null,"Ports":{"70/tcp":[{"HostIp":"0.0.0.0","HostPort":"49167"}],"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"59352"}]}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11805,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:06.221689Z"},"Volumes":{},"VolumesRW":{}}
130
+ http_version:
131
+ recorded_at: Thu, 12 Mar 2015 21:38:08 GMT
132
+ - request:
133
+ method: get
134
+ uri: "<DOCKER_HOST>/v1.16/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/json"
135
+ body:
136
+ encoding: US-ASCII
137
+ string: ''
138
+ headers:
139
+ User-Agent:
140
+ - Swipely/Docker-API 1.20.0
141
+ Content-Type:
142
+ - text/plain
143
+ response:
144
+ status:
145
+ code: 200
146
+ message:
147
+ headers:
148
+ Content-Type:
149
+ - application/json
150
+ Date:
151
+ - Thu, 12 Mar 2015 21:38:06 GMT
152
+ body:
153
+ encoding: UTF-8
154
+ string: |
155
+ {"AppArmorProfile":"","Args":["-c","ruby /code/server.rb"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":null,"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":["/bin/sh","-c","ruby /code/server.rb"],"Env":["PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","RUBY_MAJOR=2.1","RUBY_VERSION=2.1.3","GEM_HOME=/usr/local/bundle","BUNDLE_APP_CONFIG=/usr/local/bundle"],"ExposedPorts":{"70/tcp":{},"80/tcp":{}},"Hostname":"74881c3c7a3e","Image":"hawknewton/show-env","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-03-12T21:38:05.557240852Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":{"70/tcp":[{"HostIp":"","HostPort":""}],"80/tcp":[{"HostIp":"","HostPort":"59352"}]},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/hosts","Id":"74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/with_ports","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.100","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:264","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:64","PortMapping":null,"Ports":{"70/tcp":[{"HostIp":"0.0.0.0","HostPort":"49167"}],"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"59352"}]}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11805,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:06.221689Z"},"Volumes":{},"VolumesRW":{}}
156
+ http_version:
157
+ recorded_at: Thu, 12 Mar 2015 21:38:08 GMT
158
+ - request:
159
+ method: get
160
+ uri: "<DOCKER_HOST>/v1.16/containers/with_ports/json"
161
+ body:
162
+ encoding: US-ASCII
163
+ string: ''
164
+ headers:
165
+ User-Agent:
166
+ - Swipely/Docker-API 1.20.0
167
+ Content-Type:
168
+ - text/plain
169
+ response:
170
+ status:
171
+ code: 200
172
+ message:
173
+ headers:
174
+ Content-Type:
175
+ - application/json
176
+ Date:
177
+ - Thu, 12 Mar 2015 21:38:06 GMT
178
+ body:
179
+ encoding: UTF-8
180
+ string: |
181
+ {"AppArmorProfile":"","Args":["-c","ruby /code/server.rb"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":null,"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":["/bin/sh","-c","ruby /code/server.rb"],"Env":["PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","RUBY_MAJOR=2.1","RUBY_VERSION=2.1.3","GEM_HOME=/usr/local/bundle","BUNDLE_APP_CONFIG=/usr/local/bundle"],"ExposedPorts":{"70/tcp":{},"80/tcp":{}},"Hostname":"74881c3c7a3e","Image":"hawknewton/show-env","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-03-12T21:38:05.557240852Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":{"70/tcp":[{"HostIp":"","HostPort":""}],"80/tcp":[{"HostIp":"","HostPort":"59352"}]},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/hosts","Id":"74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/with_ports","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.100","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:264","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:64","PortMapping":null,"Ports":{"70/tcp":[{"HostIp":"0.0.0.0","HostPort":"49167"}],"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"59352"}]}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11805,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:06.221689Z"},"Volumes":{},"VolumesRW":{}}
182
+ http_version:
183
+ recorded_at: Thu, 12 Mar 2015 21:38:08 GMT
184
+ - request:
185
+ method: post
186
+ uri: "<DOCKER_HOST>/v1.16/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e/kill"
187
+ body:
188
+ encoding: US-ASCII
189
+ string: ''
190
+ headers:
191
+ User-Agent:
192
+ - Swipely/Docker-API 1.20.0
193
+ Content-Type:
194
+ - text/plain
195
+ response:
196
+ status:
197
+ code: 204
198
+ message:
199
+ headers:
200
+ Date:
201
+ - Thu, 12 Mar 2015 21:38:06 GMT
202
+ body:
203
+ encoding: UTF-8
204
+ string: ''
205
+ http_version:
206
+ recorded_at: Thu, 12 Mar 2015 21:38:08 GMT
207
+ - request:
208
+ method: delete
209
+ uri: "<DOCKER_HOST>/v1.16/containers/74881c3c7a3ed6811404f15c1d0737f851e8daf5257fa5e6b63502f520d3d45e"
210
+ body:
211
+ encoding: US-ASCII
212
+ string: ''
213
+ headers:
214
+ User-Agent:
215
+ - Swipely/Docker-API 1.20.0
216
+ Content-Type:
217
+ - text/plain
218
+ response:
219
+ status:
220
+ code: 204
221
+ message:
222
+ headers:
223
+ Date:
224
+ - Thu, 12 Mar 2015 21:38:06 GMT
225
+ body:
226
+ encoding: UTF-8
227
+ string: ''
228
+ http_version:
229
+ recorded_at: Thu, 12 Mar 2015 21:38:08 GMT
230
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,115 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: "<DOCKER_HOST>/v1.16/containers/doesnotexist/json"
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.20.0
12
+ Content-Type:
13
+ - text/plain
14
+ response:
15
+ status:
16
+ code: 404
17
+ message:
18
+ headers:
19
+ Content-Type:
20
+ - text/plain; charset=utf-8
21
+ Date:
22
+ - Thu, 12 Mar 2015 21:38:08 GMT
23
+ Content-Length:
24
+ - '32'
25
+ body:
26
+ encoding: UTF-8
27
+ string: |
28
+ No such container: doesnotexist
29
+ http_version:
30
+ recorded_at: Thu, 12 Mar 2015 21:38:11 GMT
31
+ - request:
32
+ method: get
33
+ uri: "<DOCKER_HOST>/v1.16/containers/doesnotexist/json"
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ''
37
+ headers:
38
+ User-Agent:
39
+ - Swipely/Docker-API 1.20.0
40
+ Content-Type:
41
+ - text/plain
42
+ response:
43
+ status:
44
+ code: 404
45
+ message:
46
+ headers:
47
+ Content-Type:
48
+ - text/plain; charset=utf-8
49
+ Date:
50
+ - Thu, 12 Mar 2015 21:38:08 GMT
51
+ Content-Length:
52
+ - '32'
53
+ body:
54
+ encoding: UTF-8
55
+ string: |
56
+ No such container: doesnotexist
57
+ http_version:
58
+ recorded_at: Thu, 12 Mar 2015 21:38:11 GMT
59
+ - request:
60
+ method: get
61
+ uri: "<DOCKER_HOST>/v1.16/containers/doesnotexist/json"
62
+ body:
63
+ encoding: US-ASCII
64
+ string: ''
65
+ headers:
66
+ User-Agent:
67
+ - Swipely/Docker-API 1.20.0
68
+ Content-Type:
69
+ - text/plain
70
+ response:
71
+ status:
72
+ code: 404
73
+ message:
74
+ headers:
75
+ Content-Type:
76
+ - text/plain; charset=utf-8
77
+ Date:
78
+ - Thu, 12 Mar 2015 21:38:08 GMT
79
+ Content-Length:
80
+ - '32'
81
+ body:
82
+ encoding: UTF-8
83
+ string: |
84
+ No such container: doesnotexist
85
+ http_version:
86
+ recorded_at: Thu, 12 Mar 2015 21:38:11 GMT
87
+ - request:
88
+ method: get
89
+ uri: "<DOCKER_HOST>/v1.16/containers/doesnotexist/json"
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ''
93
+ headers:
94
+ User-Agent:
95
+ - Swipely/Docker-API 1.20.0
96
+ Content-Type:
97
+ - text/plain
98
+ response:
99
+ status:
100
+ code: 404
101
+ message:
102
+ headers:
103
+ Content-Type:
104
+ - text/plain; charset=utf-8
105
+ Date:
106
+ - Thu, 12 Mar 2015 21:38:09 GMT
107
+ Content-Length:
108
+ - '32'
109
+ body:
110
+ encoding: UTF-8
111
+ string: |
112
+ No such container: doesnotexist
113
+ http_version:
114
+ recorded_at: Thu, 12 Mar 2015 21:38:11 GMT
115
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: "<DOCKER_HOST>/v1.16/containers/create"
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"Image":"hawknewton/show-env"}'
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.20.0
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message:
18
+ headers:
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Thu, 12 Mar 2015 21:38:08 GMT
23
+ Content-Length:
24
+ - '90'
25
+ body:
26
+ encoding: UTF-8
27
+ string: |
28
+ {"Id":"b553ccf6c9f5ed95712d67f3317915e6afa98eaf903a9d5db43c889dee470205","Warnings":null}
29
+ http_version:
30
+ recorded_at: Thu, 12 Mar 2015 21:38:11 GMT
31
+ - request:
32
+ method: get
33
+ uri: "<DOCKER_HOST>/v1.16/containers/b553ccf6c9f5ed95712d67f3317915e6afa98eaf903a9d5db43c889dee470205/json"
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ''
37
+ headers:
38
+ User-Agent:
39
+ - Swipely/Docker-API 1.20.0
40
+ Content-Type:
41
+ - text/plain
42
+ response:
43
+ status:
44
+ code: 200
45
+ message:
46
+ headers:
47
+ Content-Type:
48
+ - application/json
49
+ Date:
50
+ - Thu, 12 Mar 2015 21:38:08 GMT
51
+ Content-Length:
52
+ - '1941'
53
+ body:
54
+ encoding: UTF-8
55
+ string: |
56
+ {"AppArmorProfile":"","Args":["-c","ruby /code/server.rb"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":null,"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":["/bin/sh","-c","ruby /code/server.rb"],"Env":["PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","RUBY_MAJOR=2.1","RUBY_VERSION=2.1.3","GEM_HOME=/usr/local/bundle","BUNDLE_APP_CONFIG=/usr/local/bundle"],"ExposedPorts":{"80/tcp":{}},"Hostname":"b553ccf6c9f5","Image":"hawknewton/show-env","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-03-12T21:38:08.709404794Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":null,"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"","HostsPath":"","Id":"b553ccf6c9f5ed95712d67f3317915e6afa98eaf903a9d5db43c889dee470205","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/dreamy_lumiere","NetworkSettings":{"Bridge":"","Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"MacAddress":"","PortMapping":null,"Ports":null},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":0,"Restarting":false,"Running":false,"StartedAt":"0001-01-01T00:00:00Z"},"Volumes":{},"VolumesRW":{}}
57
+ http_version:
58
+ recorded_at: Thu, 12 Mar 2015 21:38:11 GMT
59
+ - request:
60
+ method: delete
61
+ uri: "<DOCKER_HOST>/v1.16/containers/b553ccf6c9f5ed95712d67f3317915e6afa98eaf903a9d5db43c889dee470205?force=true"
62
+ body:
63
+ encoding: US-ASCII
64
+ string: ''
65
+ headers:
66
+ User-Agent:
67
+ - Swipely/Docker-API 1.20.0
68
+ Content-Type:
69
+ - text/plain
70
+ response:
71
+ status:
72
+ code: 204
73
+ message:
74
+ headers:
75
+ Date:
76
+ - Thu, 12 Mar 2015 21:38:08 GMT
77
+ body:
78
+ encoding: UTF-8
79
+ string: ''
80
+ http_version:
81
+ recorded_at: Thu, 12 Mar 2015 21:38:11 GMT
82
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,103 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: "<DOCKER_HOST>/v1.16/containers/create"
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"Image":"hawknewton/show-env"}'
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.20.0
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message:
18
+ headers:
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Thu, 12 Mar 2015 21:38:07 GMT
23
+ Content-Length:
24
+ - '90'
25
+ body:
26
+ encoding: UTF-8
27
+ string: |
28
+ {"Id":"c0e4b7ed1893593ad6383b18c3fdb903ef20ee276b8861bb777874a6a366be07","Warnings":null}
29
+ http_version:
30
+ recorded_at: Thu, 12 Mar 2015 21:38:10 GMT
31
+ - request:
32
+ method: post
33
+ uri: "<DOCKER_HOST>/v1.16/containers/c0e4b7ed1893593ad6383b18c3fdb903ef20ee276b8861bb777874a6a366be07/start"
34
+ body:
35
+ encoding: UTF-8
36
+ string: "{}"
37
+ headers:
38
+ User-Agent:
39
+ - Swipely/Docker-API 1.20.0
40
+ Content-Type:
41
+ - application/json
42
+ response:
43
+ status:
44
+ code: 204
45
+ message:
46
+ headers:
47
+ Date:
48
+ - Thu, 12 Mar 2015 21:38:08 GMT
49
+ body:
50
+ encoding: UTF-8
51
+ string: ''
52
+ http_version:
53
+ recorded_at: Thu, 12 Mar 2015 21:38:10 GMT
54
+ - request:
55
+ method: get
56
+ uri: "<DOCKER_HOST>/v1.16/containers/c0e4b7ed1893593ad6383b18c3fdb903ef20ee276b8861bb777874a6a366be07/json"
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ''
60
+ headers:
61
+ User-Agent:
62
+ - Swipely/Docker-API 1.20.0
63
+ Content-Type:
64
+ - text/plain
65
+ response:
66
+ status:
67
+ code: 200
68
+ message:
69
+ headers:
70
+ Content-Type:
71
+ - application/json
72
+ Date:
73
+ - Thu, 12 Mar 2015 21:38:08 GMT
74
+ body:
75
+ encoding: UTF-8
76
+ string: |
77
+ {"AppArmorProfile":"","Args":["-c","ruby /code/server.rb"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":null,"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":["/bin/sh","-c","ruby /code/server.rb"],"Env":["PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","RUBY_MAJOR=2.1","RUBY_VERSION=2.1.3","GEM_HOME=/usr/local/bundle","BUNDLE_APP_CONFIG=/usr/local/bundle"],"ExposedPorts":{"80/tcp":{}},"Hostname":"c0e4b7ed1893","Image":"hawknewton/show-env","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-03-12T21:38:07.767782037Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":null,"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/c0e4b7ed1893593ad6383b18c3fdb903ef20ee276b8861bb777874a6a366be07/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/c0e4b7ed1893593ad6383b18c3fdb903ef20ee276b8861bb777874a6a366be07/hosts","Id":"c0e4b7ed1893593ad6383b18c3fdb903ef20ee276b8861bb777874a6a366be07","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/admiring_goodall","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.102","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:266","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:66","PortMapping":null,"Ports":{"80/tcp":null}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/c0e4b7ed1893593ad6383b18c3fdb903ef20ee276b8861bb777874a6a366be07/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11831,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:38:08.381927389Z"},"Volumes":{},"VolumesRW":{}}
78
+ http_version:
79
+ recorded_at: Thu, 12 Mar 2015 21:38:10 GMT
80
+ - request:
81
+ method: delete
82
+ uri: "<DOCKER_HOST>/v1.16/containers/c0e4b7ed1893593ad6383b18c3fdb903ef20ee276b8861bb777874a6a366be07?force=true"
83
+ body:
84
+ encoding: US-ASCII
85
+ string: ''
86
+ headers:
87
+ User-Agent:
88
+ - Swipely/Docker-API 1.20.0
89
+ Content-Type:
90
+ - text/plain
91
+ response:
92
+ status:
93
+ code: 204
94
+ message:
95
+ headers:
96
+ Date:
97
+ - Thu, 12 Mar 2015 21:38:08 GMT
98
+ body:
99
+ encoding: UTF-8
100
+ string: ''
101
+ http_version:
102
+ recorded_at: Thu, 12 Mar 2015 21:38:10 GMT
103
+ recorded_with: VCR 2.9.3