From 18b8c821ff9943b205d6a02448136419b1a1189e Mon Sep 17 00:00:00 2001 From: Philmod Date: Tue, 19 Jan 2021 11:08:10 -0500 Subject: [PATCH 1/3] Post jenkins updates to Mattermost --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index d106bf4a..fce61e14 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -131,12 +131,15 @@ pipeline { post { failure { slackSend color: 'danger', message: "*<${env.BUILD_URL}console|${JOB_NAME} failed>* ${GIT_COMMIT_SUMMARY} @kernels-backend-ops", channel: env.SLACK_CHANNEL + mattermostSend color: 'danger', message: "*<${env.BUILD_URL}console|${JOB_NAME} failed>* ${GIT_COMMIT_SUMMARY} @kernels-backend-ops", channel: "#kernelops" } success { slackSend color: 'good', message: "*<${env.BUILD_URL}console|${JOB_NAME} passed>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL + mattermostSend color: 'danger', message: "*<${env.BUILD_URL}console|${JOB_NAME} failed>* ${GIT_COMMIT_SUMMARY} @kernels-backend-ops", channel: "#kernelops" } aborted { slackSend color: 'warning', message: "*<${env.BUILD_URL}console|${JOB_NAME} aborted>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL + mattermostSend color: 'danger', message: "*<${env.BUILD_URL}console|${JOB_NAME} failed>* ${GIT_COMMIT_SUMMARY} @kernels-backend-ops", channel: "#kernelops" } } } From e71a092f4f74f305371836d2a3a0d2e4f6958779 Mon Sep 17 00:00:00 2001 From: Philmod Date: Thu, 21 Jan 2021 11:44:02 -0500 Subject: [PATCH 2/3] Use the non-deprecated nbconvert template --- patches/nbconvert-extensions.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/nbconvert-extensions.tpl b/patches/nbconvert-extensions.tpl index b3de090d..e40f0013 100644 --- a/patches/nbconvert-extensions.tpl +++ b/patches/nbconvert-extensions.tpl @@ -4,7 +4,7 @@ All cell metadata starting with '_kg_' will be included with its value ({key}-{v as a class in the cell's DIV container #} -{% extends 'full.tpl'%} +{% extends 'classic/index.html.j2'%} {% block any_cell %}
{{ super() }} From 2d3b74c73a460a0fadcf10c0969d68254b0820cb Mon Sep 17 00:00:00 2001 From: Philmod Date: Thu, 21 Jan 2021 11:51:37 -0500 Subject: [PATCH 3/3] Add template configuration file --- Dockerfile | 1 + patches/template_conf.json | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 patches/template_conf.json diff --git a/Dockerfile b/Dockerfile index 89bba22c..5accf48a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ FROM gcr.io/deeplearning-platform-release/base-cpu:${BASE_TAG} ADD clean-layer.sh /tmp/clean-layer.sh ADD patches/nbconvert-extensions.tpl /opt/kaggle/nbconvert-extensions.tpl +ADD patches/template_conf.json /opt/kaggle/conf.json # This is necessary for apt to access HTTPS sources RUN apt-get update && \ diff --git a/patches/template_conf.json b/patches/template_conf.json new file mode 100644 index 00000000..49cc88c2 --- /dev/null +++ b/patches/template_conf.json @@ -0,0 +1,13 @@ +{ + "base_template": "classic", + "mimetypes": { + "text/html": true + }, + "preprocessors": { + "100-pygments": { + "type": "nbconvert.preprocessors.CSSHTMLHeaderPreprocessor", + "enabled": true, + "style": "default" + } + } +} \ No newline at end of file