Set docker hostname option for dokku (https://github.com/progrium/dokku)
Makefile Shell
Latest commit a196693 Apr 12, 2016 @michaelshobbs Merge pull request #7 from michaelshobbs/mh-use-opsworks-info
extract opsworks stack name and prepend it to hostname
Permalink
Failed to load latest commit information.
.editorconfig Fix more incompatibilities with 0.4.x Sep 23, 2015
LICENSE.txt Fix more incompatibilities with 0.4.x Sep 23, 2015
Makefile cleanup lint target Mar 22, 2016
README.md Merge pull request #7 from michaelshobbs/mh-use-opsworks-info Apr 12, 2016
circle.yml move to circleci Mar 22, 2016
docker-args extract opsworks stack name and prepend it to hostname Mar 31, 2016
docker-args-build also trigger on build Mar 22, 2016
docker-args-deploy
docker-args-run Add hostname flag only on deploy and run Nov 29, 2015
plugin.toml extract opsworks stack name and prepend it to hostname Mar 31, 2016

README.md

dokku-hostname Build Status

Sets the docker hostname option for dokku (https://github.com/dokku/dokku)

Currently just sets --hostname=hostname.

requirements

  • dokku 0.4.0+
  • docker 1.8.x

installation

# on 0.3.x
cd /var/lib/dokku/plugins
git clone https://github.com/michaelshobbs/dokku-hostname.git dokku-hostname
dokku plugins-install

# on 0.4.x
dokku plugin:install https://github.com/michaelshobbs/dokku-hostname.git dokku-hostname

hooks

This plugin provides the following triggers:

  • docker-args-build: adds the --hostname env var to the host's hostname or (if available) the AWS OpsWorks stack name + - + hostname
  • docker-args-deploy: adds the --hostname env var to the host's hostname or (if available) the AWS OpsWorks stack name + - + hostname
  • docker-args-run: adds the --hostname env var to the host's hostname or (if available) the AWS OpsWorks stack name + - + hostname