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

https://github.com/metabrainz/docker-python

Docker base image that comes with Python out of the box
https://github.com/metabrainz/docker-python

consul-template docker python runit

Last synced: 8 months ago
JSON representation

Docker base image that comes with Python out of the box

Awesome Lists containing this project

README

          

# Docker images with Python

## Introduction

This repository contains Docker images with different versions of Python installed. All are based on the
[`consul-template-base`](https://hub.docker.com/r/metabrainz/consul-template-base/) image, which comes with
[Consul Template](https://github.com/hashicorp/consul-template) and other tools like *runit* installed.

### Consul Template

Consul Template runs as a separate service managed by *runit*.

With Consul Template 0.16, Configuration for it must be stored in the */etc/consul-template.conf* file. See its
[documentation](https://github.com/hashicorp/consul-template) for setup details.
Consul Template is **turned on by default**. If you don't
need to use Consul Template, that service needs to be removed explicitly in the Dockerfile that you are
writing.

With Consul Template 0.18, you must create your own runit service and use the `run-consul-template`
script to render a template and execute a child process. See an
[example in the MusicBrainz server](https://github.com/metabrainz/musicbrainz-server/tree/master/docker/musicbrainz-website).

## Usage

To use these images simply specify `FROM metabrainz/python:` at the beginning of your Dockerfile.
`` is a *version of Python* that you need to use, followed with the *creation date* of the image;
If an image is updated more than once in a day, then extra tags will also include the sequence number.
See the [list of image tags available on Docker Hub|https://hub.docker.com/r/metabrainz/python/tags/].

## Building and deploying images

Use [`push.sh`](push.sh) script. The way it operates is detailed in its heading comments.

## Available images

We have these images available:

image version | python version | consul-template version | ubuntu version
----|----|----|----
2.7, 2.7-20220421 | 2.7.18 | 0.27.1 | focal
3.9-focal, 3.9-focal-20220315 | 3.9.10 | 0.27.1 | focal
3.10, 3.10-20220315 | 3.10.2 | 0.27.1 | focal
3.11, 3.11-20221221 | 3.11.1 | 0.27.1 | focal
3.11-20231006 | 3.11.6 | 0.33.0 | jammy
3.12-20241130 | 3.12.7 | 0.39.1 | jammy
3.13-20250616 | 3.13.5 | 0.40.0 | noble