webdetails / cbf2

Pentaho Docker Utilities
36 stars 36 forks source link

Create docker volumes #15

Open carlosebuenos opened 6 years ago

carlosebuenos commented 6 years ago

Hello

I had problems creating volumes using cbf2.

Even adding the script "dockerVolumes.sh" in the "config" directory within my project did not obitive success with creating the volumes.

When checking the script "cbf2.sh" I noticed that the method that identifies the project name is causing the failure when the name contains a hyphen character "-".

Line 225 "projectName=$(echo $build | egrep 'pdu-' | cut -d' ' -f 1 | cut -d'-' -f 2)"

This also happens in the example project "horlogery-demo". The mentioned method identifies the project name as "horlogery" instead of "horlogery-demo" causing the location of the "dockerVolumes.sh" script directory not to be located.