Skip to content

callahanrts/dokku-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dokku Demo

Setup

Dependencies

Host Machine Setup

  1. Add 192.168.33.10 microservices.local to your /etc/hosts
  2. Clone this repository
  3. Start the vm: vagrant up
  4. SSH into the vm: vagrant ssh

Guest Machine Setup

  1. Install Dokku

    • wget https://raw.githubusercontent.com/dokku/dokku/v0.7.1/bootstrap.sh
    • sudo DOKKU_TAG=v0.7.1 bash bootstrap.sh
  2. Navigate to microservices.local

  3. Copy your public key (output of cat ~/.ssh/id_rsa.pub) to the Dokku Setup.

  4. Change the hostname to microservices.local

  5. Check use virtualhost naming for apps

  6. Finish Setup

Test Out a Sample App

Follow the instructions of the deploy tutorial or:

Guest (Dokku) Machine
$ dokku apps:create ruby-rails-sample
$ sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git
$ dokku postgres:create rails-database
$ dokku postgres:link rails-database ruby-rails-sample
Host Machine

/etc/hosts doesn't support wildcards so add 192.168.33.10 ruby-rails-sample.microservices.local to your /etc/hosts. In production, we would point *.microservices.com, or similar, to our server.

$ cd ruby-rails-sample
$ git remote add dokku dokku@microservices.local:ruby-rails-sample
$ git push dokku master

Navigate to http://ruby-rails-sample.microservices.local

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published