diff --git a/Jenkinsfile b/Jenkinsfile index 624a689..1c4d6b6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,6 +53,7 @@ node('docker') { try{ sh 'bin/test.sh &> debug' } catch(error) { + sh "docker logs $imagename &>> debug" def error_details = readFile('./debug'); def message = "BUILD ERROR: There was a problem building ${imagename}:${tag}. \n\n ${error_details}" sh "rm -f ./debug" diff --git a/container_files/bin/start.sh b/container_files/bin/start.sh index 7ce5723..581a7cd 100755 --- a/container_files/bin/start.sh +++ b/container_files/bin/start.sh @@ -18,6 +18,9 @@ if [ -e "/tmp/firsttimerunning" ]; then echo "Setting DataDir: $MYSQL_DATADIR" >> $log sed -e "s=\${MYSQL_DATADIR}=$MYSQL_DATADIR=" < /etc/my.cnf > /etc/my.cnf + echo "/etc/my.cnf is:" + cat /etc/my.cnf + if [[ $CREATE_NEW_DATABASE == 1 || ($CREATE_NEW_DATABASE == if_needed && ( ! -d $MYSQL_DATADIR || -z $(ls -A $MYSQL_DATADIR) ) ) ]]; then echo "Installing MariaDB" >> $log