Skip to content

aka-bo/docker-machine-godaddy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Machine GoDaddy Driver

A Docker Machine driver plugin for GoDaddy Cloud Servers.

Requirements

Installation

Releases

For a simple single-line install, run the following:

$ curl -L https://git.io/virTz | sudo bash

Not a fan of curl | bash? No problem.

Download the latest version of docker-machine-driver-godaddy from GitHub Releases, ensure the plugin is executable, and copy to a directory included in your environment's PATH variable:

$ curl -L https://github.com/godaddy/docker-machine-godaddy/releases/download/v1.0.0/docker-machine-driver-godaddy-$(uname -s) > docker-machine-driver-godaddy
$ chmod +x docker-machine-driver-godaddy
$ mv docker-machine-driver-godaddy /usr/local/lib/  # use sudo if necessary

From Source

Ensure Go and Godep are properly installed and your $GOPATH variable is set.

$ go get -u github.com/godaddy/docker-machine-godaddy
$ cd $GOPATH/src/github.com/godaddy/docker-machine-godaddy
$ make build
$ make install

Usage

Official documentation for Docker Machine is available here.

To create machines on GoDaddy Cloud Servers you will need an API key associated with your GoDaddy account. API keys can be obtained on the GoDaddy Developer Portal.

With an API key in hand, you can create a new server with:

$ docker-machine create --driver godaddy --godaddy-api-key=${APIKEY} myhost

Alternatively, you can use environment variables:

$ export GODADDY_API_KEY=${APIKEY}
$ docker-machine create -d godaddy myhost

Options:

  • --godaddy-api-key: Your GoDaddy API key.
  • --godaddy-base-api-url: The GoDaddy API endpoint.
  • --godaddy-boot-timeout: Amount of time (in seconds) to wait for the initial boot.
  • --godaddy-image: The image to use for the new server.
  • --godaddy-spec: The server spec to use for the new server.
  • --godaddy-ssh-key: Private keyfile to use for SSH (absolute path).
  • --godaddy-ssh-key-id: Id of the existing GoDaddy SSH Key to associate with this new server.
  • --godaddy-data-center: The GoDaddy data center to launch the server in.
  • --godaddy-zone: The data center zone to launch the server in.
  • --godaddy-ssh-user: Name of the user to be used for SSH.

Environment variables and default values:

CLI option Environment variable Default
--godaddy-api-key GODADDY_API_KEY -
--godaddy-base-api-url GODADDY_API_URL https://api.godaddy.com
--godaddy-boot-timeout GODADDY_BOOT_TIMEOUT 120
--godaddy-image GODADDY_IMAGE ubuntu-1604
--godaddy-spec GODADDY_SPEC tiny
--godaddy-ssh-key GODADDY_SSH_KEY -
--godaddy-ssh-key-id GODADDY_SSH_KEY_ID -
--godaddy-data-center GODADDY_DATA_CENTER phx
--godaddy-zone GODADDY_ZONE phx-1
--godaddy-ssh-user GODADDY_SSH_USER machine

About

A Docker Machine driver plugin for GoDaddy Cloud Servers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 95.8%
  • Shell 2.3%
  • Makefile 1.9%