From 6c00a998fe20a068138308254fab51e15b64b0fc Mon Sep 17 00:00:00 2001
From: Islam Mansour <dlr15@esa-maap.org>
Date: Thu, 28 Apr 2022 23:01:06 +0000
Subject: [PATCH] Update devfile.yaml

---
 devfiles/polinsar-jupyter/devfile.yaml | 109 +++++++++++++------------
 1 file changed, 58 insertions(+), 51 deletions(-)

diff --git a/devfiles/polinsar-jupyter/devfile.yaml b/devfiles/polinsar-jupyter/devfile.yaml
index 0666adc..5101239 100644
--- a/devfiles/polinsar-jupyter/devfile.yaml
+++ b/devfiles/polinsar-jupyter/devfile.yaml
@@ -1,51 +1,58 @@
-metadata:
-  generateName: sar-intro-
-attributes:
-  editorFree: 'true'
-components:
-  - endpoints:
-      - name: jupyter
-        port: 3100
-        attributes:
-          type: ide
-          discoverable: 'false'
-          path: /
-          public: 'true'
-          protocol: http
-    referenceContent: |
-      kind: List
-      items:
-        - apiVersion: v1
-          kind: Pod
-          metadata:
-            name: ws
-            labels:
-              name: ws
-          spec:
-           containers: 
-            - name: jupyter
-              image: 'imansour/maap-sar-intro:latest'
-              imagePullPolicy: IfNotPresent
-              mountSources: true
-              resources:
-                requests:
-                  memory: 5000Mi
-                limits:
-                  memory: 5000Mi
-              securityContext:
-                privileged: true
-    type: kubernetes
-    volumes:
-      - name: projects
-        containerPath: /projects
-    alias: maap-jupyterlab
-    env:
-      - value: WS_JUPYTER
-        name: MACHINE_NAME
-      - value: /projects
-        name: JUPYTER_NOTEBOOK_DIR
-      - value: 97262f0b-d3ca-4492-bcf8-9a0e12bdede8
-        name: CLIENT_ID
-      - value: VAL
-        name: MAAP_ENV_TYPE
-apiVersion: 1.0.0
+metadata:
+  generateName: polinsar-
+attributes:
+  editorFree: 'true'
+components:
+  - endpoints:
+      - name: jupyter
+        port: 3100
+        attributes:
+          type: ide
+          discoverable: 'false'
+          path: /
+          public: 'true'
+          protocol: http
+    referenceContent: |
+      kind: List
+      items:
+        - apiVersion: v1
+          kind: Pod
+          metadata:
+            name: ws
+            labels:
+              name: ws
+          spec:
+           containers: 
+            - name: jupyter
+              image: 'imansour/maap-sar-intro:latest'
+              imagePullPolicy: IfNotPresent
+              envFrom:
+                - configMapRef:
+                    name: maap-configmap
+              mountSources: true
+              resources:
+                limits:
+                  memory: 10240Mi
+              securityContext:
+                privileged: true
+              volumeMounts:
+              - name: s3fs
+                mountPath: "/etc/s3fs"
+                readOnly: true
+           imagePullSecrets:
+             - name: secret-docker-bimaap
+           volumes:
+             - name: s3fs
+               secret:
+                 secretName: s3-credential
+    type: kubernetes
+    volumes:
+        - name: projects
+          containerPath: /projects
+    alias: maap-jupyterlab
+    env:
+      - value: WS_JUPYTER
+        name: MACHINE_NAME     
+      - value: /projects
+        name: JUPYTER_NOTEBOOK_DIR            
+apiVersion: 1.0.0
-- 
GitLab