I'm building on Ubuntu 20.04 and 22.04, this issue is caused by two factors:
In the Makefile SHELL is not specified. However, one of the steps requires source Bash command. Explicitly defining the SHELL in the Makefile as SHELL:=/bin/bash, resolves this first issue.
At Docker building time, in packaging/Dockerfile the 'pip install' can't find _dockerconstraints.txt file. This because this file is not shipped any more inside the certbot/certbot:2.1.0 docker image pointed by the FROM section of the Dockerfile. Removing --constraint /opt/certbot/docker_constraints.txt from packaging/Dockerfile solves the issue and the docker image is then successfully built.
I'm building on Ubuntu 20.04 and 22.04, this issue is caused by two factors:
In the Makefile SHELL is not specified. However, one of the steps requires
source
Bash command. Explicitly defining the SHELL in the Makefile asSHELL:=/bin/bash
, resolves this first issue.At Docker building time, in packaging/Dockerfile the 'pip install' can't find _dockerconstraints.txt file. This because this file is not shipped any more inside the certbot/certbot:2.1.0 docker image pointed by the
FROM
section of the Dockerfile. Removing--constraint /opt/certbot/docker_constraints.txt
from packaging/Dockerfile solves the issue and the docker image is then successfully built.I will create a PR for this later on