Skip to content

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

License

Notifications You must be signed in to change notification settings

coatl-dev/docker-six

Repository files navigation

coatldev/six

pre-commit.ci status Docker Repository on Docker Hub Docker Repository on Quay

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

Supported tags

For the full list of supported tags, see:

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: actions/runner#652

Azure Pipelines

Using Docker Hub:

jobs:
  - job: tox

    pool:
      vmImage: ubuntu-latest

    container: 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

Using Quay.io:

jobs:
  - job: tox

    pool:
      vmImage: ubuntu-latest

    container: 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 Workflows

Using Docker Hub:

jobs:
  tox:

    runs-on: ubuntu-latest

    container: 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

Using Quay.io:

jobs:
  tox:

    runs-on: ubuntu-latest

    container: 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 Dockerfiles: