Sign inSign up

smartleadsltd/phpunit-alpine

By smartleadsltd

•Updated almost 3 years ago

Image
0

9.1K

smartleadsltd/phpunit-alpine repository overview

⁠Available tags

Debian: 5.6-fpm⁠, 7.0-fpm-deb⁠, 7.1-fpm-deb⁠ 7.2-fpm-deb⁠ 7.3-fpm-deb⁠ 7.4-fpm-deb⁠

Alpine Linux: 7.0-fpm-alpine⁠, 7.1-fpm-alpine⁠ 7.2-fpm-alpine⁠ 7.3-fpm-alpine⁠ 7.4-fpm-alpine⁠

⁠Desсription

PHP container with extensions

  • iconv
  • gd
  • pdo_mysql
  • pcntl
  • pdo_sqlite
  • zip
  • curl
  • bcmath
  • imagick
  • soap
  • mysqli
  • mongodb

Can use master branch in Bitbucket Pipeline for testing Laravel project with PHPUnit

Using oficcial php containers

Include composer, git, unzip and imagemagick

⁠Example

Container for using php-fpm with nginx

FROM clockwise/docker-phpunit-alpain:fpm

WORKDIR /var/www

Example of bitbucket-pipelines.yml:

image: clockwise/docker-phpunit-alpain:master

pipelines:
  default:
    - step:
        script: # Modify the commands below to build your repository.
          - composer --version
          # install composer vendor scripts
          - composer install
          - vendor/bin/phpunit --version
          - touch database/database.sqlite
          # migrate
          - php artisan migrate --seed
          # run tests
          - vendor/bin/phpunit

Tag summary

Content type

Image

Digest

sha256:0b9847896…

Size

274.9 MB

Last updated

almost 3 years ago

docker pull smartleadsltd/phpunit-alpine