Skip to content

Commit

Permalink
feat(containers): Add sat container (#110)
Browse files Browse the repository at this point in the history
* feat(containers): Add sat container

* fix(containers): Eumdac in sat container

* feat(containers): Add sat container
  • Loading branch information
devsjc authored May 24, 2024
1 parent cef3110 commit 973b395
Show file tree
Hide file tree
Showing 3 changed files with 647 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
include:
- folder: containers/icon
image: ghcr.io/openclimatefix/icon-etl
- folder: containers/sat
image: ghcr.io/openclimatefix/sat-etl

steps:
- name: Checkout repository
Expand Down
22 changes: 22 additions & 0 deletions containers/sat/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Build a virtualenv using miniconda
# * Install required compilation tools for wheels via apt
# * Install required non-python binaries via conda
FROM quay.io/condaforge/miniforge3:latest AS build-venv
RUN apt -qq update && apt -qq install -y build-essential
RUN conda create -p /venv python=3.12
RUN /venv/bin/pip install --upgrade -q pip wheel setuptools
RUN conda install -p /venv -c conda-forge -y cartopy satpy[all] numpy
ENV GDAL_CONFIG=/venv/bin/gdal-config

# Build the virtualenv
FROM build-venv as install-reqs
RUN /venv/bin/python -m pip install -q diskcache pyproj pyresample xarray pyyaml ocf_blosc2 tqdm eumdac


# Copy the virtualenv into a distroless image
FROM gcr.io/distroless/python3-debian11
COPY --from=install-reqs /venv /venv
COPY . /app
WORKDIR /app
ENTRYPOINT ["/venv/bin/python3", "download_process_sat.py"]

Loading

0 comments on commit 973b395

Please sign in to comment.