This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Pipenv -> poetry * format code with black * fix types for mypy * ignore mypy cache * use poetry
- Loading branch information
Showing
28 changed files
with
1,704 additions
and
819 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,3 @@ | ||
[flake8] | ||
max-line-length=240 | ||
ignore=E722,W503 |
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 |
---|---|---|
|
@@ -10,4 +10,5 @@ dist/ | |
*.bak | ||
htmlcov/ | ||
.pytest_cache/ | ||
.vscode | ||
.vscode | ||
.mypy_cache |
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,23 +1,27 @@ | ||
FROM python:3.7-alpine3.10 | ||
MAINTAINER Henning Jacobs <henning@jacobs1.de> | ||
FROM python:3.8-slim | ||
|
||
WORKDIR / | ||
|
||
COPY Pipfile.lock / | ||
COPY pipenv-install.py / | ||
RUN pip3 install poetry | ||
|
||
RUN /pipenv-install.py && \ | ||
rm -fr /usr/local/lib/python3.7/site-packages/pip && \ | ||
rm -fr /usr/local/lib/python3.7/site-packages/setuptools | ||
COPY poetry.lock / | ||
COPY pyproject.toml / | ||
|
||
FROM python:3.7-alpine3.10 | ||
RUN poetry config virtualenvs.create false && \ | ||
poetry install --no-interaction --no-dev --no-ansi | ||
|
||
FROM python:3.8-slim | ||
|
||
WORKDIR / | ||
|
||
COPY --from=0 /usr/local/lib/python3.7/site-packages /usr/local/lib/python3.7/site-packages | ||
# copy pre-built packages to this image | ||
COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages | ||
|
||
# now copy the actual code we will execute (poetry install above was just for dependencies) | ||
COPY kube_janitor /kube_janitor | ||
|
||
ARG VERSION=dev | ||
|
||
RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" /kube_janitor/__init__.py | ||
|
||
ENTRYPOINT ["python3", "-m", "kube_janitor"] |
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.