-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move strict requirements for the Docker image to a requirements.txt file
- Loading branch information
Showing
4 changed files
with
33 additions
and
22 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
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,24 +1,13 @@ | ||
ARG BASE_IMAGE=nansencenter/geospaas:latest | ||
|
||
# This stage can be used to run tests | ||
FROM ${BASE_IMAGE} AS base | ||
COPY . /tmp/setup | ||
RUN pip install --upgrade --no-cache-dir -r /tmp/setup/requirements.txt | ||
|
||
ARG METANORM_VERSION | ||
RUN pip install --upgrade --no-cache-dir \ | ||
https://github.com/nansencenter/metanorm/releases/download/${METANORM_VERSION}/metanorm-${METANORM_VERSION}-py3-none-any.whl \ | ||
'copernicusmarine' \ | ||
'feedparser==6.0.*' \ | ||
'graypy==2.1.*' \ | ||
'requests_oauthlib==1.3.*' \ | ||
'tblib' | ||
|
||
ARG PYTHESINT_VERSION='' | ||
RUN bash -c "[ -n '$PYTHESINT_VERSION' ] && pip install --upgrade 'pythesint==$PYTHESINT_VERSION' || true" | ||
|
||
# This stage contains the full installation | ||
FROM base | ||
|
||
COPY . /tmp/setup | ||
RUN pip install /tmp/setup && \ | ||
rm -rf /tmp/setup | ||
|
||
ENTRYPOINT ["python"] | ||
CMD ["-m", "geospaas_harvesting.cli"] |
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
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,28 @@ | ||
# Dependency requirements that can be used to build a working environment. | ||
# For example, this is used to build the Docker image. | ||
|
||
# strict requirements | ||
metanorm @ git+https://github.com/nansencenter/metanorm@4.5.2 | ||
pythesint==1.7.0 | ||
|
||
# loose requirements | ||
copernicusmarine==1.* | ||
django-geo-spaas==2.* | ||
django>=3 | ||
feedparser==6.* | ||
feedparser==6.0.* | ||
graypy==2.* | ||
graypy==2.1.* | ||
nansat==1.* | ||
netCDF4==1.* | ||
numpy==1.* | ||
oauthlib==3.* | ||
python-dateutil==2.* | ||
PyYAML==5.* | ||
requests_oauthlib==1.* | ||
requests_oauthlib==1.3.* | ||
requests==2.* | ||
shapely==2.* | ||
|
||
# necessary for running unit tests in parallel | ||
tblib |