Open ansiblejunky opened 3 years ago
Modifying the Dockerfile
to force installation of a higher version of cryptography
fixes the problem. This is a minimal fix, but ultimately the whole repo needs to be updated to use python3 instead and adjust the Dockerfile appropriately. I tested with docker base image python:3.8-alpha
and some adjustments to the requirements.txt
and ran the pip-compile command to regenerate the constraints.txt
. The docker image built fine, but running the fake-switches got a prompt but when I tried enable
command it asked for admin password and even though I provided it, it did not accept it. So something in the code needs further fixes.
For now, here's the Dockerfile change you need. Add the cryptography requirement to the file, right above the pip install command that exists.
RUN pip install cryptography==3.0
RUN pip install --no-cache-dir -r requirements.txt
Running the suggested docker command
docker run -P -d internap/fake-switches
results in failure. Using latest version/code/branch.