bigrig 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +24 -26
- data/bigrig.gemspec +2 -2
- data/lib/bigrig/models/container.rb +2 -2
- data/lib/bigrig/runner.rb +2 -10
- data/lib/bigrig/version.rb +1 -1
- data/lib/bigrig/waiter.rb +20 -0
- data/lib/bigrig.rb +1 -0
- data/spec/bigrig/actions/run_action_spec.rb +8 -0
- data/spec/bigrig/docker_adapter_spec.rb +1 -1
- data/spec/bigrig/models/container_spec.rb +0 -18
- data/spec/bigrig_spec.rb +20 -6
- data/spec/data/wait_for/Dockerfile +4 -0
- data/spec/data/wait_for/bigrig-wait.sh +5 -0
- data/spec/data/wait_for/bigrig.json +8 -0
- data/spec/data/wait_for_broken/Dockerfile +4 -0
- data/spec/data/wait_for_broken/bigrig-wait.sh +3 -0
- data/spec/data/wait_for_broken/bigrig.json +8 -0
- data/spec/vcr/Bigrig_DestroyAction/_perform/given_json_with_a_single_container/and_the_container_has_exited/should_remove_the_container.yml +65 -65
- data/spec/vcr/Bigrig_DestroyAction/_perform/given_json_with_a_single_container/and_the_container_is_running/kills_and_removes_the_container.yml +71 -71
- data/spec/vcr/Bigrig_DockerAdapter/_build/builds_the_given_directory.yml +11 -11
- data/spec/vcr/Bigrig_DockerAdapter/_build/passes_build_input_to_a_block.yml +5 -5
- data/spec/vcr/Bigrig_DockerAdapter/_container_exists_/when_the_container_does_not_exist/is_false.yml +20 -20
- data/spec/vcr/Bigrig_DockerAdapter/_container_exists_/when_the_container_exists/is_true.yml +13 -13
- data/spec/vcr/Bigrig_DockerAdapter/_image_id_by_tag/when_the_image_does_not_exist/raise_a_ImageNotFoundError.yml +20 -20
- data/spec/vcr/Bigrig_DockerAdapter/_image_id_by_tag/when_the_image_exists/returns_the_image_id.yml +19 -19
- data/spec/vcr/Bigrig_DockerAdapter/_kill/given_the_container_does_not_exist/should_raise_an_error.yml +20 -20
- data/spec/vcr/Bigrig_DockerAdapter/_kill/given_the_container_is_running/should_kill_the_container.yml +29 -29
- data/spec/vcr/Bigrig_DockerAdapter/_logs/streams_logs_to_a_block.yml +23 -23
- data/spec/vcr/Bigrig_DockerAdapter/_pull/given_a_block_to_capture_output/should_capture_output.yml +8 -8
- data/spec/vcr/Bigrig_DockerAdapter/_pull/given_the_repo_does_not_exist/raises_a_RepoNotFoundError.yml +3 -3
- data/spec/vcr/Bigrig_DockerAdapter/_pull/given_the_repo_exists/returns_the_image_id.yml +13 -13
- data/spec/vcr/Bigrig_DockerAdapter/_push/given_credentials/will_pass_login_and_password.yml +54 -54
- data/spec/vcr/Bigrig_DockerAdapter/_push/should_push_the_image.yml +1059 -553
- data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_does_not_exist/raises_a_ContainerNotFoundError.yml +40 -40
- data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_exists/should_remove_the_container.yml +44 -44
- data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_is_running/raises_a_ContainerRunningError.yml +13 -13
- data/spec/vcr/Bigrig_DockerAdapter/_remove_image/when_the_image_doesnt_exist/raises_an_error.yml +12 -12
- data/spec/vcr/Bigrig_DockerAdapter/_remove_image/when_the_image_exists/removes_the_image.yml +35 -35
- data/spec/vcr/Bigrig_DockerAdapter/_run/given_an_image_id_that_exists/and_a_name/starts_the_container_with_the_right_name.yml +35 -35
- 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 +35 -35
- data/spec/vcr/Bigrig_DockerAdapter/_run/given_an_image_id_that_exists/and_a_name_and_ports/starts_the_container_with_ports_exposed.yml +41 -41
- data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_does_not_exist/returns_false.yml +20 -20
- data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_is_not_running/returns_false.yml +13 -15
- data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_is_running/returns_true.yml +17 -17
- data/spec/vcr/Bigrig_DockerAdapter/_tag/should_tag_the_image.yml +34 -34
- data/spec/vcr/Bigrig_LogAction/_perform/follows_the_log.yml +43 -43
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_a_path/builds_the_image_before_starting_it.yml +222 -26
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_hosts_by_ip/should_pass_hosts_to_container.yml +180 -74
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_hosts_by_name/should_lookup_ips_for_hosts_with_a_hostname.yml +181 -75
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_links/should_pass_links_to_the_right_container.yml +351 -139
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_multiple_containers/launches_both_containers_in_parallel.yml +130 -130
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_multiple_containers/spins_up_multiple_containers.yml +140 -140
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_one_container/should_spin_up_a_single_container.yml +175 -69
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_one_container/when_a_dead_container_exists/should_remove_existing_containers.yml +159 -53
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes/should_pass_volumes_to_the_right_container.yml +180 -74
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes_from/should_pass_volumes_from_to_the_right_container.yml +351 -139
- data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes_from/starts_the_dependant_container_last.yml +130 -130
- data/spec/vcr/Bigrig_RunAction/_perform/when_activating_profiles_that_do_not_exist/ignores_the_missing_profile.yml +268 -77
- data/spec/vcr/Bigrig_RunAction/_perform/with_a_file_with_active_profiles/uses_the_overridden_image.yml +180 -74
- data/spec/vcr/bigrig/destroy/spec/data/single_json/kills_the_container.yml +28 -28
- data/spec/vcr/bigrig/dev/spec/data/dev_json/activates_the_dev_profile.yml +266 -158
- data/spec/vcr/bigrig/dev/spec/data/dev_json/destroys_containers_on_exit.yml +78 -158
- data/spec/vcr/bigrig/dev/spec/data/dev_json/starts_the_containers.yml +187 -191
- data/spec/vcr/bigrig/dev/spec/data/dev_json/tails_the_logs.yml +38 -118
- data/spec/vcr/bigrig/dev/spec/data/scan_json/leaves_unaffected_containers_alone_when_the_scanned_file_changes.yml +811 -345
- data/spec/vcr/bigrig/dev/spec/data/scan_json/restarts_dependant_containers_when_the_scanned_file_changes.yml +813 -375
- data/spec/vcr/bigrig/dev/spec/data/scan_json/restarts_the_container_when_the_scanned_file_changes.yml +855 -363
- data/spec/vcr/bigrig/logs/spec/data/log_json/tails_the_logs.yml +23 -23
- data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/leaves_existing_env_values_alone.yml +14 -14
- data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_env.yml +14 -14
- data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_tag.yml +17 -17
- data/spec/vcr/bigrig/run/spec/data/single_json/sends_the_name_of_the_container_to_stdout.yml +12 -12
- data/spec/vcr/bigrig/run/spec/data/single_json/starts_the_container.yml +17 -17
- data/spec/vcr/bigrig/run/spec/data/wait_for/bigrig_json/waits_for_wait_for.yml +180 -0
- data/spec/vcr/bigrig/run/spec/data/wait_for_broken_json/fails_with_an_error.yml +12 -12
- data/spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/-c/cleans_the_image_when_its_done.yml +28 -28
- data/spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/builds_and_pushes_the_image.yml +21 -21
- data/spec/vcr/bigrig_bin_bigrig_destroy_spec/data/single_json_kills_the_container.yml +28 -28
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_activates_the_dev_profile.yml +135 -486
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_starts_the_containers.yml +146 -472
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_tails_the_logs.yml +402 -192
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/scan_json_leaves_unaffected_containers_alone_when_the_scanned_file_changes.yml +980 -396
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/scan_json_restarts_dependant_containers_when_the_scanned_file_changes.yml +916 -388
- data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/scan_json_restarts_the_container_when_the_scanned_file_changes.yml +919 -391
- data/spec/vcr/bigrig_bin_bigrig_logs_spec/data/log_json_tails_the_logs.yml +23 -23
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_leaves_existing_env_values_alone.yml +159 -53
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_env.yml +159 -53
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_tag.yml +286 -31
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_sends_the_name_of_the_container_to_stdout.yml +159 -53
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_starts_the_container.yml +159 -53
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/wait_for/bigrig_json_waits_for_wait_for.yml +522 -0
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/wait_for_broken_json_fails_with_an_error.yml +175 -80
- data/spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_-c_cleans_the_image_when_its_done.yml +1036 -526
- data/spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_builds_and_pushes_the_image.yml +1024 -514
- metadata +17 -12
- data/spec/data/wait_for.json +0 -9
- data/spec/data/wait_for_broken.json +0 -9
- data/spec/vcr/bigrig/run/spec/data/wait_for_json/waits_for_wait_for.yml +0 -180
- data/spec/vcr/bigrig_bin_bigrig_run_spec/data/wait_for_json_waits_for_wait_for.yml +0 -412
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.21.4
|
12
12
|
Content-Type:
|
13
13
|
- text/plain
|
14
14
|
response:
|
@@ -19,15 +19,15 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 05 Jun 2015 23:27:30 GMT
|
23
23
|
Content-Length:
|
24
|
-
- '
|
24
|
+
- '1887'
|
25
25
|
body:
|
26
26
|
encoding: UTF-8
|
27
27
|
string: |
|
28
|
-
{"Architecture":"amd64","Author":"","Comment":"","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":"e5474231b7cd","Image":"4929b61a5fda27a07a26efc94ad61504c0f4aa2fb50471bfa4fd61c656d42131","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Container":"d6d34d2bfd452f4175eab78597ddd29856f0af494d503b00f4160d5eb3f13f1b","ContainerConfig":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/bin/sh","-c","#(nop) ENTRYPOINT [/bin/sh -c ruby /code/server.rb]"],"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":"e5474231b7cd","Image":"4929b61a5fda27a07a26efc94ad61504c0f4aa2fb50471bfa4fd61c656d42131","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2014-10-23T20:00:42.057514693Z","DockerVersion":"1.3.0","Id":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","Os":"linux","Parent":"4929b61a5fda27a07a26efc94ad61504c0f4aa2fb50471bfa4fd61c656d42131","Size":0,"VirtualSize":801041825}
|
28
|
+
{"Architecture":"amd64","Author":"","Comment":"","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":"e5474231b7cd","Image":"4929b61a5fda27a07a26efc94ad61504c0f4aa2fb50471bfa4fd61c656d42131","Labels":null,"MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Container":"d6d34d2bfd452f4175eab78597ddd29856f0af494d503b00f4160d5eb3f13f1b","ContainerConfig":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["/bin/sh","-c","#(nop) ENTRYPOINT [/bin/sh -c ruby /code/server.rb]"],"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":"e5474231b7cd","Image":"4929b61a5fda27a07a26efc94ad61504c0f4aa2fb50471bfa4fd61c656d42131","Labels":null,"MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":[],"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2014-10-23T20:00:42.057514693Z","DockerVersion":"1.3.0","Id":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","Os":"linux","Parent":"4929b61a5fda27a07a26efc94ad61504c0f4aa2fb50471bfa4fd61c656d42131","Size":0,"VirtualSize":801041825}
|
29
29
|
http_version:
|
30
|
-
recorded_at:
|
30
|
+
recorded_at: Fri, 05 Jun 2015 23:27:30 GMT
|
31
31
|
- request:
|
32
32
|
method: get
|
33
33
|
uri: "<DOCKER_HOST>/v1.16/containers/profiles/json"
|
@@ -36,24 +36,26 @@ http_interactions:
|
|
36
36
|
string: ''
|
37
37
|
headers:
|
38
38
|
User-Agent:
|
39
|
-
- Swipely/Docker-API 1.
|
39
|
+
- Swipely/Docker-API 1.21.4
|
40
40
|
Content-Type:
|
41
41
|
- text/plain
|
42
42
|
response:
|
43
43
|
status:
|
44
|
-
code:
|
44
|
+
code: 404
|
45
45
|
message:
|
46
46
|
headers:
|
47
47
|
Content-Type:
|
48
|
-
-
|
48
|
+
- text/plain; charset=utf-8
|
49
49
|
Date:
|
50
|
-
-
|
50
|
+
- Fri, 05 Jun 2015 23:27:30 GMT
|
51
|
+
Content-Length:
|
52
|
+
- '21'
|
51
53
|
body:
|
52
54
|
encoding: UTF-8
|
53
55
|
string: |
|
54
|
-
|
56
|
+
no such id: profiles
|
55
57
|
http_version:
|
56
|
-
recorded_at:
|
58
|
+
recorded_at: Fri, 05 Jun 2015 23:27:30 GMT
|
57
59
|
- request:
|
58
60
|
method: get
|
59
61
|
uri: "<DOCKER_HOST>/v1.16/containers/profiles/json"
|
@@ -62,47 +64,194 @@ http_interactions:
|
|
62
64
|
string: ''
|
63
65
|
headers:
|
64
66
|
User-Agent:
|
65
|
-
- Swipely/Docker-API 1.
|
67
|
+
- Swipely/Docker-API 1.21.4
|
66
68
|
Content-Type:
|
67
69
|
- text/plain
|
68
70
|
response:
|
69
71
|
status:
|
70
|
-
code:
|
72
|
+
code: 404
|
71
73
|
message:
|
72
74
|
headers:
|
73
75
|
Content-Type:
|
74
|
-
-
|
76
|
+
- text/plain; charset=utf-8
|
75
77
|
Date:
|
76
|
-
-
|
78
|
+
- Fri, 05 Jun 2015 23:27:30 GMT
|
79
|
+
Content-Length:
|
80
|
+
- '21'
|
77
81
|
body:
|
78
82
|
encoding: UTF-8
|
79
83
|
string: |
|
80
|
-
|
84
|
+
no such id: profiles
|
81
85
|
http_version:
|
82
|
-
recorded_at:
|
86
|
+
recorded_at: Fri, 05 Jun 2015 23:27:30 GMT
|
83
87
|
- request:
|
84
|
-
method:
|
85
|
-
uri: "<DOCKER_HOST>/v1.16/containers/
|
88
|
+
method: get
|
89
|
+
uri: "<DOCKER_HOST>/v1.16/containers/profiles/json"
|
86
90
|
body:
|
87
91
|
encoding: US-ASCII
|
88
92
|
string: ''
|
89
93
|
headers:
|
90
94
|
User-Agent:
|
91
|
-
- Swipely/Docker-API 1.
|
95
|
+
- Swipely/Docker-API 1.21.4
|
92
96
|
Content-Type:
|
93
97
|
- text/plain
|
94
98
|
response:
|
95
99
|
status:
|
96
|
-
code:
|
100
|
+
code: 404
|
101
|
+
message:
|
102
|
+
headers:
|
103
|
+
Content-Type:
|
104
|
+
- text/plain; charset=utf-8
|
105
|
+
Date:
|
106
|
+
- Fri, 05 Jun 2015 23:27:30 GMT
|
107
|
+
Content-Length:
|
108
|
+
- '21'
|
109
|
+
body:
|
110
|
+
encoding: UTF-8
|
111
|
+
string: |
|
112
|
+
no such id: profiles
|
113
|
+
http_version:
|
114
|
+
recorded_at: Fri, 05 Jun 2015 23:27:30 GMT
|
115
|
+
- request:
|
116
|
+
method: get
|
117
|
+
uri: "<DOCKER_HOST>/v1.16/containers/profiles/json"
|
118
|
+
body:
|
119
|
+
encoding: US-ASCII
|
120
|
+
string: ''
|
121
|
+
headers:
|
122
|
+
User-Agent:
|
123
|
+
- Swipely/Docker-API 1.21.4
|
124
|
+
Content-Type:
|
125
|
+
- text/plain
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 404
|
129
|
+
message:
|
130
|
+
headers:
|
131
|
+
Content-Type:
|
132
|
+
- text/plain; charset=utf-8
|
133
|
+
Date:
|
134
|
+
- Fri, 05 Jun 2015 23:27:30 GMT
|
135
|
+
Content-Length:
|
136
|
+
- '21'
|
137
|
+
body:
|
138
|
+
encoding: UTF-8
|
139
|
+
string: |
|
140
|
+
no such id: profiles
|
141
|
+
http_version:
|
142
|
+
recorded_at: Fri, 05 Jun 2015 23:27:30 GMT
|
143
|
+
- request:
|
144
|
+
method: get
|
145
|
+
uri: "<DOCKER_HOST>/v1.16/containers/profiles/json"
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: ''
|
149
|
+
headers:
|
150
|
+
User-Agent:
|
151
|
+
- Swipely/Docker-API 1.21.4
|
152
|
+
Content-Type:
|
153
|
+
- text/plain
|
154
|
+
response:
|
155
|
+
status:
|
156
|
+
code: 404
|
97
157
|
message:
|
98
158
|
headers:
|
159
|
+
Content-Type:
|
160
|
+
- text/plain; charset=utf-8
|
99
161
|
Date:
|
100
|
-
-
|
162
|
+
- Fri, 05 Jun 2015 23:27:30 GMT
|
163
|
+
Content-Length:
|
164
|
+
- '21'
|
165
|
+
body:
|
166
|
+
encoding: UTF-8
|
167
|
+
string: |
|
168
|
+
no such id: profiles
|
169
|
+
http_version:
|
170
|
+
recorded_at: Fri, 05 Jun 2015 23:27:30 GMT
|
171
|
+
- request:
|
172
|
+
method: get
|
173
|
+
uri: "<DOCKER_HOST>/v1.16/containers/profiles/json"
|
174
|
+
body:
|
175
|
+
encoding: US-ASCII
|
176
|
+
string: ''
|
177
|
+
headers:
|
178
|
+
User-Agent:
|
179
|
+
- Swipely/Docker-API 1.21.4
|
180
|
+
Content-Type:
|
181
|
+
- text/plain
|
182
|
+
response:
|
183
|
+
status:
|
184
|
+
code: 404
|
185
|
+
message:
|
186
|
+
headers:
|
187
|
+
Content-Type:
|
188
|
+
- text/plain; charset=utf-8
|
189
|
+
Date:
|
190
|
+
- Fri, 05 Jun 2015 23:27:30 GMT
|
191
|
+
Content-Length:
|
192
|
+
- '21'
|
101
193
|
body:
|
102
194
|
encoding: UTF-8
|
195
|
+
string: |
|
196
|
+
no such id: profiles
|
197
|
+
http_version:
|
198
|
+
recorded_at: Fri, 05 Jun 2015 23:27:30 GMT
|
199
|
+
- request:
|
200
|
+
method: get
|
201
|
+
uri: "<DOCKER_HOST>/v1.16/containers/profiles/json"
|
202
|
+
body:
|
203
|
+
encoding: US-ASCII
|
204
|
+
string: ''
|
205
|
+
headers:
|
206
|
+
User-Agent:
|
207
|
+
- Swipely/Docker-API 1.21.4
|
208
|
+
Content-Type:
|
209
|
+
- text/plain
|
210
|
+
response:
|
211
|
+
status:
|
212
|
+
code: 404
|
213
|
+
message:
|
214
|
+
headers:
|
215
|
+
Content-Type:
|
216
|
+
- text/plain; charset=utf-8
|
217
|
+
Date:
|
218
|
+
- Fri, 05 Jun 2015 23:27:30 GMT
|
219
|
+
Content-Length:
|
220
|
+
- '21'
|
221
|
+
body:
|
222
|
+
encoding: UTF-8
|
223
|
+
string: |
|
224
|
+
no such id: profiles
|
225
|
+
http_version:
|
226
|
+
recorded_at: Fri, 05 Jun 2015 23:27:30 GMT
|
227
|
+
- request:
|
228
|
+
method: get
|
229
|
+
uri: "<DOCKER_HOST>/v1.16/containers/profiles/json"
|
230
|
+
body:
|
231
|
+
encoding: US-ASCII
|
103
232
|
string: ''
|
233
|
+
headers:
|
234
|
+
User-Agent:
|
235
|
+
- Swipely/Docker-API 1.21.4
|
236
|
+
Content-Type:
|
237
|
+
- text/plain
|
238
|
+
response:
|
239
|
+
status:
|
240
|
+
code: 404
|
241
|
+
message:
|
242
|
+
headers:
|
243
|
+
Content-Type:
|
244
|
+
- text/plain; charset=utf-8
|
245
|
+
Date:
|
246
|
+
- Fri, 05 Jun 2015 23:27:30 GMT
|
247
|
+
Content-Length:
|
248
|
+
- '21'
|
249
|
+
body:
|
250
|
+
encoding: UTF-8
|
251
|
+
string: |
|
252
|
+
no such id: profiles
|
104
253
|
http_version:
|
105
|
-
recorded_at:
|
254
|
+
recorded_at: Fri, 05 Jun 2015 23:27:30 GMT
|
106
255
|
- request:
|
107
256
|
method: post
|
108
257
|
uri: "<DOCKER_HOST>/v1.16/containers/create?name=profiles"
|
@@ -111,7 +260,7 @@ http_interactions:
|
|
111
260
|
string: '{"Env":["NAME1=VALUE1A","NAME2=VALUE2"],"Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","ExposedPorts":{"80/tcp":{}}}'
|
112
261
|
headers:
|
113
262
|
User-Agent:
|
114
|
-
- Swipely/Docker-API 1.
|
263
|
+
- Swipely/Docker-API 1.21.4
|
115
264
|
Content-Type:
|
116
265
|
- application/json
|
117
266
|
response:
|
@@ -122,24 +271,24 @@ http_interactions:
|
|
122
271
|
Content-Type:
|
123
272
|
- application/json
|
124
273
|
Date:
|
125
|
-
-
|
274
|
+
- Fri, 05 Jun 2015 23:27:30 GMT
|
126
275
|
Content-Length:
|
127
276
|
- '90'
|
128
277
|
body:
|
129
278
|
encoding: UTF-8
|
130
279
|
string: |
|
131
|
-
{"Id":"
|
280
|
+
{"Id":"1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5","Warnings":null}
|
132
281
|
http_version:
|
133
|
-
recorded_at:
|
282
|
+
recorded_at: Fri, 05 Jun 2015 23:27:30 GMT
|
134
283
|
- request:
|
135
284
|
method: post
|
136
|
-
uri: "<DOCKER_HOST>/v1.16/containers/
|
285
|
+
uri: "<DOCKER_HOST>/v1.16/containers/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5/start"
|
137
286
|
body:
|
138
287
|
encoding: UTF-8
|
139
288
|
string: '{"Links":[],"ExtraHosts":[],"PortBindings":{"80/tcp":[{"HostPort":"4567"}]},"VolumesFrom":[],"Binds":[]}'
|
140
289
|
headers:
|
141
290
|
User-Agent:
|
142
|
-
- Swipely/Docker-API 1.
|
291
|
+
- Swipely/Docker-API 1.21.4
|
143
292
|
Content-Type:
|
144
293
|
- application/json
|
145
294
|
response:
|
@@ -148,10 +297,116 @@ http_interactions:
|
|
148
297
|
message:
|
149
298
|
headers:
|
150
299
|
Date:
|
151
|
-
-
|
300
|
+
- Fri, 05 Jun 2015 23:27:30 GMT
|
301
|
+
body:
|
302
|
+
encoding: UTF-8
|
303
|
+
string: ''
|
304
|
+
http_version:
|
305
|
+
recorded_at: Fri, 05 Jun 2015 23:27:30 GMT
|
306
|
+
- request:
|
307
|
+
method: get
|
308
|
+
uri: "<DOCKER_HOST>/v1.16/containers/profiles/json"
|
309
|
+
body:
|
310
|
+
encoding: US-ASCII
|
311
|
+
string: ''
|
312
|
+
headers:
|
313
|
+
User-Agent:
|
314
|
+
- Swipely/Docker-API 1.21.4
|
315
|
+
Content-Type:
|
316
|
+
- text/plain
|
317
|
+
response:
|
318
|
+
status:
|
319
|
+
code: 200
|
320
|
+
message:
|
321
|
+
headers:
|
322
|
+
Content-Type:
|
323
|
+
- application/json
|
324
|
+
Date:
|
325
|
+
- Fri, 05 Jun 2015 23:27:31 GMT
|
326
|
+
body:
|
327
|
+
encoding: UTF-8
|
328
|
+
string: |
|
329
|
+
{"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":["NAME1=VALUE1A","NAME2=VALUE2","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":"1b72a0375f91","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","Labels":{},"MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-06-05T23:27:30.459211365Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":[],"CapAdd":null,"CapDrop":null,"CgroupParent":"","ContainerIDFile":"","CpuShares":0,"CpusetCpus":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":[],"IpcMode":"","Links":null,"LogConfig":{"Config":null,"Type":"json-file"},"LxcConf":null,"Memory":0,"MemorySwap":0,"NetworkMode":"","PidMode":"","PortBindings":{"80/tcp":[{"HostIp":"","HostPort":"4567"}]},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"Ulimits":null,"VolumesFrom":[]},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5/hosts","Id":"1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","LogPath":"/mnt/sda1/var/lib/docker/containers/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5-json.log","MountLabel":"","Name":"/profiles","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.1.106","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:16a","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:01:6a","PortMapping":null,"Ports":{"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"4567"}]}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5/resolv.conf","RestartCount":0,"State":{"Dead":false,"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":24242,"Restarting":false,"Running":true,"StartedAt":"2015-06-05T23:27:30.954284229Z"},"Volumes":{},"VolumesRW":{}}
|
330
|
+
http_version:
|
331
|
+
recorded_at: Fri, 05 Jun 2015 23:27:31 GMT
|
332
|
+
- request:
|
333
|
+
method: post
|
334
|
+
uri: "<DOCKER_HOST>/v1.16/containers/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5/exec"
|
335
|
+
body:
|
336
|
+
encoding: UTF-8
|
337
|
+
string: '{"AttachStdin":false,"AttachStdout":true,"AttachStderr":true,"Tty":false,"Cmd":["ls","/bigrig-wait.sh"]}'
|
338
|
+
headers:
|
339
|
+
User-Agent:
|
340
|
+
- Swipely/Docker-API 1.21.4
|
341
|
+
Content-Type:
|
342
|
+
- application/json
|
343
|
+
response:
|
344
|
+
status:
|
345
|
+
code: 201
|
346
|
+
message:
|
347
|
+
headers:
|
348
|
+
Content-Type:
|
349
|
+
- application/json
|
350
|
+
Date:
|
351
|
+
- Fri, 05 Jun 2015 23:27:31 GMT
|
352
|
+
Content-Length:
|
353
|
+
- '74'
|
152
354
|
body:
|
153
355
|
encoding: UTF-8
|
356
|
+
string: |
|
357
|
+
{"Id":"29e9cc4beb041054dea5d0893206b1e2201953e181dd5aa5704f49eef12f94ae"}
|
358
|
+
http_version:
|
359
|
+
recorded_at: Fri, 05 Jun 2015 23:27:31 GMT
|
360
|
+
- request:
|
361
|
+
method: post
|
362
|
+
uri: "<DOCKER_HOST>/v1.16/exec/29e9cc4beb041054dea5d0893206b1e2201953e181dd5aa5704f49eef12f94ae/start"
|
363
|
+
body:
|
364
|
+
encoding: UTF-8
|
365
|
+
string: '{"Tty":false,"Detach":false}'
|
366
|
+
headers:
|
367
|
+
User-Agent:
|
368
|
+
- Swipely/Docker-API 1.21.4
|
369
|
+
Content-Type:
|
370
|
+
- application/json
|
371
|
+
response:
|
372
|
+
status:
|
373
|
+
code: 200
|
374
|
+
message:
|
375
|
+
headers:
|
376
|
+
Content-Type:
|
377
|
+
- application/vnd.docker.raw-stream
|
378
|
+
body:
|
379
|
+
encoding: UTF-8
|
380
|
+
string: !binary |-
|
381
|
+
AgAAAAAAAD1sczogY2Fubm90IGFjY2VzcyAvYmlncmlnLXdhaXQuc2g6IE5v
|
382
|
+
IHN1Y2ggZmlsZSBvciBkaXJlY3RvcnkK
|
383
|
+
http_version:
|
384
|
+
recorded_at: Fri, 05 Jun 2015 23:27:31 GMT
|
385
|
+
- request:
|
386
|
+
method: get
|
387
|
+
uri: "<DOCKER_HOST>/v1.16/exec/29e9cc4beb041054dea5d0893206b1e2201953e181dd5aa5704f49eef12f94ae/json"
|
388
|
+
body:
|
389
|
+
encoding: US-ASCII
|
154
390
|
string: ''
|
391
|
+
headers:
|
392
|
+
User-Agent:
|
393
|
+
- Swipely/Docker-API 1.21.4
|
394
|
+
Content-Type:
|
395
|
+
- text/plain
|
396
|
+
response:
|
397
|
+
status:
|
398
|
+
code: 200
|
399
|
+
message:
|
400
|
+
headers:
|
401
|
+
Content-Type:
|
402
|
+
- application/json
|
403
|
+
Date:
|
404
|
+
- Fri, 05 Jun 2015 23:27:31 GMT
|
405
|
+
body:
|
406
|
+
encoding: UTF-8
|
407
|
+
string: '{"ID":"29e9cc4beb041054dea5d0893206b1e2201953e181dd5aa5704f49eef12f94ae","Running":false,"ExitCode":2,"ProcessConfig":{"privileged":false,"user":"","tty":false,"entrypoint":"ls","arguments":["/bigrig-wait.sh"]},"OpenStdin":false,"OpenStderr":true,"OpenStdout":true,"Container":{"State":{"Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":24242,"ExitCode":0,"Error":"","StartedAt":"2015-06-05T23:27:30.954284229Z","FinishedAt":"0001-01-01T00:00:00Z"},"ID":"1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5","Created":"2015-06-05T23:27:30.459211365Z","Path":"/bin/sh","Args":["-c","ruby
|
408
|
+
/code/server.rb"],"Config":{"Hostname":"1b72a0375f91","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"Cpuset":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"ExposedPorts":{"80/tcp":{}},"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["NAME1=VALUE1A","NAME2=VALUE2","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"],"Cmd":null,"Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","Volumes":null,"WorkingDir":"","Entrypoint":["/bin/sh","-c","ruby
|
409
|
+
/code/server.rb"],"NetworkDisabled":false,"MacAddress":"","OnBuild":null,"Labels":{}},"Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","NetworkSettings":{"IPAddress":"172.17.1.106","IPPrefixLen":16,"MacAddress":"02:42:ac:11:01:6a","LinkLocalIPv6Address":"fe80::42:acff:fe11:16a","LinkLocalIPv6PrefixLen":64,"GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"Gateway":"172.17.42.1","IPv6Gateway":"","Bridge":"docker0","PortMapping":null,"Ports":{"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"4567"}]}},"ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5/resolv.conf","HostnamePath":"/mnt/sda1/var/lib/docker/containers/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5/hosts","LogPath":"/mnt/sda1/var/lib/docker/containers/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5/1b72a0375f91f3e4eae3ba9169096cbe6ebab112bc738a9ed7dce5c31fbb61d5-json.log","Name":"/profiles","Driver":"aufs","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","AppArmorProfile":"","RestartCount":0,"UpdateDns":false,"Volumes":{},"VolumesRW":{},"AppliedVolumesFrom":null}}'
|
155
410
|
http_version:
|
156
|
-
recorded_at:
|
411
|
+
recorded_at: Fri, 05 Jun 2015 23:27:31 GMT
|
157
412
|
recorded_with: VCR 2.9.3
|