Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Created September 24, 2014 05:09
Show Gist options
  • Save ianblenke/800154a5bfa3df932b81 to your computer and use it in GitHub Desktop.
Save ianblenke/800154a5bfa3df932b81 to your computer and use it in GitHub Desktop.
vagrant deis deploy using deisctl
# Make sure you have go installed, GOROOT defined, and are, well, ready to... go.
projects ian$ git clone https://github.com/deis/deis
projects ian$ cd deis
deis ian$ mkdir -p /opt/go
deis ian$ export GOPATH=/opt/go
deis ian$ export PATH=/opt/go/bin:$PATH
deis ian$ godep get github.com/deis/deisctl
deis ian$ export DEISCTL_UNITS=/opt/go/src/github.com/deisctl/units
deis ian$ vagrant up
Bringing machine 'deis-1' up with 'virtualbox' provider...
==> deis-1: Box 'coreos-444.0.0' could not be found. Attempting to find and install...
deis-1: Box Provider: virtualbox
deis-1: Box Version: >= 0
==> deis-1: Adding box 'coreos-444.0.0' (v0) for provider: virtualbox
deis-1: Downloading: http://storage.core-os.net/coreos/amd64-usr/444.0.0/coreos_production_vagrant.box
==> deis-1: Successfully added box 'coreos-444.0.0' (v0) for 'virtualbox'!
==> deis-1: Importing base box 'coreos-444.0.0'...
==> deis-1: Matching MAC address for NAT networking...
==> deis-1: Setting the name of the VM: deis_deis-1_1411531043236_91376
==> deis-1: Fixed port collision for 22 => 2222. Now on port 2202.
==> deis-1: Clearing any previously set network interfaces...
==> deis-1: Preparing network interfaces based on configuration...
deis-1: Adapter 1: nat
deis-1: Adapter 2: hostonly
==> deis-1: Forwarding ports...
deis-1: 22 => 2202 (adapter 1)
==> deis-1: Running 'pre-boot' VM customizations...
==> deis-1: Booting VM...
==> deis-1: Waiting for machine to boot. This may take a few minutes...
deis-1: SSH address: 127.0.0.1:2202
deis-1: SSH username: core
deis-1: SSH auth method: private key
deis-1: Warning: Connection timeout. Retrying...
==> deis-1: Machine booted and ready!
==> deis-1: Setting hostname...
==> deis-1: Configuring and enabling network interfaces...
==> deis-1: Running provisioner: file...
==> deis-1: Running provisioner: shell...
deis-1: Running: /var/folders/2r/qqk5shgx49s69y1s_trffr3h0000gq/T/vagrant-shell20140923-12515-1js8gee.sh
==> deis-1: Running provisioner: shell...
deis-1: Running: inline script
deis ian$ vagrant status
Current machine states:
deis-1 running (virtualbox)
The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simply
suspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.
deis ian$ vagrant ssh
* * * ***** ddddd eeeeeee iiiiiii ssss
* * * * * * d d e e i s s
* * ***** ***** d d e i s
***** * * * d d e i s
* * * * * * d d eee i sss
***** * * ***** d d e i s
* ***** * * d d e i s
* * * * * * d d e e i s s
***** ***** * * ddddd eeeeeee iiiiiii ssss
Welcome to Deis Powered by CoreOS
core@deis-1 ~ $ fleetctl list-units
UNIT MACHINE ACTIVE SUB
core@deis-1 ~ $ exit
logout
Connection to 127.0.0.1 closed.
deis ian$ deisctl
Usage:
deisctl <command> [<target>...] [options]
deis ian$ export DEISCTL_TUNNEL=172.17.8.100
deis ian$ ping 172.17.8.100
PING 172.17.8.100 (172.17.8.100): 56 data bytes
64 bytes from 172.17.8.100: icmp_seq=0 ttl=64 time=0.445 ms
^C
--- 172.17.8.100 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.445/0.445/0.445/0.000 ms
deis ian$ ssh-add ~/.vagrant.d/insecure_private_key
Identity added: ~/.vagrant.d/insecure_private_key (~/.vagrant.d/insecure_private_key)
deis ian$ deisctl install platform
● ▴ ■
■ ● ▴ Installing Deis...
▴ ■ ●
Scheduling data containers...
deis-database-data.service: loaded
deis-registry-data.service: loaded
deis-logger-data.service: loaded
deis-builder-data.service: loaded
Data containers scheduled.
Scheduling service containers...
deis-database@1.service: loaded
deis-cache@1.service: loaded
deis-logger@1.service: loaded
deis-registry@1.service: loaded
deis-controller@1.service: loaded
deis-builder@1.service: loaded
deis-router@1.service: loaded
Service containers scheduled.
Deis installed.
Please run `deisctl start platform` to boot up Deis.
deis ian$ deisctl start platform
● ▴ ■
■ ● ▴ Starting Deis...
▴ ■ ●
Launching data containers...
deis-database-data.service: exited
deis-registry-data.service: exited
deis-logger-data.service: exited
deis-builder-data.service: exited
Data containers launched.
Launching service containers...
deis-logger@1.service: running
deis-cache@1.service: running
deis-router@1.service: running
deis-database@1.service: running
deis-controller@1.service: running
deis-registry@1.service: start-post
INFO log.go:73: Failed getting response from http://127.0.0.1:4001/: cancelled
Error: timeout reached
deis ian$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment