I am a new user of pipeline.
I really don't understand why I get the error "bash: mysql: command not found" with my pipeline script. The mysql client is well installed ?!
Is there someone to help me?
image: composer:2.0
definitions:
services:
mysql:
image: mysql:5.7
variables:
MYSQL_DATABASE: 'myDB'
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_USER: 'myUser'
MYSQL_PASSWORD: 'mypwd'
pipelines:
default:
- step:
name: InstallMySQL
script:
- apt-get update && apt-get install -y mysql-client
- mysql -h 127.0.0.1 -u myUser -pmypwd -e "SHOW DATABASES"
services:
- mysql