-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into stac-dir-populator
- Loading branch information
Showing
13 changed files
with
137 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## IDE | ||
.idea/ | ||
.vscode/ | ||
|
||
## SCM | ||
.git* | ||
|
||
## Configurations | ||
.* | ||
*.rc | ||
|
||
## Environment | ||
.conda/ | ||
.env* | ||
*.env | ||
.venv/ | ||
jupyter/ | ||
|
||
## Tests | ||
.coverage | ||
.pytest_cache | ||
reports | ||
|
||
## Caches | ||
**/__pycache__/ | ||
STACpopulator.egg-info/ | ||
build | ||
*.pyc |
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,11 +1,21 @@ | ||
## IDE | ||
.idea/ | ||
.vscode/ | ||
|
||
## Environment | ||
.conda/ | ||
.env* | ||
*.env | ||
.venv/ | ||
jupyter/ | ||
|
||
## Tests | ||
.coverage | ||
.pytest_cache | ||
build | ||
reports | ||
*.pyc | ||
|
||
## Caches | ||
**/__pycache__/ | ||
STACpopulator.egg-info/ | ||
.vscode/ | ||
.venv/ | ||
jupyter/ | ||
.idea | ||
.vscode | ||
build | ||
*.pyc |
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
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 +1 @@ | ||
__version__ = "0.1.0" | ||
__version__ = "0.2.0" |
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
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,32 @@ | ||
FROM python:3.10-slim | ||
LABEL description.short="STAC Populator" | ||
LABEL description.long="Utility to populate STAC Catalog, Collections and Items from various dataset/catalog sources." | ||
LABEL maintainer="Francis Charette-Migneault <[email protected]>" | ||
LABEL vendor="CRIM" | ||
LABEL version="0.2.0" | ||
|
||
# setup paths | ||
ENV APP_DIR=/opt/local/src/stac-populator | ||
WORKDIR ${APP_DIR} | ||
|
||
# obtain source files | ||
COPY STACpopulator/ ${APP_DIR}/STACpopulator/ | ||
COPY README.md LICENSE pyproject.toml ${APP_DIR}/ | ||
|
||
# install runtime/package dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
netbase \ | ||
git \ | ||
&& mkdir -p /home/stac/.esdoc/ \ | ||
&& git clone "https://github.com/ES-DOC/pyessv-archive" /home/stac/.esdoc/pyessv-archive/ \ | ||
&& pip install --no-cache-dir ${APP_DIR} \ | ||
&& apt-get remove -y \ | ||
git \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN groupadd -r stac && useradd -r -g stac stac | ||
USER stac | ||
|
||
# FIXME: use common CLI | ||
CMD ["bash"] |
File renamed without changes.
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