Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ISCE3 libraries + Opera RTC #30

Merged
merged 2 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions base_images/isce3/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM continuumio/miniconda3:22.11.1
ENV LANG en_US.UTF-8
ENV TZ US/Pacific
ARG DEBIAN_FRONTEND=noninteractive

# install maap-py library
ENV MAAP_CONF='/maap-py/'
RUN git clone --single-branch --branch master https://github.com/MAAP-Project/maap-py.git \
&& cd maap-py \
&& pip install -e .

RUN set -ex \
&& apt-get update

RUN mkdir /projects
WORKDIR /projects
RUN sed -i -e 's/\/root/\/projects/g' /etc/passwd

RUN conda install -y -c conda-forge mamba=1.4.2

RUN mamba install -y -c conda-forge isce3=0.12.0 xarray=2023.4.2 \
hvplot=0.8.3 fsspec=2023.5.0 scikit-learn=1.2.2 && \
find /opt/conda/ -follow -type f -name '*.a' -delete && \
find /opt/conda/ -follow -type f -name '*.js.map' -delete && \
/opt/conda/bin/conda clean -afy

RUN pip install git+https://github.com/opera-adt/[email protected]

ARG IMAGE_REF
ENV DOCKERIMAGE_PATH=${IMAGE_REF}
95 changes: 95 additions & 0 deletions devfiles/isce3/devfile/devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
apiVersion: 1.0.0
metadata:
generateName: isce2-
attributes:
editorFree: 'true'
components:
- endpoints:
- attributes:
type: ide
discoverable: 'false'
path: /
public: 'true'
protocol: http
name: jupyter
port: 3100
referenceContent: |
kind: List
items:
- apiVersion: v1
kind: Pod
metadata:
name: ws
labels:
ssh: enabled
spec:
volumes:
- name: ws-pvc
persistentVolumeClaim:
claimName: ws
- name: s3fs-volume
emptyDir: {}
containers:
- name: jupyter
image: 'mas.dit.maap-project.org/root/maap-workspaces/jupyterlab3/isce3:develop'
imagePullPolicy: Always
resources:
limits:
memory: 8096Mi
volumeMounts:
- name: ws-pvc
mountPath: /projects
subPath: projects
- name: s3fs-volume
mountPath: /projects/.jupyter
subPath: dotjupyter
- name: s3fs-volume
mountPath: /projects/my-private-bucket
subPath: my-private-bucket
mountPropagation: HostToContainer
- name: s3fs-volume
mountPath: /projects/my-public-bucket
subPath: my-public-bucket
mountPropagation: HostToContainer
- name: s3fs-volume
mountPath: /projects/shared-buckets
subPath: shared-buckets
mountPropagation: HostToContainer
- name: s3fs
image: 'mas.ops.maap-project.org/root/che-sidecar-s3fs:master'
imagePullPolicy: Always
resources:
limits:
memory: 256Mi
securityContext:
privileged: true
volumeMounts:
- name: s3fs-volume
mountPath: /my-public-bucket
subPath: my-public-bucket
mountPropagation: Bidirectional
- name: s3fs-volume
mountPath: /my-private-bucket
subPath: my-private-bucket
mountPropagation: Bidirectional
- name: s3fs-volume
mountPath: /shared-buckets
subPath: shared-buckets
mountPropagation: Bidirectional
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ws
spec:
storageClassName: nfs-client-che
- apiVersion: v1
kind: Service
metadata:
generateName: sshport-
spec:
type: NodePort
ports:
- port: 22
selector:
ssh: enabled
type: kubernetes
Binary file added devfiles/isce3/devfile/jupyter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions devfiles/isce3/devfile/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
displayName: "MAAP ISCE3/PLAnT"
description: Latest version of MAAP ISCE3
tags: ["JupyterLab", "Python", "MAAP", "ISCE3", "PLAnT"]
icon: /devfiles/isce3/devfile/jupyter.png
globalMemoryLimit: 2710Mi
16 changes: 16 additions & 0 deletions jupyterlab3/isce3/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: base
channels:
- conda-forge
- nodefaults
dependencies:
- gitpython=3.1.26
- ipyleaflet=0.17.2
- jupyterlab=3.6.3
- jupyterlab-git=0.34.2
- jupyter-packaging=0.12.3
- jupyterlab_widgets=1.0.2
- nodejs=16.19.0
- plotly=5.5.0
- xmltodict=0.13.0
- pip:
- jupyter-ydoc==0.2.4