Skip to content
Closed
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
6 changes: 3 additions & 3 deletions .github/workflows/publish_sar_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on: # yamllint disable-line rule:truthy
workflow_dispatch: {}

push:
branches: ['main', 'test']
branches: ["main", "test"]
tags:
- "v*.*.*"

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}_sar
IMAGE_NAME: ${{ github.repository }}_earthscope

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
id: push
uses: docker/build-push-action@v6.10.0
with:
context: images/sar
context: images/earthscope
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
6 changes: 0 additions & 6 deletions images/dasklab/.gitignore

This file was deleted.

25 changes: 0 additions & 25 deletions images/dasklab/Dockerfile

This file was deleted.

22 changes: 0 additions & 22 deletions images/dasklab/build.sh

This file was deleted.

179 changes: 0 additions & 179 deletions images/dasklab/etc/gateway_access_example.ipynb

This file was deleted.

21 changes: 0 additions & 21 deletions images/daskworker/Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions images/daskworker/build.sh

This file was deleted.

4 changes: 0 additions & 4 deletions images/opera/.gitignore → images/earthscope/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@
!build.sh
!Dockerfile
!download.sh
!pkgs
!pkgs/**
!environment
!environment/**
!configs
!configs/**
42 changes: 25 additions & 17 deletions images/sar/Dockerfile → images/earthscope/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RUN apt-get update
# ignore DL3009 since deleting apt-get lists makes later installs fail
# hadolint ignore=DL3008,DL3009
RUN apt-get install --no-install-recommends -y \
software-properties-common \
git && \
software-properties-common \
git && \
apt-get install --no-install-recommends -y gpg-agent && \
add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable && \
apt-get update && \
Expand Down Expand Up @@ -104,26 +104,26 @@ RUN mamba install -c conda-forge -y \
# ignore DL3013 since pinning packages is not desired
# hadolint ignore=DL3013,DL3059
RUN python3 -m pip install --no-cache-dir \
### For ASF
url-widget \
opensarlab-frontend==1.5.1 \
jupyterlab-jupyterbook-navigation==0.2.0 \
jupyterlab_myst \
### For pyGMTSAR
pygmtsar
### For ASF
url-widget \
opensarlab-frontend==1.5.1 \
jupyterlab-jupyterbook-navigation==0.2.0 \
jupyterlab_myst \
### For pyGMTSAR
pygmtsar
WORKDIR /
RUN mkdir -p /tmp/build/GMTSAR /usr/local/GMTSAR &&\
git clone --branch master https://github.com/gmtsar/gmtsar /tmp/build/GMTSAR/
git clone --branch master https://github.com/gmtsar/gmtsar /tmp/build/GMTSAR/
WORKDIR /tmp/build/GMTSAR
RUN autoconf &&\
./configure --with-orbits-dir=/tmp CFLAGS='-z muldefs' LDFLAGS='-z muldefs' &&\
make &&\
make install &&\
mv -v /tmp/build/GMTSAR/bin /usr/local/GMTSAR/bin &&\
rm -rf /tmp/build
./configure --with-orbits-dir=/tmp CFLAGS='-z muldefs' LDFLAGS='-z muldefs' &&\
make &&\
make install &&\
mv -v /tmp/build/GMTSAR/bin /usr/local/GMTSAR/bin &&\
rm -rf /tmp/build
WORKDIR /
### Extra stuff
# Make sure that any files in the home directory are jovyan permission
### Extra stuff
# Make sure that any files in the home directory are jovyan permission
RUN chown -R jovyan:users "$HOME/" &&\
# Make sure mamba (within conda) has write access
chmod -R 777 /opt/conda/pkgs/ &&\
Expand All @@ -143,5 +143,13 @@ RUN chown -R jovyan:users "$HOME/" &&\
### GMTSAR
ENV PATH=/usr/local/GMTSAR/bin:$PATH

## Build extra mamba environment
COPY environment/environment.yaml /tmp/environment.yaml

RUN mamba env create -f /tmp/environment.yaml &&\
python3 -m ipykernel install --prefix /opt/conda/envs/earthscope_insar --name earthscope_insar --display-name "earthscope_insar" &&\
rm -rf /opt/conda/pkgs/cache &&\
conda env config vars set -n earthscope_insar EARTHSCOPE_HELLO_WORLD="HELLO THERE"

WORKDIR /home/jovyan
USER jovyan
File renamed without changes.
File renamed without changes.
Loading
Loading