This is an automated email from the ASF dual-hosted git repository.
mykolabodnar pushed a commit to branch DATALAB-2372
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2372 by this push:
new 3abce20 [DATALAB-2372] - [GCP] Deeplearning deploy from cloud image
implemented
3abce20 is described below
commit 3abce20475c895d5d4bc8366b5aec224b45c7875
Author: bodnarmykola <[email protected]>
AuthorDate: Tue Jun 22 13:35:07 2021 +0300
[DATALAB-2372] - [GCP] Deeplearning deploy from cloud image implemented
---
.../src/general/scripts/gcp/common_prepare_notebook.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
b/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
index 1c3c038..5d4f64e 100644
---
a/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
+++
b/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
@@ -140,7 +140,7 @@ if __name__ == "__main__":
notebook_config['primary_image_name'].get('name'))
notebook_config['notebook_secondary_image_name'] = (lambda x:
'{0}-{1}-{2}-{3}-secondary-image-{4}'.format(
notebook_config['service_base_name'],
notebook_config['project_name'], notebook_config['endpoint_name'],
- os.environ['application'],
os.environ['notebook_image_name'].replace('_', '-').lower()[:63]) if (x !=
'None' and x != '')
+ os.environ['application'],
os.environ['notebook_image_name'].replace('_', '-').lower()) if (x != 'None'
and x != '')
else
notebook_config['expected_secondary_image_name'])(str(os.environ.get('notebook_image_name')))
if notebook_config['notebook_secondary_image_name'][:63].endswith('-'):
notebook_config['notebook_secondary_image_name'] =
notebook_config['notebook_secondary_image_name'][:63][:-1]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]