Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos
Commits
1a8d3eca
Commit
1a8d3eca
authored
Feb 25, 2021
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/jupyter: Remove duplicate slapconfiguration
parent
b6347def
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
19 deletions
+18
-19
software/jupyter/buildout.hash.cfg
software/jupyter/buildout.hash.cfg
+2
-2
software/jupyter/instance-jupyter.cfg.in
software/jupyter/instance-jupyter.cfg.in
+15
-16
software/jupyter/instance.cfg.in
software/jupyter/instance.cfg.in
+1
-1
No files found.
software/jupyter/buildout.hash.cfg
View file @
1a8d3eca
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
[instance]
[instance]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
de37ec3d4adb0be4c67bcc7397f27c91
md5sum =
35c911edca22f847a51de164eb25a195
[instance-jupyter]
[instance-jupyter]
filename = instance-jupyter.cfg.in
filename = instance-jupyter.cfg.in
md5sum =
cbc90e517ae3680ab8bef04c6f503af5
md5sum =
b9657b7ce75f3371981257262d6dc1e3
[jupyter-notebook-config]
[jupyter-notebook-config]
filename = jupyter_notebook_config.py.jinja
filename = jupyter_notebook_config.py.jinja
...
...
software/jupyter/instance-jupyter.cfg.in
View file @
1a8d3eca
{% set slapparameter_dict = slapconfiguration_section['configuration'] %}
{% set additional_frontend = slapparameter_dict.get('frontend-additional-instance-guid') %}
{% set additional_frontend = slapparameter_dict.get('frontend-additional-instance-guid') %}
[buildout]
[buildout]
...
@@ -22,26 +23,16 @@ develop-eggs-directory = {{ develop_eggs_directory }}
...
@@ -22,26 +23,16 @@ develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
offline = true
[slapconfiguration]
[slapconfiguration]
recipe = slapos.cookbook:slapconfiguration.serialised
{% for k, v in slapconfiguration_section.items() -%}
computer = ${slap-connection:computer-id}
{{ k }} = {{ v }}
partition = ${slap-connection:partition-id}
{% endfor -%}
url = ${slap-connection:server-url}
key = ${slap-connection:key-file}
cert = ${slap-connection:cert-file}
[slap-parameter]
# ERP5 URL to use in Jupyter by default
# ERP5 URL to use in Jupyter by default
# default value is empty - which means no default ERP5 URL
# default value is empty - which means no default ERP5 URL
configuration.erp5-url =
configuration.erp5-url =
[instance-parameter]
# Frontend default values
port = 8888
host = ${slapconfiguration:ipv6-random}
cert_file = ${generate-certificate:cert_file}
key_file = ${generate-certificate:key_file}
logfile = ${directory:log}/jupyter_notebook.log
notebook_dir = ${directory:notebook_dir}
[slap-parameter]
frontend-software-type = RootSoftwareInstance
frontend-software-type = RootSoftwareInstance
frontend-software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
frontend-software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
frontend-instance-guid =
frontend-instance-guid =
...
@@ -55,6 +46,14 @@ frontend-additional-instance-name = Jupyter Frontend Additional
...
@@ -55,6 +46,14 @@ frontend-additional-instance-name = Jupyter Frontend Additional
{{ k }} = {{ v }}
{{ k }} = {{ v }}
{% endfor -%}
{% endfor -%}
[instance-parameter]
port = 8888
host = ${slapconfiguration:ipv6-random}
cert_file = ${generate-certificate:cert_file}
key_file = ${generate-certificate:key_file}
logfile = ${directory:log}/jupyter_notebook.log
notebook_dir = ${directory:notebook_dir}
[dynamic-jinja2-template-base]
[dynamic-jinja2-template-base]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
mode = 0644
mode = 0644
...
@@ -199,7 +198,7 @@ rendered = ${directory:erp5_kernel_dir}/kernel.json
...
@@ -199,7 +198,7 @@ rendered = ${directory:erp5_kernel_dir}/kernel.json
context =
context =
raw python_executable {{ python_executable }}
raw python_executable {{ python_executable }}
raw kernel_dir ${erp5-kernel:target-directory}/{{ erp5_kernel_filename }}
raw kernel_dir ${erp5-kernel:target-directory}/{{ erp5_kernel_filename }}
key erp5_url slap
configuration:configuration.erp5-url
key erp5_url slap
-parameter:erp5-url
raw display_name ERP5
raw display_name ERP5
raw language_name python
raw language_name python
...
...
software/jupyter/instance.cfg.in
View file @
1a8d3eca
...
@@ -26,7 +26,7 @@ template = ${instance-jupyter:location}/$${:filename}
...
@@ -26,7 +26,7 @@ template = ${instance-jupyter:location}/$${:filename}
rendered = $${buildout:directory}/template.cfg
rendered = $${buildout:directory}/template.cfg
mode = 0644
mode = 0644
context =
context =
key slapparameter_dict slap-configuration:
configuration
section slapconfiguration_section slap-
configuration
raw bin_directory ${buildout:bin-directory}
raw bin_directory ${buildout:bin-directory}
raw develop_eggs_directory ${buildout:develop-eggs-directory}
raw develop_eggs_directory ${buildout:develop-eggs-directory}
raw eggs_directory ${buildout:eggs-directory}
raw eggs_directory ${buildout:eggs-directory}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment