-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Poetry in build scripts and CI (#24)
* Use poetry * Add Github Action to push to github docker registry on when adding a tag
- Loading branch information
Showing
9 changed files
with
466 additions
and
97 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
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,17 +1,30 @@ | ||
FROM python:3.8-slim | ||
FROM python:3.8-slim as python-base | ||
|
||
ENV CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt | ||
ENV \ | ||
PYTHONUNBUFFERED=1 \ | ||
PYTHONFAULTHANDLER=1 \ | ||
PYTHONDONTWRITEBYTECODE=1 \ | ||
PIP_NO_CACHE_DIR=off \ | ||
PIP_DISABLE_PIP_VERSION_CHECK=on \ | ||
PIP_DEFAULT_TIMEOUT=100 \ | ||
POETRY_VIRTUALENVS_CREATE=false \ | ||
POETRY_NO_INTERACTION=1 | ||
|
||
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install poetry==1.1.7 | ||
|
||
RUN mkdir -p /opt/src/pypgstac | ||
|
||
WORKDIR /opt/src/pypgstac | ||
|
||
COPY pypgstac/requirements-dev.txt /opt/src/pypgstac/requirements-dev.txt | ||
RUN pip install -r requirements-dev.txt | ||
COPY pypgstac/poetry.lock pypgstac/pyproject.toml ./ | ||
RUN poetry install | ||
|
||
|
||
COPY pypgstac /opt/src/pypgstac | ||
RUN pip install . | ||
RUN poetry install | ||
|
||
ENV PYTHONPATH=/opt/src/pypgstac:${PYTHONPATH} | ||
|
||
WORKDIR /opt/src | ||
WORKDIR /opt/src |
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.