Page MenuHomeDevCentral

Upgrade to PHP 7.1
ClosedPublic

Authored by dereckson on Dec 30 2016, 05:09.
Tags
None
Referenced Files
F3930467: D782.id.diff
Sun, Dec 22, 14:04
Unknown Object (File)
Tue, Dec 17, 12:09
Unknown Object (File)
Sat, Dec 14, 06:56
Unknown Object (File)
Sat, Dec 14, 04:54
Unknown Object (File)
Fri, Dec 13, 03:39
Unknown Object (File)
Thu, Dec 12, 06:33
Unknown Object (File)
Thu, Dec 12, 05:58
Unknown Object (File)
Wed, Dec 11, 09:03
Subscribers
None

Details

Summary

As the notifications center now uses PHP 7.1,
we so switch to the relevant PHP 7 base image.

Fixes composer issue as it tries to validate dependencies
requirements for dev, even when --no-dev is passed.

Ref T1062.

Test Plan

Rebuild the container: docker build -t nasqueron/notifications .

Run tests.

Diff Detail

Repository
rDNOTIF Notifications center Docker image
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Dec 30 2016, 05:23

It seems the Composer --no-dev argument is ignored.

$ docker build -t nasqueron/notifications .
Step 5 : RUN git init && git remote add origin https://github.com/nasqueron/notifications.git &&     git fetch && git checkout -t origin/master &&     composer install --no-dev -o &&     chown -R app:app /var/wwwroot/default
 ---> Running in 26c9c9ce041a
Initialized empty Git repository in /var/wwwroot/default/.git/
From https://github.com/nasqueron/notifications
 * [new branch]      master     -> origin/master
Already on 'master'
Branch master set up to track remote branch master from origin.
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for etsy/phan dev-master -> satisfiable by etsy/phan[dev-master].
    - etsy/phan dev-master requires ext-ast * -> the requested PHP extension ast is missing from your system.
dereckson edited the test plan for this revision. (Show Details)
Container
$ cd /opt
$ git clone https://github.com/nikic/php-ast
$ cd php-ast && phpize && ./configure && make && make install
$ echo 'extension=ast.so' > /usr/local/etc/php/conf.d/ast.ini
$ cd /var/wwwroot/default
$ composer install
$ php artisan config:clear
Configuration cache cleared!
$ php artisan cache:clear
Cache cleared successfully.
$ vendor/bin/phpunit
PHPUnit 4.8.31 by Sebastian Bergmann and contributors.
Warning:        The Xdebug extension is not loaded
                No code coverage will be generated.

...............................................................  63 / 181 ( 34%)
................I...I.......................................... 126 / 181 ( 69%)
.......................................................

Time: 5.08 seconds, Memory: 34.00MB

OK, but incomplete, skipped, or risky tests!
Tests: 181, Assertions: 328, Incomplete: 2.

Fix Composer issue

This revision is now accepted and ready to land.Dec 31 2016, 03:34
This revision was automatically updated to reflect the committed changes.