Skip to content

Add yet more diagnostics... #10

merged 1 commit into from Oct 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Add yet more diagnostics...
mederly committed Oct 12, 2018
commit d326dd9186cd7f6a8d58da1b64ded7b01cb43209
1 change: 1 addition & 0 deletions 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"
3 changes: 3 additions & 0 deletions 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