Build own Docker containers images with Poetry installed
In order to set-up the CI/CD #149 (closed), Docker containers with Poetry installed should be created.
Having the maintenance over these images gives the control over futures behaviours.
Run directly without Poetry
Run directly on the Docker image With Python.
Poetry is somehow using Python installed on the system.
virtualenvs.create false
Pre-built images
- https://pythonspeed.com/articles/base-image-python-docker-images/
- https://hub.docker.com/r/nikaro/poetry
- https://hub.docker.com/r/michalmazurek/python-poetry
Own-built images
- Based on official Python images: Docker hub, git repository
-
Install poetry
, andlibsodium
-
Publish git repository here https://git.duniter.org/docker/python3/poetry -
Python images with Slim Debian is enough -
Buster + Python version 3.5, 3.6, 3.7, and 3.8 -
Publish built images on https://registry.duniter.org/docker/python3/poetry/$PYTHON_VERSION:{tag,latest}
- https://about.gitlab.com/2016/05/23/gitlab-container-registry/
- https://docs.gitlab.com/ee/user/project/container_registry.html
-
change: - only $PYTHON_VERSION/Dockerfile
: not working -
Installing pip install poetry --pre
fails on v3.8:- installing
gcc
andlibffi-dev
by-passes the issue
- installing
-
Redshift Runner fails building containers due to already existing docker image to build certain containers
Later
-
Windows? -
Could be used by DuniterPy if it uses Poetry
Edited by Moul