certidude
certidude copied to clipboard
Dockerize Certidude server
To make adoption easier, Certidude server could be wrapped up as a Docker image.
Hi, I thing this idea is really good and I have seen in the readme something about it but the Dockerfile is missing... Is the first time that you find first documentation than code! hehe. @laurivosandi Could you commit it? Thank you!
For those still looking for this, here's the fix:
git clone https://github.com/werty1st/certidude
cd certidude
sed -i 's/ubuntu:16/ubuntu:20/' docker/Dockerfile
sed -i 's/apt install/DEBIAN_FRONTEND=noninteractive apt install/' docker/Dockerfile
sed -i 's/xenial/focal/' certidude/cli.py
sed -i "1106d" certidude/cli.py
export LC_ALL=C.UTF-8 && export LANG=C.UTF-8
docker build --add-host adamsCA.local:127.0.0.1 -t certidude -f docker/Dockerfile .
docker run -it --rm -p 8443:443 --hostname adamsCA.local certidude:latest bash