Last active
October 12, 2015 21:44
-
-
Save chasebolt/197c28bc9f1aee1d1017 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/server/recipes/default.rb | |
================================================================================ | |
NoMethodError | |
------------- | |
undefined method `depends_on' for Chef::Resource::DockerContainer | |
Cookbook Trace: | |
--------------- | |
/var/chef/cache/cookbooks/docker-apps/recipes/test.rb:70:in `block in from_file' | |
/var/chef/cache/cookbooks/docker-apps/recipes/test.rb:68:in `from_file' | |
/var/chef/cache/cookbooks/server/recipes/default.rb:13:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/var/chef/cache/cookbooks/docker-apps/recipes/test.rb: | |
63: | |
64: docker_image 'alpine' do | |
65: tag 'latest' | |
66: action :pull_if_missing | |
67: end | |
68: docker_container 'alpine' do | |
69: command 'sleep 3000' | |
70>> depends_on 'docker_image[some_image]' | |
71: depends_on 'template[/tmp/some_config.ini]' | |
72: depends_on 'template[/tmp/another_config.ini]' | |
73: action :run | |
74: end | |
75: | |
Running handlers: | |
[2015-10-12T14:44:21-07:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2015-10-12T14:44:21-07:00] ERROR: Exception handlers complete | |
Chef Client failed. 0 resources updated in 5.170945661 seconds | |
[2015-10-12T14:44:21-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
[2015-10-12T14:44:21-07:00] ERROR: undefined method `depends_on' for Chef::Resource::DockerContainer | |
[2015-10-12T14:44:21-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment