Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Keep getting errors when Building Pipelines

Tronserve March 4, 2020

image: php:7.3
pipelines:

default:

- step: script: 

 - su usermod -a -G docker $user

- apt-get update && apt-get install -y git curl libmcrypt-dev default-mysql-client

- yes | pecl install mcrypt-1.0.2 - docker-php-ext-install pdo_mysql

- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

- su chown user -hR /usr/local/bin/composer

- su user composer install

- ln -f -s .env.pipelines .env

- php artisan migrate

- php artisan serve &

- sleep 5 - ./vendor/bin/phpunit

- curl -vk http://localhost:8000

services:

- mysql
definitions:

services:

mysql:

image: mysql:5.7

environment:

MYSQL_DATABASE: '***'

MYSQL_RANDOM_ROOT_PASSWORD: 'yes'

MYSQL_USER: 'user'

MYSQL_PASSWORD: 'password'

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events