Skip to content
Snippets Groups Projects
Commit eccebba5 authored by Michael Porter's avatar Michael Porter
Browse files

Add script to provide dev shell

parent 56b693ea
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -e
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
PROJ_DIR="$(dirname "$SCRIPT_DIR")"
docker run -it --rm --entrypoint /bin/sh -e GANDI_API_KEY -v "$PROJ_DIR:/tmp/work" certbot/certbot:v0.22.0 '/tmp/work/dev/tools/initfile.sh'
Set env var GANDI_API_KEY to your GANDI LiveDNS API key and run ./dev_shell.sh to get a shell with certbot ready to run with the plugin installed.
pip install -e /tmp/work/plugin
printf 'certbot_plugin_gandi:dns_api_key=%s\n' $GANDI_API_KEY > /tmp/config.ini && chmod 400 /tmp/config.ini
echo 'Example: certbot certonly --test-cert -a certbot-plugin-gandi:dns --certbot-plugin-gandi:dns-credentials /tmp/config.ini -d domain.com'
exec /bin/sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment