-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from max-pfeiffer/feature/multiple_poetry_versions
Feature/multiple poetry versions
- Loading branch information
Showing
10 changed files
with
101 additions
and
36 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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
- name: Install Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.1.11 | ||
poetry-version: 1.1.15 | ||
- name: Install dependencies | ||
run: | | ||
poetry config virtualenvs.in-project true | ||
|
@@ -43,7 +43,7 @@ jobs: | |
- name: Install Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.1.11 | ||
poetry-version: 1.1.15 | ||
- name: Install dependencies | ||
run: | | ||
poetry config virtualenvs.in-project true | ||
|
@@ -78,7 +78,7 @@ jobs: | |
- name: Install Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.1.11 | ||
poetry-version: 1.1.15 | ||
- name: Install dependencies | ||
run: | | ||
poetry config virtualenvs.in-project true | ||
|
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,4 +1,16 @@ | ||
[![codecov](https://codecov.io/gh/max-pfeiffer/python-poetry/branch/main/graph/badge.svg?token=WQI2SJJLZN)](https://codecov.io/gh/max-pfeiffer/uvicorn-poetry) | ||
![pipeline workflow](https://github.com/max-pfeiffer/python-poetry/actions/workflows/pipeline.yml/badge.svg) | ||
# python-poetry | ||
A Python Docker image with Poetry installed and ready to use. | ||
A Python Docker image with [Poetry](https://python-poetry.org/) installed and | ||
ready to use. You can use this image as base image for your own application | ||
which uses [Poetry](https://python-poetry.org/) for dependency management. | ||
|
||
## Docker Image Features | ||
1. Poetry versions: | ||
2. v1.1.15 | ||
3. v1.2.2 | ||
3. Python versions: | ||
4. v3.7 | ||
5. v3.8 | ||
6. v3.9 | ||
5. v3.10 |
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,9 +1,8 @@ | ||
# References: using official Python images | ||
# https://hub.docker.com/_/python | ||
ARG OFFICIAL_PYTHON_IMAGE | ||
ARG IMAGE_POETRY_VERSION | ||
ARG APPLICATION_SERVER_PORT | ||
FROM ${OFFICIAL_PYTHON_IMAGE} | ||
ARG POETRY_VERSION | ||
|
||
LABEL maintainer="Max Pfeiffer <[email protected]>" | ||
|
||
|
@@ -18,7 +17,7 @@ LABEL maintainer="Max Pfeiffer <[email protected]>" | |
ENV PIP_NO_CACHE_DIR=off \ | ||
PIP_DISABLE_PIP_VERSION_CHECK=on \ | ||
PIP_DEFAULT_TIMEOUT=100 \ | ||
POETRY_VERSION=${IMAGE_POETRY_VERSION} \ | ||
POETRY_VERSION=${POETRY_VERSION} \ | ||
POETRY_HOME="/opt/poetry" | ||
|
||
ENV PATH="$POETRY_HOME/bin:$PATH" | ||
|
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,25 +1,73 @@ | ||
PYTHON_POETRY_IMAGE_NAME: str = "pfeiffermax/python-poetry" | ||
TARGET_ARCHITECTURES: list[str] = [ | ||
"python3.9.14-bullseye-poetry1.2.1", | ||
"python3.9.14-slim-bullseye-poetry1.2.1", | ||
"python3.10.7-bullseye-poetry1.2.1", | ||
"python3.10.7-slim-bullseye-poetry1.2.1", | ||
"poetry1.1.15-python3.7.14-bullseye", | ||
"poetry1.1.15-python3.7.14-slim-bullseye", | ||
"poetry1.1.15-python3.8.14-bullseye", | ||
"poetry1.1.15-python3.8.14-slim-bullseye", | ||
"poetry1.1.15-python3.9.14-bullseye", | ||
"poetry1.1.15-python3.9.14-slim-bullseye", | ||
"poetry1.1.15-python3.10.7-bullseye", | ||
"poetry1.1.15-python3.10.7-slim-bullseye", | ||
"poetry1.2.2-python3.7.14-bullseye", | ||
"poetry1.2.2-python3.7.14-slim-bullseye", | ||
"poetry1.2.2-python3.8.14-bullseye", | ||
"poetry1.2.2-python3.8.14-slim-bullseye", | ||
"poetry1.2.2-python3.9.14-bullseye", | ||
"poetry1.2.2-python3.9.14-slim-bullseye", | ||
"poetry1.2.2-python3.10.7-bullseye", | ||
"poetry1.2.2-python3.10.7-slim-bullseye", | ||
] | ||
BASE_IMAGES: dict = { | ||
TARGET_ARCHITECTURES[0]: "python:3.9.14-bullseye", | ||
TARGET_ARCHITECTURES[1]: "python:3.9.14-slim-bullseye", | ||
TARGET_ARCHITECTURES[2]: "python:3.10.7-bullseye", | ||
TARGET_ARCHITECTURES[3]: "python:3.10.7-slim-bullseye", | ||
TARGET_ARCHITECTURES[0]: "python:3.7.14-bullseye", | ||
TARGET_ARCHITECTURES[1]: "python:3.7.14-slim-bullseye", | ||
TARGET_ARCHITECTURES[2]: "python:3.8.14-bullseye", | ||
TARGET_ARCHITECTURES[3]: "python:3.8.14-slim-bullseye", | ||
TARGET_ARCHITECTURES[4]: "python:3.9.14-bullseye", | ||
TARGET_ARCHITECTURES[5]: "python:3.9.14-slim-bullseye", | ||
TARGET_ARCHITECTURES[6]: "python:3.10.7-bullseye", | ||
TARGET_ARCHITECTURES[7]: "python:3.10.7-slim-bullseye", | ||
TARGET_ARCHITECTURES[8]: "python:3.7.14-bullseye", | ||
TARGET_ARCHITECTURES[9]: "python:3.7.14-slim-bullseye", | ||
TARGET_ARCHITECTURES[10]: "python:3.8.14-bullseye", | ||
TARGET_ARCHITECTURES[11]: "python:3.8.14-slim-bullseye", | ||
TARGET_ARCHITECTURES[12]: "python:3.9.14-bullseye", | ||
TARGET_ARCHITECTURES[13]: "python:3.9.14-slim-bullseye", | ||
TARGET_ARCHITECTURES[14]: "python:3.10.7-bullseye", | ||
TARGET_ARCHITECTURES[15]: "python:3.10.7-slim-bullseye", | ||
} | ||
PYTHON_VERSIONS: dict = { | ||
TARGET_ARCHITECTURES[0]: "3.9.14", | ||
TARGET_ARCHITECTURES[1]: "3.9.14", | ||
TARGET_ARCHITECTURES[2]: "3.10.7", | ||
TARGET_ARCHITECTURES[3]: "3.10.7", | ||
TARGET_ARCHITECTURES[0]: "3.7.14", | ||
TARGET_ARCHITECTURES[1]: "3.7.14", | ||
TARGET_ARCHITECTURES[2]: "3.8.14", | ||
TARGET_ARCHITECTURES[3]: "3.8.14", | ||
TARGET_ARCHITECTURES[4]: "3.9.14", | ||
TARGET_ARCHITECTURES[5]: "3.9.14", | ||
TARGET_ARCHITECTURES[6]: "3.10.7", | ||
TARGET_ARCHITECTURES[7]: "3.10.7", | ||
TARGET_ARCHITECTURES[8]: "3.7.14", | ||
TARGET_ARCHITECTURES[9]: "3.7.14", | ||
TARGET_ARCHITECTURES[10]: "3.8.14", | ||
TARGET_ARCHITECTURES[11]: "3.8.14", | ||
TARGET_ARCHITECTURES[12]: "3.9.14", | ||
TARGET_ARCHITECTURES[13]: "3.9.14", | ||
TARGET_ARCHITECTURES[14]: "3.10.7", | ||
TARGET_ARCHITECTURES[15]: "3.10.7", | ||
} | ||
POETRY_VERSIONS: dict = { | ||
TARGET_ARCHITECTURES[0]: "1.2.1", | ||
TARGET_ARCHITECTURES[1]: "1.2.1", | ||
TARGET_ARCHITECTURES[2]: "1.2.1", | ||
TARGET_ARCHITECTURES[3]: "1.2.1", | ||
TARGET_ARCHITECTURES[0]: "1.1.15", | ||
TARGET_ARCHITECTURES[1]: "1.1.15", | ||
TARGET_ARCHITECTURES[2]: "1.1.15", | ||
TARGET_ARCHITECTURES[3]: "1.1.15", | ||
TARGET_ARCHITECTURES[4]: "1.1.15", | ||
TARGET_ARCHITECTURES[5]: "1.1.15", | ||
TARGET_ARCHITECTURES[6]: "1.1.15", | ||
TARGET_ARCHITECTURES[7]: "1.1.15", | ||
TARGET_ARCHITECTURES[8]: "1.2.2", | ||
TARGET_ARCHITECTURES[9]: "1.2.2", | ||
TARGET_ARCHITECTURES[10]: "1.2.2", | ||
TARGET_ARCHITECTURES[11]: "1.2.2", | ||
TARGET_ARCHITECTURES[12]: "1.2.2", | ||
TARGET_ARCHITECTURES[13]: "1.2.2", | ||
TARGET_ARCHITECTURES[14]: "1.2.2", | ||
TARGET_ARCHITECTURES[15]: "1.2.2", | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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