Please go to Enable Docker Remote API with TLS client verification.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pass the env-vars to MYCOMMAND | |
eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
# … or ... | |
# Export the vars in .env into your shell: | |
export $(egrep -v '^#' .env | xargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# - name: Generate DH Params (may take several minutes!) | |
# command: openssl dhparam \ | |
# -out "/data/jenkins_home/ssl/dhparam.pem" 2048 | |
# args: | |
# creates: "/data/jenkins_home/ssl/dhparam.pem" | |
# | |
# - name: Generate ECC Key | |
# command: openssl ecparam \ | |
# -genkey \ | |
# -name prime256v1 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### How it works | |
## rsync | |
# A tool that syncs your files across environments over ssh. | |
# When you run the command the second time, it only copies the changed files. | |
## inotify/fswatch | |
# inotify-tools is a linux file watcher and fswatch is for Mac OS. It's as simple as that. | |
## Put them together and you get | |
# A tool that watches your files for changes on one machine and updates them on the other immediately. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once dirname(__FILE__) . '/../lib/simpletest/autorun.php'; | |
// Retries $f (A function) with arguments ($args as array) | |
// 3 ($retries) times after 10 secs $delay | |
// Usage: | |
// retry( 'function_name', array('arg1', 'arg2'), 15, 5 ); | |
// #=> Retries function_name 5 times with arg1 and $arg2 as arguments at interval of 15 secs | |
function retry($f, $args = null, $delay = 10, $retries = 3) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo add-apt-repository -y ppa:git-core/ppa | |
sudo apt-get update | |
sudo apt-get install git -y |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.