This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-3098
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 2f26faf8ea622576a78a9950df1648165bb8f9b9
Author: leonidfrolov <[email protected]>
AuthorDate: Fri Nov 4 16:55:03 2022 +0200

    [DATALAB-3098]: increased disk size for AWS tensor-rstudio template
---
 .../src/general/scripts/aws/common_prepare_notebook.py       | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git 
a/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
 
b/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
index 7f6eadafe..c45f4247c 100644
--- 
a/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
+++ 
b/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
@@ -83,14 +83,10 @@ if __name__ == "__main__":
                                                                       
notebook_config['project_name'],
                                                                       
notebook_config['endpoint_name'],
                                                                       
notebook_config['exploratory_name'], args.uuid)
-        #notebook_config['primary_disk_size'] = (lambda x: '100' if x == 
'deeplearning' else '16')(
-        #    os.environ['application'])
-        if os.environ['application'] == 'deeplearning':
-            notebook_config['primary_disk_size'] = '150'
-        elif os.environ['application'] == 'tensor':
-            notebook_config['primary_disk_size'] = '28'
-        else:
-            notebook_config['primary_disk_size'] = '16'
+
+        notebook_config['primary_disk_size'] = (lambda x: '150' if x == 
'deeplearning' else
+        ('28' if x == 'tensor' or x == 'tensor-rstudio' else 
'16'))(os.environ['application'])
+
         notebook_config['role_profile_name'] = '{}-{}-{}-nb-de-profile'.format(
             notebook_config['service_base_name'], 
notebook_config['project_name'], notebook_config['endpoint_name'])
         notebook_config['security_group_name'] = 
'{}-{}-{}-nb-sg'.format(notebook_config['service_base_name'],


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to