github.com/pachyderm/pachyderm@v1.13.4/etc/contributing/bash_helpers (about)

     1  # Add the following (commented) line to your ~/.bash_profile equivalent to digest these helpers:
     2  #
     3  # (assumes you have cloned the repository under $GOPATH per below)
     4  #
     5  # source $GOPATH/src/github.com/pachyderm/pachyderm/etc/contributing/bash_helpers
     6  
     7  function portforwarding() {
     8           ps -ef | grep "docker/machine" | grep -v grep | cut -f 4 -d " " | while read -r pid
     9           do
    10                  kill $pid
    11           done
    12           docker-machine ssh dev -fTNL 8080:localhost:8080 -L 30650:localhost:30650
    13  }
    14  
    15  function init_docker_machine() {
    16      eval "$(docker-machine env dev)"
    17  }
    18  
    19  function create_docker_machine () {
    20      docker-machine create \
    21          --driver google \
    22          --google-disk-size 500 \
    23          --google-disk-type pd-ssd \
    24          --google-machine-type n1-standard-8 \
    25          --google-zone us-central1-c \
    26          --google-project YOURNAME-dev \
    27          dev
    28  }