-
Notifications
You must be signed in to change notification settings - Fork 1
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
working plugin that returns cat.jpg for all inputs #3
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0e1b999
working plugin that returns cat.jpg for all inputs
asjohnston-asf 50d337a
Merge branch 'develop' into cats
asjohnston-asf 5b27b23
specify python 3.12 instead of default 3.9 for reusable-version-info
asjohnston-asf 21b4e26
use github sha for docker tags for now
asjohnston-asf ba6334f
remove obsolete dependency for docker build job
asjohnston-asf 1aaba39
Revert "use github sha for docker tags for now"
asjohnston-asf 6f2a8ad
add setuptools_scm build dependency
asjohnston-asf f03a727
allow python>=3.9
asjohnston-asf 2a8bb41
more docker build futzing
asjohnston-asf 4612bb6
put dockerfile labels back
asjohnston-asf c9ea7f3
back to python 3.12
asjohnston-asf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -13,6 +13,8 @@ on: | |
jobs: | ||
call-version-info-workflow: | ||
# Docs: https://github.com/ASFHyP3/actions | ||
with: | ||
python_version: 3.12 | ||
uses: ASFHyP3/actions/.github/workflows/[email protected] | ||
|
||
call-docker-ghcr-workflow: | ||
|
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,4 +1,4 @@ | ||
FROM ghcr.io/osgeo/gdal:alpine-small-latest | ||
FROM mambaorg/micromamba:latest | ||
|
||
# For opencontainers label definitions, see: | ||
# https://github.com/opencontainers/image-spec/blob/master/annotations.md | ||
|
@@ -9,32 +9,16 @@ LABEL org.opencontainers.image.authors="tools-bot <[email protected]>" | |
LABEL org.opencontainers.image.licenses="BSD-3-Clause" | ||
LABEL org.opencontainers.image.url="https://github.com/ASFHyP3/harmony-opera-rtc-reproject" | ||
LABEL org.opencontainers.image.source="https://github.com/ASFHyP3/harmony-opera-rtc-reproject" | ||
LABEL org.opencontainers.image.documentation="https://hyp3-docs.asf.alaska.edu" | ||
LABEL org.opencontainers.image.documentation="https://harmony.earthdata.nasa.gov/" | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ENV PYTHONDONTWRITEBYTECODE=true | ||
WORKDIR /home/mambauser | ||
|
||
RUN apk add bash build-base gcc g++ gfortran openblas-dev cmake python3 python3-dev libffi-dev netcdf-dev libxml2-dev libxslt-dev libjpeg-turbo-dev zlib-dev hdf5 hdf5-dev gdal-dev gdal-tools | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/environment.yml | ||
|
||
RUN python -m venv /opt/venv | ||
RUN micromamba install -y -n base -f /tmp/environment.yml && \ | ||
micromamba clean --all --yes | ||
|
||
ENV PATH="/opt/venv/bin:$PATH" | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER opera-rtc-reproject.py /home/mambauser/opera-rtc-reproject.py | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER cat.jpg /home/mambauser/cat.jpg | ||
|
||
RUN python -m ensurepip --upgrade | ||
RUN pip3 install gdal numpy netCDF4 matplotlib harmony-service-lib | ||
|
||
# Create a new user | ||
RUN adduser -D -s /bin/sh -h /home/dockeruser -g "" -u 1000 dockeruser | ||
USER dockeruser | ||
ENV HOME /home/dockeruser | ||
|
||
USER root | ||
RUN mkdir -p /worker && chown dockeruser /worker | ||
USER dockeruser | ||
WORKDIR /worker | ||
|
||
COPY --chown=dockeruser opera-rtc-reproject.py . | ||
|
||
# Run the service | ||
ENTRYPOINT ["python3", "-m", "opera-rtc-reproject"] | ||
CMD ["-h"] | ||
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "python", "-m", "opera-rtc-reproject"] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 +1,12 @@ | ||
name: harmony-opera-rtc-reproject | ||
name: opera-rtc-reproject | ||
channels: | ||
- conda-forge | ||
- nodefaults | ||
dependencies: | ||
- python>=3.8 | ||
- python>=3.12 | ||
- pip | ||
# For packaging, and testing | ||
- flake8 | ||
- flake8-import-order | ||
- flake8-blind-except | ||
- flake8-builtins | ||
- setuptools | ||
- gdal | ||
- pystac | ||
- setuptools_scm | ||
- wheel | ||
- pytest | ||
- pytest-console-scripts | ||
- pytest-cov | ||
# For running | ||
- hyp3lib>=3,<4 | ||
- pip: | ||
- harmony-service-lib |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the high-res here.