Sign inSign up

jdubz/ci-python

By jdubz

•Updated over 2 years ago

Minimal Python images for testing Ansible collections.

Image
Integration & delivery
0

402

jdubz/ci-python repository overview

⁠Docker/Python CI image

Gitlab pipeline status (self-hosted) Docker pulls Liberapay patrons Liberapay receiving

Minimal Python⁠ images for testing Ansible⁠ collections.

⁠Description

Both flavors of this image contain the following Python versions installed at /usr/local/bin/pythonX.Y:

  • 3.8
  • 3.9
  • 3.10
  • 3.11
  • 3.12

Additionally, the -alpine-docker image contains the Docker cli tools for interacting with a Docker daemon (primarily within GitLab CI/CD pipelines). The intended usage would be to create a Python virtualenv for the target Python version, and use that to perform CI tasks. For example:

mkdir "${CI_PROJECT_PATH}/.venvs"
/usr/local/bin/python3.12 -m venv "${CI_PROJECT_PATH}/.venvs/3.12"
source "${CI_PROJECT_PATH}/.venvs/3.12/bin/activate"
python -m pip install -U pip
python -m pip install -r requirements.txt

⁠Disclaimer

These images are built specifically for performing CI testing of Ansible collections, and are not intended for general use.

⁠License

MIT

⁠Author

Tag summary

Content type

Image

Digest

sha256:7dfe4a808…

Size

239.1 MB

Last updated

over 2 years ago

docker pull jdubz/ci-python:latest-alpine-docker