From d326dd9186cd7f6a8d58da1b64ded7b01cb43209 Mon Sep 17 00:00:00 2001 From: Pavol Mederly Date: Sat, 13 Oct 2018 01:26:33 +0200 Subject: [PATCH] Add yet more diagnostics... --- Jenkinsfile | 1 + container_files/bin/start.sh | 3 +++ 2 files changed, 4 insertions(+) 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