Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Keep getting errors when Building Pipelines

Tronserve
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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