Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coatl-dev/docker-six

🐳 Docker image with Python 3.13, 3.12 and 2.7.18 pre-installed.
https://github.com/coatl-dev/docker-six

azure-pipelines ci-cd docker docker-image dockerfile github-actions python python2 python3

Last synced: 2 days ago
JSON representation

🐳 Docker image with Python 3.13, 3.12 and 2.7.18 pre-installed.

Awesome Lists containing this project

README

        

# coatldev/six

[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/coatl-dev/docker-six/coatl.svg "pre-commit.ci status")](https://results.pre-commit.ci/latest/github/coatl-dev/docker-six/coatl)
[![Docker Repository on Docker Hub](https://img.shields.io/badge/hub.docker.com-white?logo=docker "Docker Repository on Docker Hub")](https://hub.docker.com/r/coatldev/six)
[![Docker Repository on Quay](https://img.shields.io/badge/quay.io-red?logo=red-hat "Docker Repository on Quay")](https://quay.io/repository/coatldev/six)

Docker image based on Ubuntu 24.04 (Noble Numbat) with Python 3.13.1, 3.12.8
and 2.7.18 pre-installed.

## Supported tags

- [`3.13`, `3.13.1`, `latest`]

For the full list of supported tags, see:

- [Docker Hub tags]
- [Quay.io tags]

## Supported platforms

|Container image registry|amd64|arm64|
|------------------------|-----|-----|
|[Docker Hub] | ✅ | ✅ |
|[Quay.io] | ✅ | ✅ |

## How to use this image

The examples below will demonstrate how to use this image in [Azure Pipelines],
and [GitHub Workflows].

> [!NOTE]
> `pip` caching is disabled by default.
> See:

### Azure Pipelines

```yml
jobs:
- job: tox

pool:
vmImage: ubuntu-latest

container: coatldev/six:latest # or quay.io/coatldev/six:latest

steps:
- script: |
sudo chown -R $(whoami):$(id -ng) "${PYTHON_ROOT}"
displayName: Change owner

- script: |
python -m pip install tox
displayName: Install dependencies

- script: |
tox
displayName: Run tests
```

### GitHub Actions workflow

```yml
jobs:
tox:

runs-on: ubuntu-latest

container: coatldev/six:latest # or quay.io/coatldev/six:latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install dependencies
run: |
python -m pip install tox

- name: Run tests
run: |
tox
```

## Source of inspiration

Based on the [Docker "Official Image"] for [python] using the following
`Dockerfile`s:

- [2.7/buster/slim]
- [3.12/slim-bullseye]
- [3.13/slim-bullseye]

[`3.13`, `3.13.1`, `latest`]: https://github.com/coatl-dev/docker-six/blob/coatl/Dockerfile
[Azure Pipelines]: https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/jobs-job-container?view=azure-pipelines
[GitHub Workflows]: https://docs.github.com/en/actions/using-jobs/running-jobs-in-a-container
[Docker Hub]: https://hub.docker.com/r/coatldev/six
[Docker Hub tags]: https://hub.docker.com/r/coatldev/six/tags
[Docker "Official Image"]: https://github.com/docker-library/official-images#what-are-official-images
[python]: https://hub.docker.com/_/python/
[Quay.io]: https://quay.io/repository/coatldev/six
[Quay.io tags]: https://quay.io/repository/coatldev/six?tab=tags

[2.7/buster/slim]: https://github.com/docker-library/python/blob/f1e613f48eb4fc88748b36787f5ed74c14914636/2.7/buster/slim/Dockerfile
[3.12/slim-bullseye]: https://github.com/docker-library/python/blob/HEAD/3.12/slim-bullseye/Dockerfile
[3.13/slim-bullseye]: https://github.com/docker-library/python/blob/HEAD/3.13/slim-bullseye/Dockerfile