This file contains 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
dpkg -s nodejs &> /dev/null || { | |
sudo apt-get -y nodejs npm | |
ln -s /usr/bin/nodejs /usr/bin/node | |
} | |
which bower || { | |
sudo npm install -g bower | |
} |
This file contains 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
#In red Version | |
export PS1="\n\[\e[1;37;41m\] \u \[\e[0m\] \[\e[0;31m\]\!:\[\e[0m\]\w\[\e[0;31m\]:\[\e[0m\] " | |
#Or in green version | |
export PS1="\n\[\e[1;37;42m\] \u \[\e[0m\] \[\e[0;31m\]\!:\[\e[0m\]\w\[\e[0;31m\]:\[\e[0m\] " |
This file contains 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
Examples with cfssl | |
https://coreos.com/os/docs/latest/generate-self-signed-certificates.html | |
https://github.com/coreos/etcd/tree/master/hack/tls-setup | |
Build cfssl | |
https://github.com/cloudflare/cfssl/blob/master/BUILDING.md | |
How to deploy | |
http://blog.skrobul.com/securing_etcd_with_tls/ | |
https://medium.com/@gargar454/coreos-etcd-and-fleet-with-encryption-and-authentication-27ffefd0785c#.878suzplu |
This file contains 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
docker run --rm -ti -v /usr/bin/docker:/bin/docker -v /run/docker.sock:/run/docker.sock ubuntu:15.04 /bin/bash -c "apt-get -y install sqlite3 sqlite3-doc && /bin/bash" |
This file contains 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
docker rmi $(docker images | grep <none> | tr -s ' ' _ | cut -d '_' -f 3) |
This file contains 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
docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}" |
This file contains 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
# Create the Root CA private key | |
## ref> https://www.openssl.org/docs/manmaster/apps/genrsa.html | |
openssl genrsa -out myRootCA.key 4096 | |
# Generate the Root CA certificate signed with the private key | |
## ref> https://www.openssl.org/docs/manmaster/apps/req.html | |
openssl req -x509 -new -nodes -key myRootCA.key -days 3650 -out myRootCA.pem | |
# Country Name (2 letter code) [AU]:AU | |
# State or Province Name (full name) [Some-State]:NSW |
This file contains 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
# Create a private key for the ssl cert | |
## ref> https://www.openssl.org/docs/manmaster/apps/genrsa.html | |
openssl genrsa -out myTLS.key 2048 | |
# Generate the TLS certificate request | |
## ref> https://www.openssl.org/docs/manmaster/apps/req.html | |
openssl req -new -key myTLS.key -out myTLS.req | |
# Country Name (2 letter code) [AU]:AU | |
# State or Province Name (full name) [Some-State]:NSW |
This file contains 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
#PREPARE REGISTRY | |
#-------------------------------------- | |
export REGISTRY_VERSION=2.4.0 | |
# PULL REGISTRY | |
docker pull registry:${REGISTRY_VERSION} |
This file contains 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
'use strict' | |
var gulp = require('gulp') | |
, requireDir = require('require-dir') | |
, runSequence= require('run-sequence') | |
; | |
/* Load additional gulp tasks */ | |
requireDir('./gulp-tasks') | |
/* Just run "gulp" to manually compile all the project related files */ |
OlderNewer