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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigrig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hawk Newton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05
|
11
|
+
date: 2015-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.27.1
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.27.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: vcr
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - '='
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
159
|
+
version: 1.21.4
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - '='
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.
|
166
|
+
version: 1.21.4
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: filewatcher
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -217,6 +217,7 @@ files:
|
|
217
217
|
- lib/bigrig/runner.rb
|
218
218
|
- lib/bigrig/tar.rb
|
219
219
|
- lib/bigrig/version.rb
|
220
|
+
- lib/bigrig/waiter.rb
|
220
221
|
- spec/bigrig/actions/destroy_action_spec.rb
|
221
222
|
- spec/bigrig/actions/dev_action_spec.rb
|
222
223
|
- spec/bigrig/actions/log_action_spec.rb
|
@@ -258,8 +259,12 @@ files:
|
|
258
259
|
- spec/data/tiny-image.tar
|
259
260
|
- spec/data/volumes.json
|
260
261
|
- spec/data/volumes_from.json
|
261
|
-
- spec/data/wait_for
|
262
|
-
- spec/data/
|
262
|
+
- spec/data/wait_for/Dockerfile
|
263
|
+
- spec/data/wait_for/bigrig-wait.sh
|
264
|
+
- spec/data/wait_for/bigrig.json
|
265
|
+
- spec/data/wait_for_broken/Dockerfile
|
266
|
+
- spec/data/wait_for_broken/bigrig-wait.sh
|
267
|
+
- spec/data/wait_for_broken/bigrig.json
|
263
268
|
- spec/spec_helper.rb
|
264
269
|
- spec/support/bigrig_vcr
|
265
270
|
- spec/support/vcr.rb
|
@@ -320,8 +325,8 @@ files:
|
|
320
325
|
- spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_tag.yml
|
321
326
|
- spec/vcr/bigrig/run/spec/data/single_json/sends_the_name_of_the_container_to_stdout.yml
|
322
327
|
- spec/vcr/bigrig/run/spec/data/single_json/starts_the_container.yml
|
328
|
+
- spec/vcr/bigrig/run/spec/data/wait_for/bigrig_json/waits_for_wait_for.yml
|
323
329
|
- spec/vcr/bigrig/run/spec/data/wait_for_broken_json/fails_with_an_error.yml
|
324
|
-
- spec/vcr/bigrig/run/spec/data/wait_for_json/waits_for_wait_for.yml
|
325
330
|
- spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/-c/cleans_the_image_when_its_done.yml
|
326
331
|
- spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/builds_and_pushes_the_image.yml
|
327
332
|
- spec/vcr/bigrig_bin_bigrig_destroy_spec/data/single_json_kills_the_container.yml
|
@@ -337,8 +342,8 @@ files:
|
|
337
342
|
- spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_tag.yml
|
338
343
|
- spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_sends_the_name_of_the_container_to_stdout.yml
|
339
344
|
- spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_starts_the_container.yml
|
345
|
+
- spec/vcr/bigrig_bin_bigrig_run_spec/data/wait_for/bigrig_json_waits_for_wait_for.yml
|
340
346
|
- spec/vcr/bigrig_bin_bigrig_run_spec/data/wait_for_broken_json_fails_with_an_error.yml
|
341
|
-
- spec/vcr/bigrig_bin_bigrig_run_spec/data/wait_for_json_waits_for_wait_for.yml
|
342
347
|
- spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_-c_cleans_the_image_when_its_done.yml
|
343
348
|
- spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_builds_and_pushes_the_image.yml
|
344
349
|
- spec/waitfor_spec.rb
|
data/spec/data/wait_for.json
DELETED
@@ -1,180 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: "<DOCKER_HOST>/v1.16/containers/wait_for-test/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: 200
|
17
|
-
message:
|
18
|
-
headers:
|
19
|
-
Content-Type:
|
20
|
-
- application/json
|
21
|
-
Date:
|
22
|
-
- Thu, 21 May 2015 23:27:46 GMT
|
23
|
-
body:
|
24
|
-
encoding: UTF-8
|
25
|
-
string: |
|
26
|
-
{"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":"3d59d6454aa5","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-05-21T23:27:43.442382727Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":["f6ce28d9d7c5a5c9663b983b6105328e0a76c41e8a455d185670fa4c3ff261fd"],"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":{},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"Ulimits":null,"VolumesFrom":[]},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/hosts","Id":"3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","LogPath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff-json.log","MountLabel":"","Name":"/wait_for-test","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.0.75","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:4b","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:00:4b","PortMapping":null,"Ports":{"80/tcp":null}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/resolv.conf","RestartCount":0,"State":{"Dead":false,"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":2713,"Restarting":false,"Running":true,"StartedAt":"2015-05-21T23:27:43.82703865Z"},"Volumes":{},"VolumesRW":{}}
|
27
|
-
http_version:
|
28
|
-
recorded_at: Thu, 21 May 2015 23:27:46 GMT
|
29
|
-
- request:
|
30
|
-
method: post
|
31
|
-
uri: "<DOCKER_HOST>/v1.16/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/exec"
|
32
|
-
body:
|
33
|
-
encoding: UTF-8
|
34
|
-
string: '{"AttachStdin":false,"AttachStdout":true,"AttachStderr":true,"Tty":false,"Cmd":["cat","/tmp/result.txt"]}'
|
35
|
-
headers:
|
36
|
-
User-Agent:
|
37
|
-
- Swipely/Docker-API 1.20.0
|
38
|
-
Content-Type:
|
39
|
-
- application/json
|
40
|
-
response:
|
41
|
-
status:
|
42
|
-
code: 201
|
43
|
-
message:
|
44
|
-
headers:
|
45
|
-
Content-Type:
|
46
|
-
- application/json
|
47
|
-
Date:
|
48
|
-
- Thu, 21 May 2015 23:27:46 GMT
|
49
|
-
Content-Length:
|
50
|
-
- '74'
|
51
|
-
body:
|
52
|
-
encoding: UTF-8
|
53
|
-
string: |
|
54
|
-
{"Id":"f790d63e79eca7aa1ab7d8b4b925c00a0e79964ef09fe7f524df0bc6e84ab090"}
|
55
|
-
http_version:
|
56
|
-
recorded_at: Thu, 21 May 2015 23:27:46 GMT
|
57
|
-
- request:
|
58
|
-
method: post
|
59
|
-
uri: "<DOCKER_HOST>/v1.16/exec/f790d63e79eca7aa1ab7d8b4b925c00a0e79964ef09fe7f524df0bc6e84ab090/start"
|
60
|
-
body:
|
61
|
-
encoding: UTF-8
|
62
|
-
string: '{"Tty":false,"Detach":false}'
|
63
|
-
headers:
|
64
|
-
User-Agent:
|
65
|
-
- Swipely/Docker-API 1.20.0
|
66
|
-
Content-Type:
|
67
|
-
- application/json
|
68
|
-
response:
|
69
|
-
status:
|
70
|
-
code: 200
|
71
|
-
message:
|
72
|
-
headers:
|
73
|
-
Content-Type:
|
74
|
-
- application/vnd.docker.raw-stream
|
75
|
-
body:
|
76
|
-
encoding: UTF-8
|
77
|
-
string: !binary |-
|
78
|
-
AQAAAAAAAAIyCg==
|
79
|
-
http_version:
|
80
|
-
recorded_at: Thu, 21 May 2015 23:27:46 GMT
|
81
|
-
- request:
|
82
|
-
method: get
|
83
|
-
uri: "<DOCKER_HOST>/v1.16/exec/f790d63e79eca7aa1ab7d8b4b925c00a0e79964ef09fe7f524df0bc6e84ab090/json"
|
84
|
-
body:
|
85
|
-
encoding: US-ASCII
|
86
|
-
string: ''
|
87
|
-
headers:
|
88
|
-
User-Agent:
|
89
|
-
- Swipely/Docker-API 1.20.0
|
90
|
-
Content-Type:
|
91
|
-
- text/plain
|
92
|
-
response:
|
93
|
-
status:
|
94
|
-
code: 200
|
95
|
-
message:
|
96
|
-
headers:
|
97
|
-
Content-Type:
|
98
|
-
- application/json
|
99
|
-
Date:
|
100
|
-
- Thu, 21 May 2015 23:27:46 GMT
|
101
|
-
body:
|
102
|
-
encoding: UTF-8
|
103
|
-
string: '{"ID":"f790d63e79eca7aa1ab7d8b4b925c00a0e79964ef09fe7f524df0bc6e84ab090","Running":false,"ExitCode":0,"ProcessConfig":{"privileged":false,"user":"","tty":false,"entrypoint":"cat","arguments":["/tmp/result.txt"]},"OpenStdin":false,"OpenStderr":true,"OpenStdout":true,"Container":{"State":{"Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":2713,"ExitCode":0,"Error":"","StartedAt":"2015-05-21T23:27:43.82703865Z","FinishedAt":"0001-01-01T00:00:00Z"},"ID":"3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff","Created":"2015-05-21T23:27:43.442382727Z","Path":"/bin/sh","Args":["-c","ruby
|
104
|
-
/code/server.rb"],"Config":{"Hostname":"3d59d6454aa5","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":["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
|
105
|
-
/code/server.rb"],"NetworkDisabled":false,"MacAddress":"","OnBuild":null,"Labels":{}},"Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","NetworkSettings":{"IPAddress":"172.17.0.75","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:4b","LinkLocalIPv6Address":"fe80::42:acff:fe11:4b","LinkLocalIPv6PrefixLen":64,"GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"Gateway":"172.17.42.1","IPv6Gateway":"","Bridge":"docker0","PortMapping":null,"Ports":{"80/tcp":null}},"ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/resolv.conf","HostnamePath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/hosts","LogPath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff-json.log","Name":"/wait_for-test","Driver":"aufs","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","AppArmorProfile":"","RestartCount":0,"UpdateDns":false,"Volumes":{},"VolumesRW":{},"AppliedVolumesFrom":null}}'
|
106
|
-
http_version:
|
107
|
-
recorded_at: Thu, 21 May 2015 23:27:46 GMT
|
108
|
-
- request:
|
109
|
-
method: get
|
110
|
-
uri: "<DOCKER_HOST>/v1.16/containers/wait_for-test/json"
|
111
|
-
body:
|
112
|
-
encoding: US-ASCII
|
113
|
-
string: ''
|
114
|
-
headers:
|
115
|
-
User-Agent:
|
116
|
-
- Swipely/Docker-API 1.20.0
|
117
|
-
Content-Type:
|
118
|
-
- text/plain
|
119
|
-
response:
|
120
|
-
status:
|
121
|
-
code: 200
|
122
|
-
message:
|
123
|
-
headers:
|
124
|
-
Content-Type:
|
125
|
-
- application/json
|
126
|
-
Date:
|
127
|
-
- Thu, 21 May 2015 23:27:46 GMT
|
128
|
-
body:
|
129
|
-
encoding: UTF-8
|
130
|
-
string: |
|
131
|
-
{"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":"3d59d6454aa5","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-05-21T23:27:43.442382727Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":["f6ce28d9d7c5a5c9663b983b6105328e0a76c41e8a455d185670fa4c3ff261fd","f790d63e79eca7aa1ab7d8b4b925c00a0e79964ef09fe7f524df0bc6e84ab090"],"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":{},"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"Ulimits":null,"VolumesFrom":[]},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/hosts","Id":"3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff","Image":"b9c5be3a918d80b0d898ed8eca3fc76f75c482b531238e539cb00f75bb4e12d2","LogPath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff-json.log","MountLabel":"","Name":"/wait_for-test","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.0.75","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:4b","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:00:4b","PortMapping":null,"Ports":{"80/tcp":null}},"Path":"/bin/sh","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/resolv.conf","RestartCount":0,"State":{"Dead":false,"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":2713,"Restarting":false,"Running":true,"StartedAt":"2015-05-21T23:27:43.82703865Z"},"Volumes":{},"VolumesRW":{}}
|
132
|
-
http_version:
|
133
|
-
recorded_at: Thu, 21 May 2015 23:27:46 GMT
|
134
|
-
- request:
|
135
|
-
method: post
|
136
|
-
uri: "<DOCKER_HOST>/v1.16/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff/kill"
|
137
|
-
body:
|
138
|
-
encoding: US-ASCII
|
139
|
-
string: ''
|
140
|
-
headers:
|
141
|
-
User-Agent:
|
142
|
-
- Swipely/Docker-API 1.20.0
|
143
|
-
Content-Type:
|
144
|
-
- text/plain
|
145
|
-
response:
|
146
|
-
status:
|
147
|
-
code: 204
|
148
|
-
message:
|
149
|
-
headers:
|
150
|
-
Date:
|
151
|
-
- Thu, 21 May 2015 23:27:46 GMT
|
152
|
-
body:
|
153
|
-
encoding: UTF-8
|
154
|
-
string: ''
|
155
|
-
http_version:
|
156
|
-
recorded_at: Thu, 21 May 2015 23:27:46 GMT
|
157
|
-
- request:
|
158
|
-
method: delete
|
159
|
-
uri: "<DOCKER_HOST>/v1.16/containers/3d59d6454aa50c00bca4b73e58bdfe2e5864d2706e64b77983ff3b17886406ff"
|
160
|
-
body:
|
161
|
-
encoding: US-ASCII
|
162
|
-
string: ''
|
163
|
-
headers:
|
164
|
-
User-Agent:
|
165
|
-
- Swipely/Docker-API 1.20.0
|
166
|
-
Content-Type:
|
167
|
-
- text/plain
|
168
|
-
response:
|
169
|
-
status:
|
170
|
-
code: 204
|
171
|
-
message:
|
172
|
-
headers:
|
173
|
-
Date:
|
174
|
-
- Thu, 21 May 2015 23:27:46 GMT
|
175
|
-
body:
|
176
|
-
encoding: UTF-8
|
177
|
-
string: ''
|
178
|
-
http_version:
|
179
|
-
recorded_at: Thu, 21 May 2015 23:27:46 GMT
|
180
|
-
recorded_with: VCR 2.9.3
|