From 2c16764c2bf6cfd546148f5f0454b51a200d1d48 Mon Sep 17 00:00:00 2001 From: bnachit <btissam.nachit@capgemini.com> Date: Tue, 12 Mar 2024 16:14:53 +0100 Subject: [PATCH] BIOMASS-3142-integration-bps-btk --- devfiles/btk/devfile.yaml | 87 +++++++++++++++++++++++++++++++++ devfiles/btk/meta.yaml | 5 ++ devfiles/sar-training/meta.yaml | 4 +- index.json | 13 +++++ 4 files changed, 107 insertions(+), 2 deletions(-) create mode 100644 devfiles/btk/devfile.yaml create mode 100644 devfiles/btk/meta.yaml diff --git a/devfiles/btk/devfile.yaml b/devfiles/btk/devfile.yaml new file mode 100644 index 0000000..ce821da --- /dev/null +++ b/devfiles/btk/devfile.yaml @@ -0,0 +1,87 @@ +metadata: + generateName: btk- +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: 'registry.eu-west-0.prod-cloud-ocb.orange-business.com/cloud-biomass-maap-dev/btk-jupyterlab:0.0.1' + imagePullPolicy: IfNotPresent + envFrom: + - configMapRef: + name: maap-configmap + mountSources: true + resources: + requests: + memory: 5000Mi + limits: + memory: 5000Mi + securityContext: + privileged: true + volumeMounts: + - name: s3fs-volume + mountPath: /projects/my-private-bucket + subPath: my-private-bucket + mountPropagation: HostToContainer + - name: s3fs + mountPath: "/etc/s3fs" + readOnly: true + - name: dotconda + mountPath: /projects/.conda + - name: s3fs + image: 'registry.eu-west-0.prod-cloud-ocb.orange-business.com/cloud-biomass-maap/che-s3-storage:master' + imagePullPolicy: IfNotPresent + envFrom: + - configMapRef: + name: maap-configmap + resources: + limits: + memory: 256Mi + securityContext: + privileged: true + volumeMounts: + - name: s3fs-volume + mountPath: /my-private-bucket + subPath: my-private-bucket + mountPropagation: Bidirectional + imagePullSecrets: + - name: secret-docker-bimaap + volumes: + - name: s3fs + secret: + secretName: s3-credential + - name: s3fs-volume + emptyDir: {} + - name: dotconda + emptyDir: {} + 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 + diff --git a/devfiles/btk/meta.yaml b/devfiles/btk/meta.yaml new file mode 100644 index 0000000..f9ec922 --- /dev/null +++ b/devfiles/btk/meta.yaml @@ -0,0 +1,5 @@ +displayName: BRIX-2 +description: BRIX-2 with Gdal, geopandas, numpy and scipy +tags: ["Jupyter", "Maap"] +icon: /images/brix-2.png +globalMemoryLimit: 2674Mi diff --git a/devfiles/sar-training/meta.yaml b/devfiles/sar-training/meta.yaml index f9ec922..cf3b0ed 100644 --- a/devfiles/sar-training/meta.yaml +++ b/devfiles/sar-training/meta.yaml @@ -1,5 +1,5 @@ -displayName: BRIX-2 -description: BRIX-2 with Gdal, geopandas, numpy and scipy +displayName: BTK +description: BTK with Gdal, geopandas, numpy and scipy tags: ["Jupyter", "Maap"] icon: /images/brix-2.png globalMemoryLimit: 2674Mi diff --git a/index.json b/index.json index 0b2d15b..29a6746 100644 --- a/index.json +++ b/index.json @@ -51,6 +51,19 @@ "links": { "self": "/devfiles/polinsar-jupyter/devfile.yaml" } + }, + { + "displayName": "BTK", + "description": "BTK stack with gdal, numpy, etc...", + "tags": [ + "Python", + "Maap" + ], + "icon": "/images/brix-2.png", + "globalMemoryLimit": "5000Mi", + "links": { + "self": "/devfiles/btk/devfile.yaml" + } } ] -- GitLab