Skip to content

Instantly share code, notes, and snippets.

@tonistiigi
Created November 30, 2016 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonistiigi/86badf5a41dff3fe53bd68d8e83e4ec4 to your computer and use it in GitHub Desktop.
Save tonistiigi/86badf5a41dff3fe53bd68d8e83e4ec4 to your computer and use it in GitHub Desktop.
root@tonis-ubuntu-2gb-sfo1-01:~/Dockerfile# bin/console test:serverspec --threads=auto
Executing test:serverspec (2 threads, 5 retries)
. Run serverspec for webdevops/php:ubuntu-14.04 finished (duration: 0:02:40)
. Run serverspec for webdevops/php:alpine-3-php7 finished (duration: 0:02:41)
. Run serverspec for webdevops/php:centos-7-php56 finished (duration: 0:02:39)
. Run serverspec for webdevops/php:debian-8 finished (duration: 0:02:40)
. Run serverspec for webdevops/php:ubuntu-16.04 finished (duration: 0:02:36)
. Run serverspec for webdevops/php:debian-8-php7 finished (duration: 0:02:36)
. Run serverspec for webdevops/php:debian-7 finished (duration: 0:02:38)
. Run serverspec for webdevops/php:ubuntu-15.04 finished (duration: 0:02:36)
. Run serverspec for webdevops/php:ubuntu-15.10 finished (duration: 0:05:10)
. Run serverspec for webdevops/php:alpine-3 FAILED (duration: 0:12:57)
. Run serverspec for webdevops/php:debian-9 finished (duration: 0:02:37)
-> finished 11 tasks
Task DockerTestServerspec|webdevops/php:alpine-3 (duration: 0:12:57):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ERROR OUTPUT --
PythonAction Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/doit/action.py", line 383, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "/root/Dockerfile/bin/webdevops/taskloader/BaseTaskLoader.py", line 99, in task_runner
raise Exception(out)
Exception: Execute: bundle exec rspec --pattern spec/docker/php_spec.rb
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................F...............................................
Failures:
1) Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Failure/Error: its(:stdout) { should match %r!PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)! }
expected "PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25) \nCopyright (c) 1997-2016 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\n" to match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Diff:
@@ -1,2 +1,4 @@
-/PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
+PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25)
+Copyright (c) 1997-2016 The PHP Group
+Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Shared Example Group: "php7::cli::version" called from ./spec/collection/php7.rb:4
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/version.rb:11:in `block (3 levels) in <top (required)>'
2) Dockerfile Command "php -m" stdout should contain "Zend OPcache"
Failure/Error: its(:stdout) { should contain('Zend OPcache') }
expected "[PHP Modules]\napc\napcu\nbcmath\nbz2\ncalendar\nCore\nctype\ncurl\ndate\ndom\nereg\nexif\nfileinfo\...\nsysvshm\ntokenizer\nwddx\nxml\nxmlreader\nxmlrpc\nxmlwriter\nxsl\nzip\nzlib\n\n[Zend Modules]\n\n" to contain "Zend OPcache"
Shared Example Group: "php7::modules" called from ./spec/collection/php7.rb:6
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/modules.rb:119:in `block (3 levels) in <top (required)>'
Finished in 2 minutes 34.7 seconds (files took 1.31 seconds to load)
882 examples, 2 failures
Failed examples:
rspec ./spec/docker/php_spec.rb[1:86:1:1] # Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
rspec ./spec/docker/php_spec.rb[1:88:1:1] # Dockerfile Command "php -m" stdout should contain "Zend OPcache"
>> failed command with return code 1
failed, retrying... (try 1)
Execute: bundle exec rspec --pattern spec/docker/php_spec.rb
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................F...............................................
Failures:
1) Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Failure/Error: its(:stdout) { should match %r!PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)! }
expected "PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25) \nCopyright (c) 1997-2016 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\n" to match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Diff:
@@ -1,2 +1,4 @@
-/PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
+PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25)
+Copyright (c) 1997-2016 The PHP Group
+Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Shared Example Group: "php7::cli::version" called from ./spec/collection/php7.rb:4
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/version.rb:11:in `block (3 levels) in <top (required)>'
2) Dockerfile Command "php -m" stdout should contain "Zend OPcache"
Failure/Error: its(:stdout) { should contain('Zend OPcache') }
expected "[PHP Modules]\napc\napcu\nbcmath\nbz2\ncalendar\nCore\nctype\ncurl\ndate\ndom\nereg\nexif\nfileinfo\...\nsysvshm\ntokenizer\nwddx\nxml\nxmlreader\nxmlrpc\nxmlwriter\nxsl\nzip\nzlib\n\n[Zend Modules]\n\n" to contain "Zend OPcache"
Shared Example Group: "php7::modules" called from ./spec/collection/php7.rb:6
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/modules.rb:119:in `block (3 levels) in <top (required)>'
Finished in 2 minutes 32.5 seconds (files took 1.26 seconds to load)
882 examples, 2 failures
Failed examples:
rspec ./spec/docker/php_spec.rb[1:86:1:1] # Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
rspec ./spec/docker/php_spec.rb[1:88:1:1] # Dockerfile Command "php -m" stdout should contain "Zend OPcache"
>> failed command with return code 1
failed, retrying... (try 2)
Execute: bundle exec rspec --pattern spec/docker/php_spec.rb
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................F...............................................
Failures:
1) Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Failure/Error: its(:stdout) { should match %r!PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)! }
expected "PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25) \nCopyright (c) 1997-2016 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\n" to match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Diff:
@@ -1,2 +1,4 @@
-/PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
+PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25)
+Copyright (c) 1997-2016 The PHP Group
+Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Shared Example Group: "php7::cli::version" called from ./spec/collection/php7.rb:4
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/version.rb:11:in `block (3 levels) in <top (required)>'
2) Dockerfile Command "php -m" stdout should contain "Zend OPcache"
Failure/Error: its(:stdout) { should contain('Zend OPcache') }
expected "[PHP Modules]\napc\napcu\nbcmath\nbz2\ncalendar\nCore\nctype\ncurl\ndate\ndom\nereg\nexif\nfileinfo\...\nsysvshm\ntokenizer\nwddx\nxml\nxmlreader\nxmlrpc\nxmlwriter\nxsl\nzip\nzlib\n\n[Zend Modules]\n\n" to contain "Zend OPcache"
Shared Example Group: "php7::modules" called from ./spec/collection/php7.rb:6
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/modules.rb:119:in `block (3 levels) in <top (required)>'
Finished in 2 minutes 30.5 seconds (files took 1.16 seconds to load)
882 examples, 2 failures
Failed examples:
rspec ./spec/docker/php_spec.rb[1:86:1:1] # Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
rspec ./spec/docker/php_spec.rb[1:88:1:1] # Dockerfile Command "php -m" stdout should contain "Zend OPcache"
>> failed command with return code 1
failed, retrying... (try 3)
Execute: bundle exec rspec --pattern spec/docker/php_spec.rb
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................F...............................................
Failures:
1) Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Failure/Error: its(:stdout) { should match %r!PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)! }
expected "PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25) \nCopyright (c) 1997-2016 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\n" to match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Diff:
@@ -1,2 +1,4 @@
-/PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
+PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25)
+Copyright (c) 1997-2016 The PHP Group
+Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Shared Example Group: "php7::cli::version" called from ./spec/collection/php7.rb:4
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/version.rb:11:in `block (3 levels) in <top (required)>'
2) Dockerfile Command "php -m" stdout should contain "Zend OPcache"
Failure/Error: its(:stdout) { should contain('Zend OPcache') }
expected "[PHP Modules]\napc\napcu\nbcmath\nbz2\ncalendar\nCore\nctype\ncurl\ndate\ndom\nereg\nexif\nfileinfo\...\nsysvshm\ntokenizer\nwddx\nxml\nxmlreader\nxmlrpc\nxmlwriter\nxsl\nzip\nzlib\n\n[Zend Modules]\n\n" to contain "Zend OPcache"
Shared Example Group: "php7::modules" called from ./spec/collection/php7.rb:6
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/modules.rb:119:in `block (3 levels) in <top (required)>'
Finished in 2 minutes 31.6 seconds (files took 1.85 seconds to load)
882 examples, 2 failures
Failed examples:
rspec ./spec/docker/php_spec.rb[1:86:1:1] # Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
rspec ./spec/docker/php_spec.rb[1:88:1:1] # Dockerfile Command "php -m" stdout should contain "Zend OPcache"
>> failed command with return code 1
failed, retrying... (try 4)
Execute: bundle exec rspec --pattern spec/docker/php_spec.rb
...................................................................................................................................F........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................F...............................................
Failures:
1) Dockerfile File "/usr/local/bin/yum-install" should be executable
Failure/Error: it { should be_executable.by('group') }
expected File "/usr/local/bin/yum-install" to be executable
Shared Example Group: "bootstrap::layout" called from ./spec/collection/bootstrap.rb:2
Shared Example Group: "collection::bootstrap" called from ./spec/docker/php_spec.rb:11
# ./spec/shared/bootstrap/layout.rb:72:in `block (4 levels) in <top (required)>'
2) Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Failure/Error: its(:stdout) { should match %r!PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)! }
expected "PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25) \nCopyright (c) 1997-2016 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\n" to match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Diff:
@@ -1,2 +1,4 @@
-/PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
+PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25)
+Copyright (c) 1997-2016 The PHP Group
+Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Shared Example Group: "php7::cli::version" called from ./spec/collection/php7.rb:4
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/version.rb:11:in `block (3 levels) in <top (required)>'
3) Dockerfile Command "php -m" stdout should contain "Zend OPcache"
Failure/Error: its(:stdout) { should contain('Zend OPcache') }
expected "[PHP Modules]\napc\napcu\nbcmath\nbz2\ncalendar\nCore\nctype\ncurl\ndate\ndom\nereg\nexif\nfileinfo\...\nsysvshm\ntokenizer\nwddx\nxml\nxmlreader\nxmlrpc\nxmlwriter\nxsl\nzip\nzlib\n\n[Zend Modules]\n\n" to contain "Zend OPcache"
Shared Example Group: "php7::modules" called from ./spec/collection/php7.rb:6
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/modules.rb:119:in `block (3 levels) in <top (required)>'
Finished in 2 minutes 31.3 seconds (files took 1.36 seconds to load)
882 examples, 3 failures
Failed examples:
rspec ./spec/docker/php_spec.rb[1:9:14] # Dockerfile File "/usr/local/bin/yum-install" should be executable
rspec ./spec/docker/php_spec.rb[1:86:1:1] # Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
rspec ./spec/docker/php_spec.rb[1:88:1:1] # Dockerfile Command "php -m" stdout should contain "Zend OPcache"
>> failed command with return code 1
failed, giving up
:: end of output "DockerTestServerspec|webdevops/php:alpine-3"
> finished execution in 0:21:00 with errors (exitcode 2)
root@tonis-ubuntu-2gb-sfo1-01:~/Dockerfile# bin/console test:serverspec
Executing test:serverspec (1 threads, 5 retries)
. Run serverspec for webdevops/php:alpine-3-php7 finished (duration: 0:01:14)
. Run serverspec for webdevops/php:ubuntu-14.04 finished (duration: 0:01:11)
. Run serverspec for webdevops/php:debian-8 finished (duration: 0:01:16)
. Run serverspec for webdevops/php:centos-7-php56 finished (duration: 0:01:12)
. Run serverspec for webdevops/php:debian-8-php7 finished (duration: 0:01:12)
. Run serverspec for webdevops/php:ubuntu-16.04 finished (duration: 0:01:11)
. Run serverspec for webdevops/php:alpine-3 FAILED (duration: 0:05:58)
-> finished 7 tasks
Task DockerTestServerspec|webdevops/php:alpine-3 (duration: 0:05:58):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ERROR OUTPUT --
PythonAction Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/doit/action.py", line 383, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "/root/Dockerfile/bin/webdevops/taskloader/BaseTaskLoader.py", line 99, in task_runner
raise Exception(out)
Exception: Execute: bundle exec rspec --pattern spec/docker/php_spec.rb
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................F...............................................
Failures:
1) Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Failure/Error: its(:stdout) { should match %r!PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)! }
expected "PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25) \nCopyright (c) 1997-2016 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\n" to match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Diff:
@@ -1,2 +1,4 @@
-/PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
+PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25)
+Copyright (c) 1997-2016 The PHP Group
+Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Shared Example Group: "php7::cli::version" called from ./spec/collection/php7.rb:4
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/version.rb:11:in `block (3 levels) in <top (required)>'
2) Dockerfile Command "php -m" stdout should contain "Zend OPcache"
Failure/Error: its(:stdout) { should contain('Zend OPcache') }
expected "[PHP Modules]\napc\napcu\nbcmath\nbz2\ncalendar\nCore\nctype\ncurl\ndate\ndom\nereg\nexif\nfileinfo\...\nsysvshm\ntokenizer\nwddx\nxml\nxmlreader\nxmlrpc\nxmlwriter\nxsl\nzip\nzlib\n\n[Zend Modules]\n\n" to contain "Zend OPcache"
Shared Example Group: "php7::modules" called from ./spec/collection/php7.rb:6
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/modules.rb:119:in `block (3 levels) in <top (required)>'
Finished in 1 minute 11.02 seconds (files took 0.67045 seconds to load)
882 examples, 2 failures
Failed examples:
rspec ./spec/docker/php_spec.rb[1:86:1:1] # Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
rspec ./spec/docker/php_spec.rb[1:88:1:1] # Dockerfile Command "php -m" stdout should contain "Zend OPcache"
>> failed command with return code 1
failed, retrying... (try 1)
Execute: bundle exec rspec --pattern spec/docker/php_spec.rb
..................F................F........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................F...............................................
Failures:
1) Dockerfile File "/usr" should be executable
Failure/Error: it { should be_executable.by('others') }
expected File "/usr" to be executable
Shared Example Group: "bootstrap::layout" called from ./spec/collection/bootstrap.rb:2
Shared Example Group: "collection::bootstrap" called from ./spec/docker/php_spec.rb:11
# ./spec/shared/bootstrap/layout.rb:31:in `block (4 levels) in <top (required)>'
2) Dockerfile File "/usr/local/bin" should be readable
Failure/Error: it { should be_readable.by('group') }
expected File "/usr/local/bin" to be readable
Shared Example Group: "bootstrap::layout" called from ./spec/collection/bootstrap.rb:2
Shared Example Group: "collection::bootstrap" called from ./spec/docker/php_spec.rb:11
# ./spec/shared/bootstrap/layout.rb:20:in `block (4 levels) in <top (required)>'
3) Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Failure/Error: its(:stdout) { should match %r!PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)! }
expected "PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25) \nCopyright (c) 1997-2016 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\n" to match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Diff:
@@ -1,2 +1,4 @@
-/PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
+PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25)
+Copyright (c) 1997-2016 The PHP Group
+Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Shared Example Group: "php7::cli::version" called from ./spec/collection/php7.rb:4
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/version.rb:11:in `block (3 levels) in <top (required)>'
4) Dockerfile Command "php -m" stdout should contain "Zend OPcache"
Failure/Error: its(:stdout) { should contain('Zend OPcache') }
expected "[PHP Modules]\napc\napcu\nbcmath\nbz2\ncalendar\nCore\nctype\ncurl\ndate\ndom\nereg\nexif\nfileinfo\...\nsysvshm\ntokenizer\nwddx\nxml\nxmlreader\nxmlrpc\nxmlwriter\nxsl\nzip\nzlib\n\n[Zend Modules]\n\n" to contain "Zend OPcache"
Shared Example Group: "php7::modules" called from ./spec/collection/php7.rb:6
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/modules.rb:119:in `block (3 levels) in <top (required)>'
Finished in 1 minute 10.03 seconds (files took 0.59421 seconds to load)
882 examples, 4 failures
Failed examples:
rspec ./spec/docker/php_spec.rb[1:1:12] # Dockerfile File "/usr" should be executable
rspec ./spec/docker/php_spec.rb[1:3:5] # Dockerfile File "/usr/local/bin" should be readable
rspec ./spec/docker/php_spec.rb[1:86:1:1] # Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
rspec ./spec/docker/php_spec.rb[1:88:1:1] # Dockerfile Command "php -m" stdout should contain "Zend OPcache"
>> failed command with return code 1
failed, retrying... (try 2)
Execute: bundle exec rspec --pattern spec/docker/php_spec.rb
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................F...............................................
Failures:
1) Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Failure/Error: its(:stdout) { should match %r!PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)! }
expected "PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25) \nCopyright (c) 1997-2016 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\n" to match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Diff:
@@ -1,2 +1,4 @@
-/PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
+PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25)
+Copyright (c) 1997-2016 The PHP Group
+Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Shared Example Group: "php7::cli::version" called from ./spec/collection/php7.rb:4
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/version.rb:11:in `block (3 levels) in <top (required)>'
2) Dockerfile Command "php -m" stdout should contain "Zend OPcache"
Failure/Error: its(:stdout) { should contain('Zend OPcache') }
expected "[PHP Modules]\napc\napcu\nbcmath\nbz2\ncalendar\nCore\nctype\ncurl\ndate\ndom\nereg\nexif\nfileinfo\...\nsysvshm\ntokenizer\nwddx\nxml\nxmlreader\nxmlrpc\nxmlwriter\nxsl\nzip\nzlib\n\n[Zend Modules]\n\n" to contain "Zend OPcache"
Shared Example Group: "php7::modules" called from ./spec/collection/php7.rb:6
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/modules.rb:119:in `block (3 levels) in <top (required)>'
Finished in 1 minute 8.75 seconds (files took 0.76744 seconds to load)
882 examples, 2 failures
Failed examples:
rspec ./spec/docker/php_spec.rb[1:86:1:1] # Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
rspec ./spec/docker/php_spec.rb[1:88:1:1] # Dockerfile Command "php -m" stdout should contain "Zend OPcache"
>> failed command with return code 1
failed, retrying... (try 3)
Execute: bundle exec rspec --pattern spec/docker/php_spec.rb
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................F...............................................
Failures:
1) Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Failure/Error: its(:stdout) { should match %r!PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)! }
expected "PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25) \nCopyright (c) 1997-2016 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\n" to match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Diff:
@@ -1,2 +1,4 @@
-/PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
+PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25)
+Copyright (c) 1997-2016 The PHP Group
+Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Shared Example Group: "php7::cli::version" called from ./spec/collection/php7.rb:4
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/version.rb:11:in `block (3 levels) in <top (required)>'
2) Dockerfile Command "php -m" stdout should contain "Zend OPcache"
Failure/Error: its(:stdout) { should contain('Zend OPcache') }
expected "[PHP Modules]\napc\napcu\nbcmath\nbz2\ncalendar\nCore\nctype\ncurl\ndate\ndom\nereg\nexif\nfileinfo\...\nsysvshm\ntokenizer\nwddx\nxml\nxmlreader\nxmlrpc\nxmlwriter\nxsl\nzip\nzlib\n\n[Zend Modules]\n\n" to contain "Zend OPcache"
Shared Example Group: "php7::modules" called from ./spec/collection/php7.rb:6
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/modules.rb:119:in `block (3 levels) in <top (required)>'
Finished in 1 minute 9.58 seconds (files took 0.62914 seconds to load)
882 examples, 2 failures
Failed examples:
rspec ./spec/docker/php_spec.rb[1:86:1:1] # Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
rspec ./spec/docker/php_spec.rb[1:88:1:1] # Dockerfile Command "php -m" stdout should contain "Zend OPcache"
>> failed command with return code 1
failed, retrying... (try 4)
Execute: bundle exec rspec --pattern spec/docker/php_spec.rb
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................F...............................................
Failures:
1) Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Failure/Error: its(:stdout) { should match %r!PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)! }
expected "PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25) \nCopyright (c) 1997-2016 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\n" to match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
Diff:
@@ -1,2 +1,4 @@
-/PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
+PHP 5.6.24 (cli) (built: Jul 27 2016 06:29:25)
+Copyright (c) 1997-2016 The PHP Group
+Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Shared Example Group: "php7::cli::version" called from ./spec/collection/php7.rb:4
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/version.rb:11:in `block (3 levels) in <top (required)>'
2) Dockerfile Command "php -m" stdout should contain "Zend OPcache"
Failure/Error: its(:stdout) { should contain('Zend OPcache') }
expected "[PHP Modules]\napc\napcu\nbcmath\nbz2\ncalendar\nCore\nctype\ncurl\ndate\ndom\nereg\nexif\nfileinfo\...\nsysvshm\ntokenizer\nwddx\nxml\nxmlreader\nxmlrpc\nxmlwriter\nxsl\nzip\nzlib\n\n[Zend Modules]\n\n" to contain "Zend OPcache"
Shared Example Group: "php7::modules" called from ./spec/collection/php7.rb:6
Shared Example Group: "collection::php7" called from ./spec/collection/php7.rb:19
Shared Example Group: "collection::php7::production" called from ./spec/docker/php_spec.rb:20
# ./spec/shared/php/modules.rb:119:in `block (3 levels) in <top (required)>'
Finished in 1 minute 10.56 seconds (files took 0.75287 seconds to load)
882 examples, 2 failures
Failed examples:
rspec ./spec/docker/php_spec.rb[1:86:1:1] # Dockerfile Command "php -v" stdout should match /PHP 7\.[0-9]\.[0-9]{1,2}(-[^\(]*)? \(cli\)/
rspec ./spec/docker/php_spec.rb[1:88:1:1] # Dockerfile Command "php -m" stdout should contain "Zend OPcache"
>> failed command with return code 1
failed, giving up
:: end of output "DockerTestServerspec|webdevops/php:alpine-3"
> finished execution in 0:13:18 with errors (exitcode 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment