Commit Graph
53 Commits
Author SHA1 Message Date
Michael Hobbs 9c0667c51a Merge remote-tracking branch 'upstream/master' into mh-merge-upstream 2014-10-09 11:29:48 -07:00
Ludovic Perrine ab3e00297c Display help when invoking dokku with no parameter 2014-10-02 17:36:29 +02:00
Jose Diaz-Gonzalez db7e36e0ca Revert "Add CNAME option" 2014-09-29 23:44:23 -04:00
Michael Hobbs 5fcba7e288 port 'wait_to_retire' from broadly/dokku 2014-09-02 18:18:14 -07:00
Jeff Lindsay 4e9d797d45 Merge pull request #657 from arthurnn/CNAME_option
Add CNAME option
2014-08-19 16:28:43 -05:00
Arthur Neves 0cd1839ce8 Add CNAME option
When a repo have a CNAME file, it will use the URL on it to map the server_name on ngnix
2014-08-14 14:43:35 -04:00
Assaf Arkin 00ec004871 Zero down-time deploy and server checks
This change makes Dokku start up the new container, run a set of checks
against it, and only switch traffic over to the new containers if all
checks complete successfully. No requests are dropped during the switch
over.

To specify checks, add a CHECKS file to the root of your project
directory. This is a text file with one line per check. Empty lines and
lines starting with # are ignored.

A check is a relative URL and may be followed by expected content from
the page, for example:

  /about     Our Amazing Team

Even if you don’t use any checks, this change will prevent downtime
during switching from old to new container.

See: https://labnotes.org/zero-downtime-deploy-with-dokku/
2014-04-28 21:28:50 -07:00
Assaf Arkin 2474844856 CHANGED use namespace dokku for docker 0.10 compatibility 2014-04-09 13:06:52 -07:00
Elia Schito b1267ebf56 Ensure the app is really running before killing it 2014-03-07 00:54:54 +01:00
Michael Huynh 28de3ecaa3 For #313: Do not specify both $APP and $IMAGE for base commands.
As discussed in #313, dokku base commands such as build, release, and
deploy require specifying both `$APP` and `$IMAGE` as arguments where
`IMAGE="app/$APP"`. Thus, the `$IMAGE` parameter is currently redudant.

This patch removes the need to specify `$IMAGE` for these base commands
and is backwards compatible. If, in the future, the base commands expect
and `$IMAGE` different than `app/$APP`, then the `$IMAGE` parameter will
be re-added for those specific commands.
2013-12-18 17:01:56 -05:00
Paul Lietar bd21149e8d Merge pull request #381 from alexanderbeletsky/post-build
Add a post-build hook
2013-12-17 00:40:50 -08:00
jay becker 1050f350c0 do not exit when docker fails 2013-12-16 16:55:16 -06:00
alexanderbeletsky b206c2b4f5 added post-build hook 2013-12-14 18:26:39 +02:00
Dyson Simmons 1e76aba0af Pipe no op into docker-args plugin-hooks to avoid problems when running over ssh w/o a pty. 2013-12-01 00:14:01 +11:00
Dyson Simmons aaa4f0fade Add $DOCKER_ARGS and docker-args pluginhook to dokku deploy and command run. 2013-11-29 15:52:26 +11:00
rhy-jot dd356d02ee Clean up first. This allows users to get logs from failed runs before they're wiped out. Ref: #354 2013-11-28 11:20:09 -08:00
rhy-jot c317dca558 Merge pull request #342 from plietar/no-container
Don't fail if CONTAINER is inexistant.
2013-11-27 13:18:31 -08:00
Paul Lietar 2ed527bedc Drop root privileges if necessary.
This makes it possible to call dokku commands as root.
2013-11-25 23:04:35 +00:00
Paul Lietar 8a9182c859 Don't fail if CONTAINER is inexistant. 2013-11-22 22:58:02 +00:00
Paul Lietar 455be29249 Fix commands, the easy way.
Don't use pluginhook to run the commands hook, just run all the scripts
in a loop.
2013-11-22 21:42:39 +00:00
rhy-jot f4018db310 Use $DOKKU_ROOT instead of $HOME 2013-11-21 10:48:55 -08:00
Paul Lietar 83ce81fc51 Enable tracing in hooks when DOKKU_TRACE is set.
This makes it much easier to debug plugins.
Also source the 'dokkurc' file when starting dokku. This makes it easy
to define DOKKU_TRACE over ssh.
2013-11-18 20:59:48 +00:00
Ahmed Al Hafoudh 9aa5f7a85b Fixed port redirection issues 2013-10-31 16:13:57 +01:00
rhy-jot 3321186ffe Remove newly introduced '0.0.0.0:' from docker port 2013-10-30 17:02:36 -07:00
Jeff Lindsay b64fe76ec0 adding a DOKKU_TRACE env var to enable "set -x" 2013-10-29 17:44:36 -05:00
Jeff Lindsay df7507d1be normalizing shebang and bash options. also added long-term fix for bootstrap instructions 2013-10-29 17:13:02 -05:00
Paul Lietar b5c8dd7436 Use DOKKU_ROOT instead of HOME.
HOME is not consistent if dokku is ran e.g. as root (for setup).
The DOKKU_ROOT variable will also make it possible to have the repositories stored in an arbitrary location (works-ish right now)
2013-10-28 21:15:17 +00:00
Alexander 6350f373be Preserve cache directory between builds 2013-10-28 08:54:30 +01:00
Alexander 85f14baad5 Introduce URL for app. Plugins can override this.
fixes #242
2013-10-24 13:44:05 +02:00
Lee Henson c05007a9d2 normalise 'build' function args to match 'release' and 'deploy' 2013-10-10 18:23:52 +01:00
jaseg 83e4744fa5 Support non-standard bash locations 2013-10-04 14:47:23 +02:00
Gleb Kanterov 681de274a7 Handle pipe failures 2013-09-14 14:16:46 +07:00
Alexander 1751a4ad74 Merge pull request #134 from phaza/patch-1
I want to add env variables to new instances
2013-08-16 15:37:07 -07:00
Alexander 53395bfa08 Redeploy apps on reboot, fixes #82 2013-08-17 00:04:08 +02:00
Peter Haza d3d6486169 I want to add env variables to new instances
I want all my deployments to have access to postgres, thus I'm creating a plugin which sets up a new user with access to a new database (on a postgres server in a different container). I want to expose the database access with an env variable, just like heroku does. To me it looks like release is the best place to put this hook.
2013-08-01 19:26:15 +02:00
alexanderbeletsky 4f82bc9d9a no logs from cleanup step 2013-07-30 12:50:14 +03:00
alexanderbeletsky 84337da262 ignoring all error messages from clean up 2013-07-26 10:47:40 +03:00
alexanderbeletsky 18db1cf7f6 issue #120 add step to clean up all dead instances and none used images 2013-07-26 10:26:05 +03:00
alexanderbeletsky ad6459a70c corrected after @progrium comments 2013-07-20 09:59:22 +03:00
alexanderbeletsky eef39c30d3 issue #92: inserting environment file to docker instance 2013-07-19 09:17:41 +03:00
Alexander eaa486e888 Separate plugin-install command 2013-07-02 23:04:17 +02:00
Jeff Lindsay 2dfe1e1b05 refactoring most of bootstrap into makefile. bootstrap supports branch checkouts, and using existing cloned dokku repos 2013-07-02 03:12:43 -05:00
Alexander cf7a2a00d4 Add pre-deploy hook
Adds a pre-deploy hook passing the name of the app and the image. The
hook allows plugins to setup external resources (such as databases) and
modify the image (running pre-deployment script from the app) before the
application is deployed by dokku.
2013-07-01 13:54:34 +02:00
Jeff Lindsay 60f29cdb18 adding some basic help, also as another example of using plugin hooks 2013-06-30 15:51:41 -05:00
Jeff Lindsay 997d2dd09c only override url if vhost file exists 2013-06-30 12:02:52 -05:00
Jeff Lindsay c4fd6d620b nginx vhosts as a plugin? 2013-06-30 11:39:05 -05:00
Jeff Lindsay 6be113f7de using absolute path for plugins 2013-06-30 11:02:40 -05:00
Jeff Lindsay 17953fc5a0 initial attempt at plugins 2013-06-30 10:37:32 -05:00
Jeff Lindsay caa03d0554 forgot to offest args vars 2013-06-30 08:36:49 -05:00
Jeff Lindsay 1ee35cb3b9 fairly major refactoring. consolidating code into dokku script. also, went back to installing docker from ppa 2013-06-30 08:04:50 -05:00