Those Docker images are specially designed to work with Bitbucket Pipeline
bitbucket-pipelines.yml
example:
image: zazalt/docker:alpha
pipelines:
default:
- step:
script:
# PostgreSQL - start it. You can use - username: zazalt, password: zazalt, db: zazaltdb
- /etc/init.d/postgresql start
# MySQL - start it and create a new user and database
- /etc/init.d/mysql start
- mysql -uroot -e "CREATE DATABASE zazalt COLLATE 'utf8_unicode_ci'"
- mysql -uroot -e "CREATE USER 'zazalt'@'localhost'"
- mysql -uroot -e "GRANT ALL PRIVILEGES ON *.* TO 'zazalt'@'localhost' WITH GRANT OPTION"
# Run (php) composer install
- composer install
# Run phpunit
- phpunit
- wget 1.15
- curl 7.35.0
- unzip 6.00
- screen 4.01
- git 1.9.1
- supervisor 3.0b2
- Composer 1.4.1
** PostgreSQL has implicit credentials: username: zazalt
, password: zazalt
, db: zazaltdb