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

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


The following commit(s) were added to refs/heads/develop by this push:
     new 8fc4d63  [DATALAB] -- added version in notebook template image param 
for deeplearning on aws
8fc4d63 is described below

commit 8fc4d6313ab0359ac18a3c23985001b8300584a8
Author: Yurii Tykhun <[email protected]>
AuthorDate: Wed Jun 30 16:43:50 2021 +0300

    [DATALAB] -- added version in notebook template image param for 
deeplearning on aws
---
 .../exploratory/create-environment/create-environment.component.ts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts
 
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts
index fe75b06..4d2703d 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts
@@ -214,6 +214,13 @@ export class ExploratoryEnvironmentCreateComponent 
implements OnInit {
       template_name: 
this.currentTemplate.exploratory_environment_versions[0].template_name
     };
 
+    
+    if (!data.notebook_image_name 
+      && this.currentTemplate.image === 'docker.datalab-deeplearning' 
+      && this.selectedCloud === 'aws' || this.selectedCloud === 'azure') {
+      data.notebook_image_name = 
this.currentTemplate.exploratory_environment_versions[0].version;
+    }
+
     data.cluster_config = data.cluster_config ? 
JSON.parse(data.cluster_config) : null;
 
     this.userResourceService.createExploratoryEnvironment({ ...parameters, 
...data }).subscribe((response: any) => {

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

Reply via email to