bigrig 0.0.0 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rspec +3 -0
- data/.rubocop.yml +20 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.md +19 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +84 -0
- data/LICENSE +28 -0
- data/README.md +191 -0
- data/Rakefile +10 -0
- data/bigrig.gemspec +29 -0
- data/bin/bigrig +113 -0
- data/lib/bigrig/actions/destroy_action.rb +21 -0
- data/lib/bigrig/actions/dev_action.rb +19 -0
- data/lib/bigrig/actions/log_action.rb +45 -0
- data/lib/bigrig/actions/run_action.rb +14 -0
- data/lib/bigrig/actions/ship_action.rb +51 -0
- data/lib/bigrig/actions.rb +5 -0
- data/lib/bigrig/dependency_graph.rb +21 -0
- data/lib/bigrig/descriptor.rb +43 -0
- data/lib/bigrig/docker_adapter.rb +129 -0
- data/lib/bigrig/models/application.rb +22 -0
- data/lib/bigrig/models/base_model.rb +7 -0
- data/lib/bigrig/models/container.rb +40 -0
- data/lib/bigrig/models.rb +3 -0
- data/lib/bigrig/output_parser.rb +52 -0
- data/lib/bigrig/runner.rb +94 -0
- data/lib/bigrig/version.rb +3 -0
- data/lib/bigrig.rb +8 -0
- data/spec/bigrig/actions/destroy_action_spec.rb +55 -0
- data/spec/bigrig/actions/dev_action_spec.rb +17 -0
- data/spec/bigrig/actions/log_action_spec.rb +33 -0
- data/spec/bigrig/actions/run_action_spec.rb +270 -0
- data/spec/bigrig/actions/ship_action_spec.rb +82 -0
- data/spec/bigrig/dependency_graph_spec.rb +19 -0
- data/spec/bigrig/descriptor_spec.rb +56 -0
- data/spec/bigrig/docker_adapter_spec.rb +409 -0
- data/spec/bigrig/models/application_spec.rb +32 -0
- data/spec/bigrig/models/container_spec.rb +115 -0
- data/spec/bigrig/output_parser_spec.rb +71 -0
- data/spec/bigrig_spec.rb +249 -0
- data/spec/data/addscontainer.json +24 -0
- data/spec/data/build/Dockerfile +2 -0
- data/spec/data/build/test +0 -0
- data/spec/data/dev.json +26 -0
- data/spec/data/duplicate.json +13 -0
- data/spec/data/env.json +12 -0
- data/spec/data/hosts_ip.json +12 -0
- data/spec/data/hosts_name.json +11 -0
- data/spec/data/links.json +13 -0
- data/spec/data/log.json +8 -0
- data/spec/data/multiple.json +13 -0
- data/spec/data/path.json +5 -0
- data/spec/data/ports.json +9 -0
- data/spec/data/profiles.json +24 -0
- data/spec/data/ship.json +5 -0
- data/spec/data/single.json +8 -0
- data/spec/data/tagandpath.json +24 -0
- data/spec/data/tiny-image.tar +0 -0
- data/spec/data/volumes.json +13 -0
- data/spec/spec_helper.rb +104 -0
- data/spec/support/bigrig_vcr +8 -0
- data/spec/support/vcr.rb +15 -0
- data/spec/vcr/Bigrig_DestroyAction/_perform/given_json_with_a_single_container/and_the_container_has_exited/should_remove_the_container.yml +392 -0
- 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
- data/spec/vcr/Bigrig_DockerAdapter/_build/builds_the_given_directory.yml +63 -0
- data/spec/vcr/Bigrig_DockerAdapter/_build/passes_build_input_to_a_block.yml +35 -0
- data/spec/vcr/Bigrig_DockerAdapter/_container_exists_/when_the_container_does_not_exist/is_false.yml +115 -0
- data/spec/vcr/Bigrig_DockerAdapter/_container_exists_/when_the_container_exists/is_true.yml +82 -0
- data/spec/vcr/Bigrig_DockerAdapter/_image_id_by_tag/when_the_image_does_not_exist/raise_a_ImageNotFoundError.yml +172 -0
- data/spec/vcr/Bigrig_DockerAdapter/_image_id_by_tag/when_the_image_exists/returns_the_image_id.yml +148 -0
- data/spec/vcr/Bigrig_DockerAdapter/_kill/given_the_container_does_not_exist/should_raise_an_error.yml +115 -0
- data/spec/vcr/Bigrig_DockerAdapter/_kill/given_the_container_is_running/should_kill_the_container.yml +200 -0
- data/spec/vcr/Bigrig_DockerAdapter/_logs/streams_logs_to_a_block.yml +163 -0
- data/spec/vcr/Bigrig_DockerAdapter/_pull/given_a_block_to_capture_output/should_capture_output.yml +64 -0
- data/spec/vcr/Bigrig_DockerAdapter/_pull/given_the_repo_does_not_exist/raises_a_RepoNotFoundError.yml +30 -0
- data/spec/vcr/Bigrig_DockerAdapter/_pull/given_the_repo_exists/returns_the_image_id.yml +92 -0
- data/spec/vcr/Bigrig_DockerAdapter/_push/given_credentials/will_pass_login_and_password.yml +254 -0
- data/spec/vcr/Bigrig_DockerAdapter/_push/should_push_the_image.yml +482 -0
- data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_does_not_exist/raises_a_ContainerNotFoundError.yml +227 -0
- data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_exists/should_remove_the_container.yml +222 -0
- data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_is_running/raises_a_ContainerRunningError.yml +80 -0
- data/spec/vcr/Bigrig_DockerAdapter/_remove_image/when_the_image_doesnt_exist/raises_an_error.yml +115 -0
- data/spec/vcr/Bigrig_DockerAdapter/_remove_image/when_the_image_exists/removes_the_image.yml +199 -0
- 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
- 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
- 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
- data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_does_not_exist/returns_false.yml +115 -0
- data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_is_not_running/returns_false.yml +82 -0
- data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_is_running/returns_true.yml +103 -0
- data/spec/vcr/Bigrig_DockerAdapter/_tag/should_tag_the_image.yml +290 -0
- data/spec/vcr/Bigrig_LogAction/_perform/follows_the_log.yml +163 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_a_path/builds_the_image_before_starting_it.yml +310 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_hosts_by_ip/should_pass_hosts_to_container.yml +430 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_hosts_by_name/should_lookup_ips_for_hosts_with_a_hostname.yml +430 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_links/should_pass_links_to_the_right_container.yml +805 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_multiple_containers/launches_both_containers_in_parallel.yml +731 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_multiple_containers/spins_up_multiple_containers.yml +805 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_one_container/should_spin_up_a_single_container.yml +404 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_one_container/when_a_dead_container_exists/should_remove_existing_containers.yml +329 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes_from/should_pass_volumes_from_to_the_right_container.yml +805 -0
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes_from/starts_the_dependant_container_last.yml +731 -0
- data/spec/vcr/Bigrig_RunAction/_perform/when_activating_profiles_that_do_not_exist/ignores_the_missing_profile.yml +409 -0
- data/spec/vcr/Bigrig_RunAction/_perform/with_a_file_with_active_profiles/uses_the_overridden_image.yml +432 -0
- data/spec/vcr/bigrig/destroy/spec/data/single_json/kills_the_container.yml +166 -0
- data/spec/vcr/bigrig/dev/spec/data/dev_json/activates_the_dev_profile.yml +37 -0
- data/spec/vcr/bigrig/dev/spec/data/dev_json/destroys_containers_on_exit.yml +227 -0
- data/spec/vcr/bigrig/dev/spec/data/dev_json/starts_the_containers.yml +107 -0
- data/spec/vcr/bigrig/logs/spec/data/log_json/tails_the_logs.yml +163 -0
- data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/leaves_existing_env_values_alone.yml +110 -0
- data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_env.yml +110 -0
- data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_tag.yml +103 -0
- data/spec/vcr/bigrig/run/spec/data/single_json/sends_the_name_of_the_container_to_stdout.yml +75 -0
- data/spec/vcr/bigrig/run/spec/data/single_json/starts_the_container.yml +101 -0
- data/spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/-c/cleans_the_image_when_its_done.yml +212 -0
- data/spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/builds_and_pushes_the_image.yml +128 -0
- data/spec/vcr/bigrig_bin_bigrig_destroy_spec/data/single_json_kills_the_container.yml +179 -0
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_activates_the_dev_profile.yml +1068 -0
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_destroys_containers_on_exit.yml +1070 -0
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_starts_the_containers.yml +1068 -0
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_tails_the_logs.yml +1075 -0
- data/spec/vcr/bigrig_bin_bigrig_logs_spec/data/log_json_tails_the_logs.yml +69 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_leaves_existing_env_values_alone.yml +306 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_env.yml +306 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_tag.yml +306 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_sends_the_name_of_the_container_to_stdout.yml +306 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_starts_the_container.yml +306 -0
- data/spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_-c_cleans_the_image_when_its_done.yml +335 -0
- data/spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_builds_and_pushes_the_image.yml +285 -0
- data/test/dev/shipper.json +24 -0
- data/test/logs/bigrig.json +6 -0
- data/test/logs/container1/Dockerfile +4 -0
- data/test/logs/container1/run.sh +7 -0
- data/test/logs/container2/Dockerfile +4 -0
- data/test/logs/container2/run.sh +7 -0
- data/test/ship/bigrig-1.2.3.json +1 -0
- data/test/ship/bigrig.json +5 -0
- data/test/ship/registry.json +11 -0
- data/test/ship/ship/Dockerfile +4 -0
- data/test/ship/ship/run.sh +6 -0
- data/test/volumes_from/exports_volumes/Dockerfile +8 -0
- data/test/volumes_from/exports_volumes/index.html +8 -0
- data/test/volumes_from/exports_volumes/run.sh +7 -0
- data/test/volumes_from/shipper.json +14 -0
- metadata +278 -8
@@ -0,0 +1,418 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/images/create?fromImage=hawknewton%2Fshow-env"
|
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: 200
|
17
|
+
message:
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- application/json
|
21
|
+
Date:
|
22
|
+
- Thu, 12 Mar 2015 21:37:16 GMT
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: "{\"status\":\"Pulling repository hawknewton/show-env\"}\r\n{\"status\":\"Pulling
|
26
|
+
image (latest) from hawknewton/show-env\",\"progressDetail\":{},\"id\":\"b9c5be3a918d\"}{\"status\":\"Pulling
|
27
|
+
image (latest) from hawknewton/show-env, endpoint: https://registry-1.docker.io/v1/\",\"progressDetail\":{},\"id\":\"b9c5be3a918d\"}{\"status\":\"Pulling
|
28
|
+
dependent layers\",\"progressDetail\":{},\"id\":\"b9c5be3a918d\"}{\"status\":\"Download
|
29
|
+
complete\",\"progressDetail\":{},\"id\":\"511136ea3c5a\"}{\"status\":\"Download
|
30
|
+
complete\",\"progressDetail\":{},\"id\":\"50215b109eda\"}{\"status\":\"Download
|
31
|
+
complete\",\"progressDetail\":{},\"id\":\"53f380325ee9\"}{\"status\":\"Download
|
32
|
+
complete\",\"progressDetail\":{},\"id\":\"71e62a8beff3\"}{\"status\":\"Download
|
33
|
+
complete\",\"progressDetail\":{},\"id\":\"7d2b41d8b634\"}{\"status\":\"Download
|
34
|
+
complete\",\"progressDetail\":{},\"id\":\"eac5dcb90974\"}{\"status\":\"Download
|
35
|
+
complete\",\"progressDetail\":{},\"id\":\"4641ba92cd87\"}{\"status\":\"Download
|
36
|
+
complete\",\"progressDetail\":{},\"id\":\"49d1d522cd44\"}{\"status\":\"Download
|
37
|
+
complete\",\"progressDetail\":{},\"id\":\"4164e8505679\"}{\"status\":\"Download
|
38
|
+
complete\",\"progressDetail\":{},\"id\":\"fd3901892100\"}{\"status\":\"Download
|
39
|
+
complete\",\"progressDetail\":{},\"id\":\"aa82a409e225\"}{\"status\":\"Download
|
40
|
+
complete\",\"progressDetail\":{},\"id\":\"4e2f12b9e246\"}{\"status\":\"Download
|
41
|
+
complete\",\"progressDetail\":{},\"id\":\"a490c0bc4c17\"}{\"status\":\"Download
|
42
|
+
complete\",\"progressDetail\":{},\"id\":\"30c479473225\"}{\"status\":\"Download
|
43
|
+
complete\",\"progressDetail\":{},\"id\":\"c18ee8e5eefa\"}{\"status\":\"Download
|
44
|
+
complete\",\"progressDetail\":{},\"id\":\"b020883398e6\"}{\"status\":\"Download
|
45
|
+
complete\",\"progressDetail\":{},\"id\":\"4929b61a5fda\"}{\"status\":\"Download
|
46
|
+
complete\",\"progressDetail\":{},\"id\":\"b9c5be3a918d\"}{\"status\":\"Download
|
47
|
+
complete\",\"progressDetail\":{},\"id\":\"b9c5be3a918d\"}{\"status\":\"Status:
|
48
|
+
Image is up to date for hawknewton/show-env\"}\r\n"
|
49
|
+
http_version:
|
50
|
+
recorded_at: Thu, 12 Mar 2015 21:37:19 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: "<DOCKER_HOST>/v1.16/containers/create?name=single-test"
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"Image":"b9c5be3a918d"}'
|
57
|
+
headers:
|
58
|
+
User-Agent:
|
59
|
+
- Swipely/Docker-API 1.20.0
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 201
|
65
|
+
message:
|
66
|
+
headers:
|
67
|
+
Content-Type:
|
68
|
+
- application/json
|
69
|
+
Date:
|
70
|
+
- Thu, 12 Mar 2015 21:37:17 GMT
|
71
|
+
Content-Length:
|
72
|
+
- '90'
|
73
|
+
body:
|
74
|
+
encoding: UTF-8
|
75
|
+
string: |
|
76
|
+
{"Id":"bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06","Warnings":null}
|
77
|
+
http_version:
|
78
|
+
recorded_at: Thu, 12 Mar 2015 21:37:19 GMT
|
79
|
+
- request:
|
80
|
+
method: post
|
81
|
+
uri: "<DOCKER_HOST>/v1.16/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/start"
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: "{}"
|
85
|
+
headers:
|
86
|
+
User-Agent:
|
87
|
+
- Swipely/Docker-API 1.20.0
|
88
|
+
Content-Type:
|
89
|
+
- application/json
|
90
|
+
response:
|
91
|
+
status:
|
92
|
+
code: 204
|
93
|
+
message:
|
94
|
+
headers:
|
95
|
+
Date:
|
96
|
+
- Thu, 12 Mar 2015 21:37:17 GMT
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: ''
|
100
|
+
http_version:
|
101
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
102
|
+
- request:
|
103
|
+
method: get
|
104
|
+
uri: "<DOCKER_HOST>/v1.16/containers/single-test/json"
|
105
|
+
body:
|
106
|
+
encoding: US-ASCII
|
107
|
+
string: ''
|
108
|
+
headers:
|
109
|
+
User-Agent:
|
110
|
+
- Swipely/Docker-API 1.20.0
|
111
|
+
Content-Type:
|
112
|
+
- text/plain
|
113
|
+
response:
|
114
|
+
status:
|
115
|
+
code: 200
|
116
|
+
message:
|
117
|
+
headers:
|
118
|
+
Content-Type:
|
119
|
+
- application/json
|
120
|
+
Date:
|
121
|
+
- Thu, 12 Mar 2015 21:37:17 GMT
|
122
|
+
body:
|
123
|
+
encoding: UTF-8
|
124
|
+
string: |
|
125
|
+
{"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":"bd9dbf417f14","Image":"b9c5be3a918d","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:37:17.376529643Z","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/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/hosts","Id":"bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/single-test","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.77","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:24d","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:4d","PortMapping":null,"Ports":{"80/tcp":null}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11442,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:37:17.721570402Z"},"Volumes":{},"VolumesRW":{}}
|
126
|
+
http_version:
|
127
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
128
|
+
- request:
|
129
|
+
method: get
|
130
|
+
uri: "<DOCKER_HOST>/v1.16/containers/single-test/json"
|
131
|
+
body:
|
132
|
+
encoding: US-ASCII
|
133
|
+
string: ''
|
134
|
+
headers:
|
135
|
+
User-Agent:
|
136
|
+
- Swipely/Docker-API 1.20.0
|
137
|
+
Content-Type:
|
138
|
+
- text/plain
|
139
|
+
response:
|
140
|
+
status:
|
141
|
+
code: 200
|
142
|
+
message:
|
143
|
+
headers:
|
144
|
+
Content-Type:
|
145
|
+
- application/json
|
146
|
+
Date:
|
147
|
+
- Thu, 12 Mar 2015 21:37:17 GMT
|
148
|
+
body:
|
149
|
+
encoding: UTF-8
|
150
|
+
string: |
|
151
|
+
{"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":"bd9dbf417f14","Image":"b9c5be3a918d","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:37:17.376529643Z","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/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/hosts","Id":"bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/single-test","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.2.77","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:24d","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:02:4d","PortMapping":null,"Ports":{"80/tcp":null}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":11442,"Restarting":false,"Running":true,"StartedAt":"2015-03-12T21:37:17.721570402Z"},"Volumes":{},"VolumesRW":{}}
|
152
|
+
http_version:
|
153
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
154
|
+
- request:
|
155
|
+
method: post
|
156
|
+
uri: "<DOCKER_HOST>/v1.16/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/kill"
|
157
|
+
body:
|
158
|
+
encoding: US-ASCII
|
159
|
+
string: ''
|
160
|
+
headers:
|
161
|
+
User-Agent:
|
162
|
+
- Swipely/Docker-API 1.20.0
|
163
|
+
Content-Type:
|
164
|
+
- text/plain
|
165
|
+
response:
|
166
|
+
status:
|
167
|
+
code: 204
|
168
|
+
message:
|
169
|
+
headers:
|
170
|
+
Date:
|
171
|
+
- Thu, 12 Mar 2015 21:37:17 GMT
|
172
|
+
body:
|
173
|
+
encoding: UTF-8
|
174
|
+
string: ''
|
175
|
+
http_version:
|
176
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
177
|
+
- request:
|
178
|
+
method: get
|
179
|
+
uri: "<DOCKER_HOST>/v1.16/containers/single-test/json"
|
180
|
+
body:
|
181
|
+
encoding: US-ASCII
|
182
|
+
string: ''
|
183
|
+
headers:
|
184
|
+
User-Agent:
|
185
|
+
- Swipely/Docker-API 1.20.0
|
186
|
+
Content-Type:
|
187
|
+
- text/plain
|
188
|
+
response:
|
189
|
+
status:
|
190
|
+
code: 200
|
191
|
+
message:
|
192
|
+
headers:
|
193
|
+
Content-Type:
|
194
|
+
- application/json
|
195
|
+
Date:
|
196
|
+
- Thu, 12 Mar 2015 21:37:18 GMT
|
197
|
+
body:
|
198
|
+
encoding: UTF-8
|
199
|
+
string: |
|
200
|
+
{"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":"bd9dbf417f14","Image":"b9c5be3a918d","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:37:17.376529643Z","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/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/hosts","Id":"bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/single-test","NetworkSettings":{"Bridge":"","Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"MacAddress":"","PortMapping":null,"Ports":null},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":137,"FinishedAt":"2015-03-12T21:37:17.910452936Z","OOMKilled":false,"Paused":false,"Pid":0,"Restarting":false,"Running":false,"StartedAt":"2015-03-12T21:37:17.721570402Z"},"Volumes":{},"VolumesRW":{}}
|
201
|
+
http_version:
|
202
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
203
|
+
- request:
|
204
|
+
method: get
|
205
|
+
uri: "<DOCKER_HOST>/v1.16/containers/single-test/json"
|
206
|
+
body:
|
207
|
+
encoding: US-ASCII
|
208
|
+
string: ''
|
209
|
+
headers:
|
210
|
+
User-Agent:
|
211
|
+
- Swipely/Docker-API 1.20.0
|
212
|
+
Content-Type:
|
213
|
+
- text/plain
|
214
|
+
response:
|
215
|
+
status:
|
216
|
+
code: 200
|
217
|
+
message:
|
218
|
+
headers:
|
219
|
+
Content-Type:
|
220
|
+
- application/json
|
221
|
+
Date:
|
222
|
+
- Thu, 12 Mar 2015 21:37:18 GMT
|
223
|
+
body:
|
224
|
+
encoding: UTF-8
|
225
|
+
string: |
|
226
|
+
{"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":"bd9dbf417f14","Image":"b9c5be3a918d","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:37:17.376529643Z","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/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/hosts","Id":"bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/single-test","NetworkSettings":{"Bridge":"","Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"MacAddress":"","PortMapping":null,"Ports":null},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":137,"FinishedAt":"2015-03-12T21:37:17.910452936Z","OOMKilled":false,"Paused":false,"Pid":0,"Restarting":false,"Running":false,"StartedAt":"2015-03-12T21:37:17.721570402Z"},"Volumes":{},"VolumesRW":{}}
|
227
|
+
http_version:
|
228
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
229
|
+
- request:
|
230
|
+
method: get
|
231
|
+
uri: "<DOCKER_HOST>/v1.16/containers/single-test/json"
|
232
|
+
body:
|
233
|
+
encoding: US-ASCII
|
234
|
+
string: ''
|
235
|
+
headers:
|
236
|
+
User-Agent:
|
237
|
+
- Swipely/Docker-API 1.20.0
|
238
|
+
Content-Type:
|
239
|
+
- text/plain
|
240
|
+
response:
|
241
|
+
status:
|
242
|
+
code: 200
|
243
|
+
message:
|
244
|
+
headers:
|
245
|
+
Content-Type:
|
246
|
+
- application/json
|
247
|
+
Date:
|
248
|
+
- Thu, 12 Mar 2015 21:37:18 GMT
|
249
|
+
body:
|
250
|
+
encoding: UTF-8
|
251
|
+
string: |
|
252
|
+
{"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":"bd9dbf417f14","Image":"b9c5be3a918d","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:37:17.376529643Z","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/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/hosts","Id":"bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","MountLabel":"","Name":"/single-test","NetworkSettings":{"Bridge":"","Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"MacAddress":"","PortMapping":null,"Ports":null},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":137,"FinishedAt":"2015-03-12T21:37:17.910452936Z","OOMKilled":false,"Paused":false,"Pid":0,"Restarting":false,"Running":false,"StartedAt":"2015-03-12T21:37:17.721570402Z"},"Volumes":{},"VolumesRW":{}}
|
253
|
+
http_version:
|
254
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
255
|
+
- request:
|
256
|
+
method: delete
|
257
|
+
uri: "<DOCKER_HOST>/v1.16/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06"
|
258
|
+
body:
|
259
|
+
encoding: US-ASCII
|
260
|
+
string: ''
|
261
|
+
headers:
|
262
|
+
User-Agent:
|
263
|
+
- Swipely/Docker-API 1.20.0
|
264
|
+
Content-Type:
|
265
|
+
- text/plain
|
266
|
+
response:
|
267
|
+
status:
|
268
|
+
code: 204
|
269
|
+
message:
|
270
|
+
headers:
|
271
|
+
Date:
|
272
|
+
- Thu, 12 Mar 2015 21:37:18 GMT
|
273
|
+
body:
|
274
|
+
encoding: UTF-8
|
275
|
+
string: ''
|
276
|
+
http_version:
|
277
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
278
|
+
- request:
|
279
|
+
method: get
|
280
|
+
uri: "<DOCKER_HOST>/v1.16/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/json"
|
281
|
+
body:
|
282
|
+
encoding: US-ASCII
|
283
|
+
string: ''
|
284
|
+
headers:
|
285
|
+
User-Agent:
|
286
|
+
- Swipely/Docker-API 1.20.0
|
287
|
+
Content-Type:
|
288
|
+
- text/plain
|
289
|
+
response:
|
290
|
+
status:
|
291
|
+
code: 404
|
292
|
+
message:
|
293
|
+
headers:
|
294
|
+
Content-Type:
|
295
|
+
- text/plain; charset=utf-8
|
296
|
+
Date:
|
297
|
+
- Thu, 12 Mar 2015 21:37:18 GMT
|
298
|
+
Content-Length:
|
299
|
+
- '84'
|
300
|
+
body:
|
301
|
+
encoding: UTF-8
|
302
|
+
string: |
|
303
|
+
No such container: bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06
|
304
|
+
http_version:
|
305
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
306
|
+
- request:
|
307
|
+
method: get
|
308
|
+
uri: "<DOCKER_HOST>/v1.16/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/json"
|
309
|
+
body:
|
310
|
+
encoding: US-ASCII
|
311
|
+
string: ''
|
312
|
+
headers:
|
313
|
+
User-Agent:
|
314
|
+
- Swipely/Docker-API 1.20.0
|
315
|
+
Content-Type:
|
316
|
+
- text/plain
|
317
|
+
response:
|
318
|
+
status:
|
319
|
+
code: 404
|
320
|
+
message:
|
321
|
+
headers:
|
322
|
+
Content-Type:
|
323
|
+
- text/plain; charset=utf-8
|
324
|
+
Date:
|
325
|
+
- Thu, 12 Mar 2015 21:37:18 GMT
|
326
|
+
Content-Length:
|
327
|
+
- '84'
|
328
|
+
body:
|
329
|
+
encoding: UTF-8
|
330
|
+
string: |
|
331
|
+
No such container: bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06
|
332
|
+
http_version:
|
333
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
334
|
+
- request:
|
335
|
+
method: get
|
336
|
+
uri: "<DOCKER_HOST>/v1.16/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/json"
|
337
|
+
body:
|
338
|
+
encoding: US-ASCII
|
339
|
+
string: ''
|
340
|
+
headers:
|
341
|
+
User-Agent:
|
342
|
+
- Swipely/Docker-API 1.20.0
|
343
|
+
Content-Type:
|
344
|
+
- text/plain
|
345
|
+
response:
|
346
|
+
status:
|
347
|
+
code: 404
|
348
|
+
message:
|
349
|
+
headers:
|
350
|
+
Content-Type:
|
351
|
+
- text/plain; charset=utf-8
|
352
|
+
Date:
|
353
|
+
- Thu, 12 Mar 2015 21:37:18 GMT
|
354
|
+
Content-Length:
|
355
|
+
- '84'
|
356
|
+
body:
|
357
|
+
encoding: UTF-8
|
358
|
+
string: |
|
359
|
+
No such container: bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06
|
360
|
+
http_version:
|
361
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
362
|
+
- request:
|
363
|
+
method: get
|
364
|
+
uri: "<DOCKER_HOST>/v1.16/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/json"
|
365
|
+
body:
|
366
|
+
encoding: US-ASCII
|
367
|
+
string: ''
|
368
|
+
headers:
|
369
|
+
User-Agent:
|
370
|
+
- Swipely/Docker-API 1.20.0
|
371
|
+
Content-Type:
|
372
|
+
- text/plain
|
373
|
+
response:
|
374
|
+
status:
|
375
|
+
code: 404
|
376
|
+
message:
|
377
|
+
headers:
|
378
|
+
Content-Type:
|
379
|
+
- text/plain; charset=utf-8
|
380
|
+
Date:
|
381
|
+
- Thu, 12 Mar 2015 21:37:18 GMT
|
382
|
+
Content-Length:
|
383
|
+
- '84'
|
384
|
+
body:
|
385
|
+
encoding: UTF-8
|
386
|
+
string: |
|
387
|
+
No such container: bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06
|
388
|
+
http_version:
|
389
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
390
|
+
- request:
|
391
|
+
method: post
|
392
|
+
uri: "<DOCKER_HOST>/v1.16/containers/bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06/kill"
|
393
|
+
body:
|
394
|
+
encoding: US-ASCII
|
395
|
+
string: ''
|
396
|
+
headers:
|
397
|
+
User-Agent:
|
398
|
+
- Swipely/Docker-API 1.20.0
|
399
|
+
Content-Type:
|
400
|
+
- text/plain
|
401
|
+
response:
|
402
|
+
status:
|
403
|
+
code: 404
|
404
|
+
message:
|
405
|
+
headers:
|
406
|
+
Content-Type:
|
407
|
+
- text/plain; charset=utf-8
|
408
|
+
Date:
|
409
|
+
- Thu, 12 Mar 2015 21:37:18 GMT
|
410
|
+
Content-Length:
|
411
|
+
- '84'
|
412
|
+
body:
|
413
|
+
encoding: UTF-8
|
414
|
+
string: |
|
415
|
+
No such container: bd9dbf417f149a6431dc7f383193842653c1b6866df535a5d58f33621d90cf06
|
416
|
+
http_version:
|
417
|
+
recorded_at: Thu, 12 Mar 2015 21:37:20 GMT
|
418
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/build"
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Swipely/Docker-API 1.20.0
|
12
|
+
Content-Type:
|
13
|
+
- application/tar
|
14
|
+
Transfer-Encoding:
|
15
|
+
- chunked
|
16
|
+
X-Registry-Config:
|
17
|
+
- eyJjb25maWdzIjp7IiI6eyJ1c2VybmFtZSI6IiIsInBhc3N3b3JkIjoiIiwiZW1haWwiOiIifX19
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message:
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Date:
|
26
|
+
- Thu, 12 Mar 2015 21:37:40 GMT
|
27
|
+
body:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: "{\"stream\":\"Step 0 : FROM hawknewton/true\\n\"}\r\n{\"stream\":\"
|
30
|
+
---\\u003e 5fbce35eb337\\n\"}\r\n{\"stream\":\"Step 1 : ADD test /\\n\"}\r\n{\"stream\":\"
|
31
|
+
---\\u003e 476bb395d050\\n\"}\r\n{\"stream\":\"Removing intermediate container
|
32
|
+
a7dcc091bbc5\\n\"}\r\n{\"stream\":\"Successfully built 476bb395d050\\n\"}\r\n"
|
33
|
+
http_version:
|
34
|
+
recorded_at: Thu, 12 Mar 2015 21:37:43 GMT
|
35
|
+
- request:
|
36
|
+
method: get
|
37
|
+
uri: "<DOCKER_HOST>/v1.16/images/476bb395d050/json"
|
38
|
+
body:
|
39
|
+
encoding: US-ASCII
|
40
|
+
string: ''
|
41
|
+
headers:
|
42
|
+
User-Agent:
|
43
|
+
- Swipely/Docker-API 1.20.0
|
44
|
+
Content-Type:
|
45
|
+
- text/plain
|
46
|
+
response:
|
47
|
+
status:
|
48
|
+
code: 200
|
49
|
+
message:
|
50
|
+
headers:
|
51
|
+
Content-Type:
|
52
|
+
- application/json
|
53
|
+
Date:
|
54
|
+
- Thu, 12 Mar 2015 21:37:41 GMT
|
55
|
+
Content-Length:
|
56
|
+
- '1545'
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: |
|
60
|
+
{"Architecture":"amd64","Author":"","Comment":"","Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/true"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":[],"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"5a0d2e5f7af6","Image":"5fbce35eb33780adf252ee2f87b7156660fdb5c7ca54a0fb4e262a87447cceeb","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Container":"a7dcc091bbc50de9aff3f3e8df9ef185301cd966d9022a5b73f609d52e6b6ba3","ContainerConfig":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/bin/sh","-c","#(nop) ADD file:1cb489697a55d653f1feb7de29e7f70267402b9a9addcd5577961b16cf8bb7d7 in /"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":[],"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"5a0d2e5f7af6","Image":"5fbce35eb33780adf252ee2f87b7156660fdb5c7ca54a0fb4e262a87447cceeb","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-03-12T21:37:41.10438288Z","DockerVersion":"1.5.0","Id":"476bb395d0504e7bfa1e3f114219271d99b074739bdd404d9aa3c86d4c08bdcf","Os":"linux","Parent":"5fbce35eb33780adf252ee2f87b7156660fdb5c7ca54a0fb4e262a87447cceeb","Size":0,"VirtualSize":125}
|
61
|
+
http_version:
|
62
|
+
recorded_at: Thu, 12 Mar 2015 21:37:43 GMT
|
63
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/build"
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Swipely/Docker-API 1.20.0
|
12
|
+
Content-Type:
|
13
|
+
- application/tar
|
14
|
+
Transfer-Encoding:
|
15
|
+
- chunked
|
16
|
+
X-Registry-Config:
|
17
|
+
- eyJjb25maWdzIjp7IiI6eyJ1c2VybmFtZSI6IiIsInBhc3N3b3JkIjoiIiwiZW1haWwiOiIifX19
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message:
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Date:
|
26
|
+
- Thu, 12 Mar 2015 21:37:41 GMT
|
27
|
+
body:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: "{\"stream\":\"Step 0 : FROM hawknewton/true\\n\"}\r\n{\"stream\":\"
|
30
|
+
---\\u003e 5fbce35eb337\\n\"}\r\n{\"stream\":\"Step 1 : ADD test /\\n\"}\r\n{\"stream\":\"
|
31
|
+
---\\u003e Using cache\\n\"}\r\n{\"stream\":\" ---\\u003e 476bb395d050\\n\"}\r\n{\"stream\":\"Successfully
|
32
|
+
built 476bb395d050\\n\"}\r\n"
|
33
|
+
http_version:
|
34
|
+
recorded_at: Thu, 12 Mar 2015 21:37:43 GMT
|
35
|
+
recorded_with: VCR 2.9.3
|
data/spec/vcr/Bigrig_DockerAdapter/_container_exists_/when_the_container_does_not_exist/is_false.yml
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: "<DOCKER_HOST>/v1.16/containers/container_does_not_exist/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:37:41 GMT
|
23
|
+
Content-Length:
|
24
|
+
- '44'
|
25
|
+
body:
|
26
|
+
encoding: UTF-8
|
27
|
+
string: |
|
28
|
+
No such container: container_does_not_exist
|
29
|
+
http_version:
|
30
|
+
recorded_at: Thu, 12 Mar 2015 21:37:43 GMT
|
31
|
+
- request:
|
32
|
+
method: get
|
33
|
+
uri: "<DOCKER_HOST>/v1.16/containers/container_does_not_exist/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:37:41 GMT
|
51
|
+
Content-Length:
|
52
|
+
- '44'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |
|
56
|
+
No such container: container_does_not_exist
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 12 Mar 2015 21:37:43 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: "<DOCKER_HOST>/v1.16/containers/container_does_not_exist/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:37:41 GMT
|
79
|
+
Content-Length:
|
80
|
+
- '44'
|
81
|
+
body:
|
82
|
+
encoding: UTF-8
|
83
|
+
string: |
|
84
|
+
No such container: container_does_not_exist
|
85
|
+
http_version:
|
86
|
+
recorded_at: Thu, 12 Mar 2015 21:37:43 GMT
|
87
|
+
- request:
|
88
|
+
method: get
|
89
|
+
uri: "<DOCKER_HOST>/v1.16/containers/container_does_not_exist/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:37:41 GMT
|
107
|
+
Content-Length:
|
108
|
+
- '44'
|
109
|
+
body:
|
110
|
+
encoding: UTF-8
|
111
|
+
string: |
|
112
|
+
No such container: container_does_not_exist
|
113
|
+
http_version:
|
114
|
+
recorded_at: Thu, 12 Mar 2015 21:37:43 GMT
|
115
|
+
recorded_with: VCR 2.9.3
|