Add script to provide dev shell
This commit is contained in:
		
							
								
								
									
										7
									
								
								dev/dev_shell.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										7
									
								
								dev/dev_shell.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
#!/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'
 | 
			
		||||
							
								
								
									
										1
									
								
								dev/readme.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								dev/readme.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
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.
 | 
			
		||||
							
								
								
									
										4
									
								
								dev/tools/initfile.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								dev/tools/initfile.sh
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
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
 | 
			
		||||
		Reference in New Issue
	
	Block a user