-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1292 from mathbunnyru/asalikhov/css_json_yaml_style
Make css, json and yaml style identical
- Loading branch information
Showing
5 changed files
with
526 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
ignored: | ||
- DL3006 | ||
- DL3008 | ||
- DL3006 | ||
- DL3008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
body div.sphinxsidebarwrapper p.logo { | ||
text-align: left; | ||
text-align: left; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,178 +1,176 @@ | ||
{ | ||
"kind": "Template", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "jupyter-notebook", | ||
"annotations": { | ||
"openshift.io/display-name": "Jupyter Notebook", | ||
"description": "Template for deploying Jupyter Notebook images.", | ||
"iconClass": "icon-python", | ||
"tags": "python,jupyter" | ||
"kind": "Template", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "jupyter-notebook", | ||
"annotations": { | ||
"openshift.io/display-name": "Jupyter Notebook", | ||
"description": "Template for deploying Jupyter Notebook images.", | ||
"iconClass": "icon-python", | ||
"tags": "python,jupyter" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "APPLICATION_NAME", | ||
"value": "notebook", | ||
"required": true | ||
}, | ||
{ | ||
"name": "NOTEBOOK_IMAGE", | ||
"value": "jupyter/minimal-notebook:latest", | ||
"required": true | ||
}, | ||
{ | ||
"name": "NOTEBOOK_PASSWORD", | ||
"from": "[a-f0-9]{32}", | ||
"generate": "expression" | ||
} | ||
], | ||
"objects": [ | ||
{ | ||
"kind": "ConfigMap", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APPLICATION_NAME}-cfg", | ||
"labels": { | ||
"app": "${APPLICATION_NAME}" | ||
} | ||
}, | ||
"data": { | ||
"jupyter_notebook_config.py": "import os\n\npassword = os.environ.get('JUPYTER_NOTEBOOK_PASSWORD')\n\nif password:\n import notebook.auth\n c.NotebookApp.password = notebook.auth.passwd(password)\n del password\n del os.environ['JUPYTER_NOTEBOOK_PASSWORD']\n\nimage_config_file = '/home/jovyan/.jupyter/jupyter_notebook_config.py'\n\nif os.path.exists(image_config_file):\n with open(image_config_file) as fp:\n exec(compile(fp.read(), image_config_file, 'exec'), globals())\n" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "APPLICATION_NAME", | ||
"value": "notebook", | ||
"required": true | ||
}, | ||
{ | ||
"name": "NOTEBOOK_IMAGE", | ||
"value": "jupyter/minimal-notebook:latest", | ||
"required": true | ||
}, | ||
{ | ||
"name": "NOTEBOOK_PASSWORD", | ||
"from": "[a-f0-9]{32}", | ||
"generate": "expression" | ||
} | ||
], | ||
"objects": [ | ||
{ | ||
"kind": "ConfigMap", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APPLICATION_NAME}-cfg", | ||
"labels": { | ||
"app": "${APPLICATION_NAME}" | ||
} | ||
}, | ||
"data": { | ||
"jupyter_notebook_config.py": "import os\n\npassword = os.environ.get('JUPYTER_NOTEBOOK_PASSWORD')\n\nif password:\n import notebook.auth\n c.NotebookApp.password = notebook.auth.passwd(password)\n del password\n del os.environ['JUPYTER_NOTEBOOK_PASSWORD']\n\nimage_config_file = '/home/jovyan/.jupyter/jupyter_notebook_config.py'\n\nif os.path.exists(image_config_file):\n with open(image_config_file) as fp:\n exec(compile(fp.read(), image_config_file, 'exec'), globals())\n" | ||
} | ||
}, | ||
{ | ||
"kind": "DeploymentConfig", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APPLICATION_NAME}", | ||
"labels": { | ||
"app": "${APPLICATION_NAME}" | ||
} | ||
}, | ||
"spec": { | ||
"strategy": { | ||
"type": "Recreate" | ||
}, | ||
"triggers": [ | ||
{ | ||
"type": "ConfigChange" | ||
} | ||
], | ||
"replicas": 1, | ||
"selector": { | ||
"app": "${APPLICATION_NAME}", | ||
"deploymentconfig": "${APPLICATION_NAME}" | ||
}, | ||
"template": { | ||
"metadata": { | ||
"annotations": { | ||
"alpha.image.policy.openshift.io/resolve-names": "*" | ||
}, | ||
"labels": { | ||
"app": "${APPLICATION_NAME}", | ||
"deploymentconfig": "${APPLICATION_NAME}" | ||
} | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"name": "jupyter-notebook", | ||
"image": "${NOTEBOOK_IMAGE}", | ||
"command": [ | ||
"start-notebook.sh", | ||
"--config=/etc/jupyter/openshift/jupyter_notebook_config.py", | ||
"--no-browser", | ||
"--ip=0.0.0.0" | ||
], | ||
|
||
"ports": [ | ||
{ | ||
"containerPort": 8888, | ||
"protocol": "TCP" | ||
} | ||
], | ||
"env": [ | ||
{ | ||
"name": "JUPYTER_NOTEBOOK_PASSWORD", | ||
"value": "${NOTEBOOK_PASSWORD}" | ||
} | ||
], | ||
"volumeMounts": [ | ||
{ | ||
"mountPath": "/etc/jupyter/openshift", | ||
"name": "configs" | ||
} | ||
] | ||
} | ||
], | ||
"automountServiceAccountToken": false, | ||
"securityContext": { | ||
"supplementalGroups": [ | ||
100 | ||
] | ||
}, | ||
"volumes": [ | ||
{ | ||
"configMap": { | ||
"name": "${APPLICATION_NAME}-cfg" | ||
}, | ||
"name": "configs" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
{ | ||
"kind": "DeploymentConfig", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APPLICATION_NAME}", | ||
"labels": { | ||
"app": "${APPLICATION_NAME}" | ||
} | ||
}, | ||
"spec": { | ||
"strategy": { | ||
"type": "Recreate" | ||
}, | ||
{ | ||
"kind": "Route", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APPLICATION_NAME}", | ||
"labels": { | ||
"app": "${APPLICATION_NAME}" | ||
} | ||
}, | ||
"spec": { | ||
"host": "", | ||
"to": { | ||
"kind": "Service", | ||
"name": "${APPLICATION_NAME}", | ||
"weight": 100 | ||
}, | ||
"port": { | ||
"targetPort": "8888-tcp" | ||
}, | ||
"tls": { | ||
"termination": "edge", | ||
"insecureEdgeTerminationPolicy": "Redirect" | ||
} | ||
} | ||
"triggers": [ | ||
{ | ||
"type": "ConfigChange" | ||
} | ||
], | ||
"replicas": 1, | ||
"selector": { | ||
"app": "${APPLICATION_NAME}", | ||
"deploymentconfig": "${APPLICATION_NAME}" | ||
}, | ||
{ | ||
"kind": "Service", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APPLICATION_NAME}", | ||
"labels": { | ||
"app": "${APPLICATION_NAME}" | ||
} | ||
"template": { | ||
"metadata": { | ||
"annotations": { | ||
"alpha.image.policy.openshift.io/resolve-names": "*" | ||
}, | ||
"spec": { | ||
"labels": { | ||
"app": "${APPLICATION_NAME}", | ||
"deploymentconfig": "${APPLICATION_NAME}" | ||
} | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"name": "jupyter-notebook", | ||
"image": "${NOTEBOOK_IMAGE}", | ||
"command": [ | ||
"start-notebook.sh", | ||
"--config=/etc/jupyter/openshift/jupyter_notebook_config.py", | ||
"--no-browser", | ||
"--ip=0.0.0.0" | ||
], | ||
|
||
"ports": [ | ||
{ | ||
"name": "8888-tcp", | ||
"protocol": "TCP", | ||
"port": 8888, | ||
"targetPort": 8888 | ||
} | ||
{ | ||
"containerPort": 8888, | ||
"protocol": "TCP" | ||
} | ||
], | ||
"selector": { | ||
"app": "${APPLICATION_NAME}", | ||
"deploymentconfig": "${APPLICATION_NAME}" | ||
"env": [ | ||
{ | ||
"name": "JUPYTER_NOTEBOOK_PASSWORD", | ||
"value": "${NOTEBOOK_PASSWORD}" | ||
} | ||
], | ||
"volumeMounts": [ | ||
{ | ||
"mountPath": "/etc/jupyter/openshift", | ||
"name": "configs" | ||
} | ||
] | ||
} | ||
], | ||
"automountServiceAccountToken": false, | ||
"securityContext": { | ||
"supplementalGroups": [100] | ||
}, | ||
"volumes": [ | ||
{ | ||
"configMap": { | ||
"name": "${APPLICATION_NAME}-cfg" | ||
}, | ||
"type": "ClusterIP" | ||
} | ||
"name": "configs" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"kind": "Route", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APPLICATION_NAME}", | ||
"labels": { | ||
"app": "${APPLICATION_NAME}" | ||
} | ||
] | ||
}, | ||
"spec": { | ||
"host": "", | ||
"to": { | ||
"kind": "Service", | ||
"name": "${APPLICATION_NAME}", | ||
"weight": 100 | ||
}, | ||
"port": { | ||
"targetPort": "8888-tcp" | ||
}, | ||
"tls": { | ||
"termination": "edge", | ||
"insecureEdgeTerminationPolicy": "Redirect" | ||
} | ||
} | ||
}, | ||
{ | ||
"kind": "Service", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APPLICATION_NAME}", | ||
"labels": { | ||
"app": "${APPLICATION_NAME}" | ||
} | ||
}, | ||
"spec": { | ||
"ports": [ | ||
{ | ||
"name": "8888-tcp", | ||
"protocol": "TCP", | ||
"port": 8888, | ||
"targetPort": 8888 | ||
} | ||
], | ||
"selector": { | ||
"app": "${APPLICATION_NAME}", | ||
"deploymentconfig": "${APPLICATION_NAME}" | ||
}, | ||
"type": "ClusterIP" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.