]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
CI container: fixed poetry
authorVasek Sraier <git@vakabus.cz>
Mon, 22 Feb 2021 07:40:00 +0000 (08:40 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Fri, 8 Apr 2022 14:17:51 +0000 (16:17 +0200)
manager/ci/devenv/Dockerfile

index 1b531c3a8f05817a48f04d2dc3d49cf6cd1a34bf..34446ecf706cf05c01de4b2b04311bc730c806ef 100644 (file)
@@ -37,9 +37,10 @@ RUN pyenv install 3.9.1
 
 # install poetry
 USER root
-RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y python3
+RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y python3 python3-distutils-extra
 USER user
 
 RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
-# Poetry installer manages to change the PATH somehow, so we do not need this
-# ENV PATH="/home/user/.poetry/bin:$PATH"
+ENV PATH="/home/user/.poetry/bin:$PATH"
+# force Poetry to run under python3
+RUN sed -i 's/env python/env python3/' .poetry/bin/poetry