Sign inSign up

clockwise/php7-mysql-unit-docker

By clockwise

•Updated about 10 years ago

php7 + mysql container for using with Bitbucket Pipelines

Image
2

656

clockwise/php7-mysql-unit-docker repository overview

Container for using with Bitbucket Pipeline for testing Laravel project with PHPUnit Using php:latest ( php7 )

Include MySQL 5.5, composer and extending PHP with modules: iconv, mcrypt, gd, pdo_mysql, pcntl, pdo_sqlite, zip, curl, bcmath, opcache mbstring

Example of bitbucket-pipelines.yml:

image: clockwise/php7-mysql-unit

pipelines:
  default:
    - step:
        script: # Modify the commands below to build your repository.
          - composer --version
          - cp .env.example .env
          - composer install
          - vendor/bin/phpunit --version
          - mysql --version
          - service mysql start
          - mysql -u root -e "CREATE DATABASE kicker_chart"
          - php artisan migrate
          - vendor/bin/phpunit
          ```

Tag summary

Content type

Image

Digest

Size

203.5 MB

Last updated

about 10 years ago

docker pull clockwise/php7-mysql-unit-docker