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 | |
IMG_PHP="tutum/apache-php:latest" | |
IMG_DB="mysql:latest" | |
CONT_DB="mysql_container" | |
CONT_PHP="php_container" | |
PASS_DB="clavedatabase" | |
DIR_SRC=$PWD"/src" | |
DB_DIR=$PWD"/data" | |
DB_NAME="database_name" |
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 | |
if ! /Applications/VirtualBox.app/Contents/MacOS/VBoxManage list runningvms | grep boot2docker-vm >/dev/null ; then | |
boot2docker start | |
fi | |
if [ "$DOCKER_HOST"=="" ]; then | |
eval $(boot2docker shellinit 2>/dev/null) | |
fi | |
/usr/local/bin/docker $@ |
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
fluentd: | |
build: ./fluentd | |
links: | |
- "elasticsearch" | |
volumes: | |
- /var/lib/docker/containers:/var/lib/docker/containers | |
- /var/run:var/run | |
- /var/log/docker:/var/log/docker | |
elasticsearch: |
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
function current_branch() { | |
git branch|grep "\*"|awk '{print $2}' | |
} | |
function gpull() { | |
git pull origin $(current_branch) | |
} | |
function gpush() { | |
git push origin $(current_branch) |
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 | |
MACHINE='dev' | |
if ! /Applications/VirtualBox.app/Contents/MacOS/VBoxManage list runningvms | grep $MACHINE >/dev/null ; then | |
docker-machine start $MACHINE | |
fi | |
if [ "$DOCKER_HOST"=="" ]; then | |
eval $(docker-machine env $MACHINE 2>/dev/null) |
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 | |
if [ -z $1 ]; | |
then | |
session=$(basename `pwd`) | |
else | |
session=$1 | |
fi | |
tmux has-session -t $session |
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
#!/usr/bin/env bash | |
git status | awk '/both modified/ {print $3}'|xargs grep -n "HEAD" |
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
docker rm $(docker ps -aqf status=exited) |
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 | |
DIR=`pwd` | |
SRC_DIR=$1 | |
BUCKET=$2 | |
TMP_DIR="/tmp/gzsync" | |
mkdir -p $TMP_DIR | |
# check that we have a trailing slash | |
[[ $BUCKET != */ ]] && BUCKET="$BUCKET"/ |
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 | |
if [ -z $1 ]; | |
then | |
br_orig="master" | |
else | |
br_orig=$1 | |
fi | |
if [ -z $2 ]; |