I hereby claim:
- I am rnwilson on github.
- I am rnwilson (https://keybase.io/rnwilson) on keybase.
- I have a public key ASBu2yQ0leiX98wf48dE2u8Hlrh9r3Nzs9sHPYTMrh274Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
apt-get -y update | |
apt-get -y upgrade | |
curl -fsSL get.docker.com -o /tmp/get-docker.sh && sh /tmp/get-docker.sh | |
wget https://dl.bintray.com/docker-compose/master/docker-compose-Linux-x86_64 -O /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose | |
# Node.js | |
wget https://nodejs.org/dist/latest-v10.x/node-v10.6.0-linux-x64.tar.xz -O /tmp/node.tar.xz && tar -C /usr/local -xf /tmp/node.tar.xz --strip-components=1 | |
# Go | |
wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz -O /tmp/go.tar.gz && tar -C /usr/local -xzf /tmp/go.tar.gz | |
echo PATH=$PATH:/usr/local/go/bin >> /etc/profile.d/env_load.sh |
if [ -f ~/.docker_aliases ]; then | |
. ~/.docker_aliases | |
fi | |
#common | |
alias cls='clear' | |
alias ipaddr='curl ifconfig.me' | |
## pass options to free ## | |
alias meminfo='free -m -l -t' |
# .docker_aliases | |
alias dm='docker-machine' | |
alias dmx='docker-machine ssh' | |
alias dk='docker' | |
alias dki='docker images' | |
alias dks='docker service' | |
alias dkrm='docker rm' | |
alias dkl='docker logs' | |
alias dklf='docker logs -f' | |
alias dkflush='docker rm `docker ps --no-trunc -aq`' |
export PATH=$PATH:/usr/local/go/bin |
#common | |
alias cls='clear' | |
alias ipaddr='curl ifconfig.me' | |
## pass options to free ## | |
alias meminfo='free -m -l -t' | |
## get top process eating memory | |
alias psmem='ps auxf | sort -nr -k 4' | |
alias psmem10='ps auxf | sort -nr -k 4 | head -10' |
#cloud-config | |
# https://github.com/number5/cloud-init/blob/master/doc/examples/cloud-config.txt | |
package_update: true | |
runcmd: | |
# Docker | |
- curl -fsSL get.docker.com -o /tmp/get-docker.sh && sh /tmp/get-docker.sh | |
- wget https://dl.bintray.com/docker-compose/master/docker-compose-Linux-x86_64 -O /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose | |
# Node.js |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
ssh -D 8123 -f -C -q -N [email protected] | |
run locally then connect ssh to remote host for proxy |
We use a home made redis-3.0 docker image (https://registry.hub.docker.com/u/bobuss/redis-cluster/), with the cluster mode enabled, and the classical ports exposed (6379 for redis and 16379 for the cluster).