Error message When you run docker-compose up -d in your pipeline script, the following error is thrown. The APPDATA variable is not set. Defaulting to a blank string. Couldn’t connect to Docker daemon at http+docker://localhost – is it running? If it’s at a non-standard location, specify the URL with the DOCKER_HOST environment variable. Solution Your […]
Prerequisite Clone master branch from certbot Github repo here Easiest solution cd in to your cloned directory let’s say ~/certbot Set your domain as an env var DOMAIN=mimimi.fun (replace mimimi.fun with your own domain) Run this ./certbot-auto certonly –manual -d *.$DOMAIN -d $DOMAIN –agree-tos –manual-public-ip-logging-ok –preferred-challenges dns-01 –server https://acme-v02.api.letsencrypt.org/directory Follow the instruction given(add TXT record […]
When you need to copy a production db to debug or run some tests, you need to copy template data one place to another, you will need this. Simple one liner using mysqldbcopy CLI tool mysqldbcopy –source=username:[email protected]:port –destination=username:[email protected]:port from_db_name:to_db_name –drop-first Comments are welcomed!
Why You often needs to execute shell scripts on the remote machine if you are using Jenkins to do CD to a remote server from your central server. Sometimes you must prefix your command with sudo in order to complete your deployment, here the problem comes, sudo will prompt you to enter password and this […]