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
Jeff Lindsay
3a6d2c4442
exec bit
2013-06-23 01:14:33 -07:00
Jeff Lindsay
6244d81d0b
temporarily requiring name of app as argument
2013-06-23 01:05:34 -07:00
Jeff Lindsay
66d8ff96fa
stubbed dokku
2013-06-15 18:23:31 -07:00