summaryrefslogtreecommitdiff
path: root/bin/docker-gcp
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2017-11-07 08:47:26 -0800
committerFranck Cuny <fcuny@twitter.com>2017-11-07 08:47:26 -0800
commit28cadb970ca0b1ae6cde58d09eadb6af89999ddf (patch)
tree3f3d0096bc041ed74868872c43beb9612afebc75 /bin/docker-gcp
parent[emacs] add scala-mode (diff)
downloademacs.d-28cadb970ca0b1ae6cde58d09eadb6af89999ddf.tar.gz
Remove bin, this is now in it's own repo
Diffstat (limited to 'bin/docker-gcp')
-rwxr-xr-xbin/docker-gcp74
1 files changed, 0 insertions, 74 deletions
diff --git a/bin/docker-gcp b/bin/docker-gcp
deleted file mode 100755
index 5aa9c2a..0000000
--- a/bin/docker-gcp
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/bash
-
-GCP_PROJECT=${1:-fcuny-devel}
-DOCKER_MACHINE_NAME=${2:-gcp}
-
-COMMAND=$1
-
-usage() {
- echo "$0: [create|start|stop|status|ssh|scp|tmux-status]" >&2
- exit 1
-}
-
-__create() {
- docker-machine create "${DOCKER_MACHINE_NAME}" \
- -d google \
- --google-project="${GCP_PROJECT}" \
- --google-machine-type n1-highcpu-4
-}
-
-__start() {
- docker-machine start "${DOCKER_MACHINE_NAME}"
-}
-
-__stop() {
- docker-machine stop "${DOCKER_MACHINE_NAME}"
-}
-
-__status() {
- docker-machine status "${DOCKER_MACHINE_NAME}"
-}
-
-__ssh() {
- docker-machine ssh "${DOCKER_MACHINE_NAME}"
-}
-
-__scp() {
- echo "This is not implemented yet."
- exit 2
-}
-
-__tmux-status() {
- [ $(__status) == 'Running' ] && echo "Docker GCP up"
-}
-
-if [[ -z "${COMMAND}" ]]; then
- usage
-fi
-
-case "${COMMAND}" in
- create)
- __create
- ;;
- start)
- __start
- ;;
- stop)
- __stop
- ;;
- status)
- __status
- ;;
- ssh)
- __ssh
- ;;
- scp)
- __scp
- ;;
- tmux-status)
- __tmux-status
- ;;
- *)
- usage
- ;;
-esac