Skip to content

Docker image based on Ubuntu 20.04 with PHP-7.4/Composer/MySQL-8

License

Notifications You must be signed in to change notification settings

cnizzardini/bitbucket-pipelines-php74

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bitbucket Pipelines PHP 7.4 image

A dockerfile for bitbucket pipelines.

Sample bitbucket-pipelines.yml

image: cnizzardini/bitbucket-pipelines-php74
pipelines:
  default:
    - step:
        services:
            - mysql
        script:
          - composer install --no-interaction --no-progress --prefer-dist
          - ./vendor/phpunit/phpunit/phpunit -v --coverage-text --colors=never --stderr
definitions:
    services:
        mysql:
            image: mysql:5.7
            environment:
                MYSQL_DATABASE: test
                MYSQL_USERNAME: root
                MYSQL_ROOT_PASSWORD: root

Modifying this Dockerfile

You will need access to the dockerhub repository, so feel free to clone and build your own.

  1. Clone this repository
  2. Make edits
  3. docker build . -t cnizzardini/bitbucket-pipelines-php74:{tag}
  4. docker push cnizzardini/bitbucket-pipelines-php74:{tag}

About

Docker image based on Ubuntu 20.04 with PHP-7.4/Composer/MySQL-8

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%