From 4018e3834210d1188ea2cfac12f11544d3d1f5c2 Mon Sep 17 00:00:00 2001 From: Oluwafemi Adenuga Date: Fri, 1 Dec 2023 14:03:21 +0100 Subject: [PATCH] Add version 1.7.1 add version 1.7.1 Fix: Replace `buster` with `bookworm` update --- .github/workflows/release.yml | 6 +++--- Dockerfile | 4 ++-- README.md | 16 ++++++++-------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index accecba..61afe3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: types: [published] env: - POETRY_VERSION: 1.6.1 + POETRY_VERSION: 1.7.1 GHCR_IMAGE_REPOSITORY: ghcr.io/${{ github.repository_owner }}/poetry PLATFORMS: linux/amd64,linux/arm64/v8 @@ -21,12 +21,12 @@ jobs: - "3.11" - "3.12" variant: - - buster + - bookworm - slim include: - python: "3.12" is_default_python: true - - variant: buster + - variant: bookworm is_default_variant: true steps: - uses: actions/checkout@v3 diff --git a/Dockerfile b/Dockerfile index 1bd9c85..bfa0ea7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ARG PYTHON_VERSION=3.12 -ARG VARIANT=buster +ARG VARIANT=bookworm FROM python:${PYTHON_VERSION}-${VARIANT} @@ -9,7 +9,7 @@ ARG PIP_VERSION=22.2.2 ARG SETUPTOOLS_VERSION=65.3.0 RUN pip install --upgrade pip==${PIP_VERSION} setuptools==${SETUPTOOLS_VERSION} -ARG POETRY_VERSION=1.6.1 +ARG POETRY_VERSION=1.7.1 ENV POETRY_HOME=/opt/poetry\ PATH="${PATH}:/opt/poetry/bin" RUN python3 -m venv ${POETRY_HOME} &&\ diff --git a/README.md b/README.md index bceda28..c6ed7da 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Docker Poetry is a Docker image for Python projects with dependencies managed by Poetry. -![Poetry](https://img.shields.io/badge/Poetry-1.6.1-purple) ![Python](https://img.shields.io/badge/Python-3.12%20(default)%20%7C%203.11%20%7C%203.10%20%7C%203.9%20%7C%203.8-blue) ![Variants](https://img.shields.io/badge/Variants-Buster%20(default)%20%7C%20Slim-orange +![Poetry](https://img.shields.io/badge/Poetry-1.7.1-purple) ![Python](https://img.shields.io/badge/Python-3.12%20(default)%20%7C%203.11%20%7C%203.10%20%7C%203.9%20%7C%203.8-blue) ![Variants](https://img.shields.io/badge/Variants-Bookworm%20(default)%20%7C%20Slim-orange ) ## Why @@ -17,7 +17,7 @@ For the simplest use case just pick your Poetry version: ghcr.io/withlogicco/poetry: ``` -This will use the default Python version (latest) and image variant (Buster). You can be more specific by picking either a Python version, image variant or both: +This will use the default Python version (latest) and image variant (Bookworm). You can be more specific by picking either a Python version, image variant or both: - Python version: `ghcr.io/withlogicco/poetry:-python-` - Image variant: `ghcr.io/withlogicco/poetry:-` @@ -25,17 +25,17 @@ This will use the default Python version (latest) and image variant (Buster). Yo ### Examples -- Poetry 1.6.1: `ghcr.io/withlogicco/poetry:1.6.1` -- Poetry 1.6.1 on Python 3.12: `ghcr.io/withlogicco/poetry:1.6.1-python-3.12` -- Poetry 1.6.1 on Buster: `ghcr.io/withlogicco/poetry:1.6.1-buster` -- Poetry 1.6.1 on Python 3.12 and Buster: `ghcr.io/withlogicco/poetry:1.6.1-python-3.12-buster` +- Poetry 1.7.1: `ghcr.io/withlogicco/poetry:1.7.1` +- Poetry 1.7.1 on Python 3.12: `ghcr.io/withlogicco/poetry:1.7.1-python-3.12` +- Poetry 1.7.1 on Bookworm: `ghcr.io/withlogicco/poetry:1.7.1-bookworm` +- Poetry 1.7.1 on Python 3.12 and Bookworm: `ghcr.io/withlogicco/poetry:1.7.1-python-3.12-bookworm` ## Usage First, pick the image tag you wish to use. Then, copy your `pyproject.toml` and `poetry.lock` files in the working directory (`/usr/src/app`), for optimal caching and run `poetry install`. Example: ```dockerfile -FROM ghcr.io/withlogicco/poetry:1.6.1 +FROM ghcr.io/withlogicco/poetry:1.7.1 COPY pyproject.toml poetry.lock ./ RUN poetry install @@ -59,7 +59,7 @@ You can check the currently supported Python versions at https://endoflife.date/ We provide builds for three different image variants: -- Debian Buster (default): `buster` +- Debian Bookworm (default): `bookworm` - Debian Slim: `slim` ## License