Michael Hobbs
179a5e611b
introduce pre/post-build-buildstep and pre/post-release-buildstep
2015-02-07 17:56:01 -08:00
Michael Hobbs
7357df7c9d
first pass at dockerfile support
2015-02-07 17:56:01 -08:00
Michael Hobbs
1cfb1fc3fc
implement dokku shell and ls (by @plietar). refs #312
2015-02-07 14:46:17 -08:00
Michael Hobbs
6ad65dd9b4
first stab at a common functions library. include argument parsing and a few definitions wired up. closes #932 . closes #945
2015-02-05 11:32:46 -08:00
Michael Hobbs
1b22f69b9e
support both docker-args PHASE and docker-args-PHASE for the time being. closes #906
2015-01-29 18:33:20 -08:00
Michael Hobbs
4ad0c3022e
use tty cmd to detect if we have one. closes #921
2015-01-24 20:00:11 -08:00
Michael Hobbs
3e100e3002
conditionally set interactive and tty on dokku run.
...
closes #552
closes #913
2015-01-21 13:49:46 -08:00
Michael Hobbs
e760e1cc92
implement ps:restartall. closes #82 #218
2015-01-14 16:37:49 -08:00
Jose Diaz-Gonzalez
93a01fb763
Pass command being executed when retrieving DOCKER_ARGS via pluginhook. Closes #829
2015-01-01 15:14:47 -05:00
Michael Hobbs
43fe6edb04
build app urls based on wildcard ssl or app ssl
2014-12-23 13:52:50 -08:00
Michael Hobbs
e8b4bd5a89
lintball
2014-12-21 14:51:42 -08:00
Michael Hobbs
3706392e65
test with wercker
2014-12-21 14:51:40 -08:00
Andrew Starr-Bochicchio
294b419da5
Display the port for an app when falling back to the ip address.
2014-12-17 21:20:18 -05:00
Michael Hobbs
56472bd08c
VHOST fallback
2014-12-16 23:01:32 -08:00
Michael Hobbs
e99e2201cb
mv default VHOST creation to core install
2014-12-16 20:25:44 -08:00
Jose Diaz-Gonzalez
5bf1ba7ed7
Merge pull request #783 from progrium/nginx-cleanup
...
New domains plugin and nginx extension
2014-12-16 17:15:30 -05:00
Michael Hobbs
50115d3640
print out urls with scheme
2014-12-15 18:02:57 -08:00
Jose Diaz-Gonzalez
b9b9d6303a
Add a dokku trace command to allow easy toggling of the DOKKU_TRACE option
2014-12-12 01:07:43 -05:00
Jose Diaz-Gonzalez
01e7f1cdb6
Output *all* hosts on multiple lines
2014-12-11 02:34:08 -05:00
Jose Diaz-Gonzalez
0865ff3f79
Use updated VHOST file instead of URL file when outputting the current URL to an app
...
Note that this may include more than one URL to an app
2014-12-11 02:16:52 -05:00
Jose Diaz-Gonzalez
04dbe31919
Unify the way in which all error messages are specified
...
Other parts of dokku use one-liners where possible, so these parts should as well
2014-11-23 23:32:42 -05:00
Jose Diaz-Gonzalez
d307a5b8ec
Output error message when a command is not found. Closes #778
...
Plugins with commands will need to implement a catch-all command that exits with the `DOKKU_NOT_IMPLEMENTED_EXIT`` code (10). This signals to dokku that a given plugin has indeed not executed anything for a plugin (which may not always be the case).
Using plugins that do not implement this pattern will result in those plugins silencing the error message.
2014-11-23 18:09:11 -05:00
Jose Diaz-Gonzalez
1e5a904747
Merge pull request #779 from progrium/minor-formatting
...
Minor bash formatting changes
2014-11-23 16:49:21 -05:00
Jose Diaz-Gonzalez
8bc3d372ec
Minor bash formatting changes
2014-11-23 16:42:21 -05:00
Thomas Boerger
14b1743c2a
Added openSUSE support
...
I have done the first steps to get dokku running for other distros like
openSUSE. I have simply replaced the important places within the core
plugins with a check for DOKKU_DISTRO that gets exported by dokku
itself. It just replaces the apt-get and service start/restart/reload
functionality with the openSUSE counterparts.
2014-11-23 11:37:58 +01:00
Jose Diaz-Gonzalez
7b361e564f
Use 2 spaces for formatting bash
...
Also remove extra trailing newlines
2014-11-16 02:58:52 -05:00
Jose Diaz-Gonzalez
f13c1031c7
Ensure there is a newline after calling set -e
2014-11-16 02:54:54 -05:00
Jose Diaz-Gonzalez
4b9433052f
Create an apps core plugin.
...
This creates the following commands:
- apps
- apps:create <app>
- apps:destroy <app>
It also:
- makes `delete` an alias for `apps:destroy`
- adds confirmation to `apps:destroy`
- allows a developer to remove apps that have been created via apps:create but have not been deployed
Refs #87
Refs #543
Refs #586
Closes #599
Refs #655
Refs #656
Refs #685
Closes #757
2014-11-16 02:30:39 -05:00
Jose Diaz-Gonzalez
af0005196a
Standardize the way in which we set variables
2014-11-15 23:32:30 -05:00
Assaf Arkin
2474844856
CHANGED use namespace dokku for docker 0.10 compatibility
2014-04-09 13:06:52 -07:00
silasb
37f977a68d
If passing -t for tail, use logs --follow else just get last 100 lines
2014-02-25 21:23:01 -05:00
silasb
75286cdfa1
Using logs --follow instead of attaching to instance
2014-02-24 18:48:46 -05:00
jay becker
1050f350c0
do not exit when docker fails
2013-12-16 16:55:16 -06:00
rhy-jot
6718094237
Merge pull request #361 from plietar/backup-check
...
Backup check
2013-12-02 15:34:55 -08: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
Paul Lietar
5c58a5e8e7
Add a backup-check to avoid reimporting apps.
2013-11-30 02:46:42 +00:00
Paul Lietar
a4451e82ac
Merge ssh keys rather than overwriting them.
2013-11-30 02:45:58 +00: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
c317dca558
Merge pull request #342 from plietar/no-container
...
Don't fail if CONTAINER is inexistant.
2013-11-27 13:18:31 -08:00
rhy-jot
9eff936676
Remove outdated sed. Fixes #346
...
Starting apps on daemon start has been handed by the upstart 'dokku-redeploy' script for a while. (Also, the format of /etc/init/docker.conf changed and rendered the sed useless.)
2013-11-27 12:50:22 -08:00
Paul Lietar
8a9182c859
Don't fail if CONTAINER is inexistant.
2013-11-22 22:58:02 +00:00
Paul Lietar
e126da0db2
Don't explicitly specify streams to docker run.
...
Now that "docker run" always has an stdin, we don't need to explicitly
specify stdout and stderr.
2013-11-22 21:42:48 +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
252b1ed8b6
Add a version command.
...
The git tag/revision is saved when running "make install", and can be
displayed using "dokku version".
2013-11-21 00:02:02 +00:00
Paul Lietar
557d555858
Delete the /cache directory's contents from inside the container.
...
Fixes #322 .
Buildpacks write into /cache as root, which made the delete command unable
to delete it.
Its contents are now deleted using "docker run", and thus as root.
2013-11-20 20:42:15 +00:00
rhy-jot
6d64edc16a
Update headers
2013-11-19 21:15:29 -08:00
rhy-jot
dae4e55f25
Merge pull request #265 from asm89/backup
...
Introduce `backup` plugin to export/import settings
2013-11-19 21:07:20 -08:00
Paul Lietar
f92e7a59d9
Force connection of stdin and stderr in the run command.
...
If stdin is closed, which is the case when pluginhook is called from an
interactive session, "docker run" does not connect stdin and stderr by default.
Fixes #323
2013-11-20 00:45:41 +00: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