-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trial micromamba/conda-forge based docker image
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
datacube_wms/wms_cfg_local.py | ||
.pytest_cache | ||
*/__pycache__ | ||
|
||
venv | ||
.venv | ||
|
||
.pixi | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM mambaorg/micromamba:1.5.8 | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER env.micromamba.yaml /tmp/env.yaml | ||
RUN --mount=type=cache,target=/opt/conda/pkgs micromamba install -y -n base -f /tmp/env.yaml && \ | ||
micromamba clean --all --yes | ||
|
||
ARG MAMBA_DOCKERFILE_ACTIVATE=1 # (otherwise python will not be found) | ||
|
||
|
||
COPY --chown=$MAMBA_USER:$MAMBA_USER . /tmp/code | ||
|
||
ARG PSEUDO_VERSION # strongly recommended to update based on git describe | ||
|
||
RUN SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DATACUBE_OWS=${PSEUDO_VERSION} pip install /tmp/code #-e .[test] | ||
#RUN pip install /code | ||
#python -c 'import uuid; print(uuid.uuid4())' > /tmp/my_uuid | ||
|
||
ENV GDAL_DISABLE_READDIR_ON_OPEN="EMPTY_DIR" \ | ||
CPL_VSIL_CURL_ALLOWED_EXTENSIONS=".tif, .tiff" \ | ||
GDAL_HTTP_MAX_RETRY="10" \ | ||
GDAL_HTTP_RETRY_DELAY="1" | ||
|
||
CMD ["gunicorn", "-b", "0.0.0.0:8000", "--workers=3", "-k", "gthread", "--timeout", "121", "--pid", "/tmp/gunicorn.pid", "--log-level", "info", "--worker-tmp-dir", "/dev/shm", "--config", "python:datacube_ows.gunicorn_config", "datacube_ows.wsgi"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: base | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.12 | ||
- datacube | ||
- flask | ||
- gunicorn | ||
- geoalchemy2 | ||
- pillow | ||
- requests | ||
- lxml | ||
- deepdiff | ||
- scipy | ||
- flask-babel | ||
- regex | ||
- matplotlib | ||
- python-slugify | ||
- prometheus_flask_exporter | ||
- timezonefinder | ||
- iso8601 | ||
- ciso8601 | ||
- colour | ||
- setuptools_scm | ||
- bottleneck | ||
- pip: | ||
- pyows |