Jose Diaz-Gonzalez
05240c56b6
fix: reference correct variable for procfile
2018-10-13 20:17:51 -04:00
Jose Diaz-Gonzalez
64c6437e4e
hack: pull procfile if possible when setting ps:scale
2018-10-11 20:19:57 -04:00
Jose Diaz-Gonzalez
81935a8f31
feat: drop debugging info
2018-10-11 20:19:57 -04:00
Jose Diaz-Gonzalez
7f6688c01a
hack: log the procfile and more
2018-10-11 20:19:56 -04:00
Jose Diaz-Gonzalez
95292bfcba
fix: correct issue where we accidentally bailed when there was no error
2018-10-11 20:19:56 -04:00
Jose Diaz-Gonzalez
0292c4ee3b
refactor: move get_cmd_from_procfile to ps/functions
...
Procfile handling should only be performed in the ps plugin
2018-10-11 20:19:56 -04:00
Jose Diaz-Gonzalez
afd101034d
feat: verify that a process exists before scaling it
...
Refs #2582
Refs #3196
2018-10-11 20:19:56 -04:00
Jose Diaz-Gonzalez
b6fe31f9cb
fix: call procfile-util correctly
2018-10-11 20:19:56 -04:00
Jose Diaz-Gonzalez
2db8f93507
feat: error out on Procfile extraction if the procfile is invalid
...
Refs #2991
Refs #3196
2018-10-11 20:19:56 -04:00
Jose Diaz-Gonzalez
ed190527ce
feat: allow overriding the scheduler globally
...
Being able to override globally is useful for cases where a user will _always_ want their applications to be globally distributed
2018-09-30 21:36:53 -04:00
Jose Diaz-Gonzalez
9b41f7a74e
fix: use updated fn-ps-is-app-running function to determine an application's status
...
In some cases, a single allocation for a service may not be running, but the others will, and `is_app_running` will return the wrong thing.
Closes #2772
2018-04-28 01:21:26 -04:00
Jose Diaz-Gonzalez
8d07ffe775
refactor: deprecate is_app_running in favor of ps#fn-ps-is-app-running
...
This will allow us to _actually_ introspect on the running state of an application. In certain cases, the detected state can be "mixed", meaning that we may need to take action, depending on what we want to do in mixed mode.
2018-04-28 01:19:23 -04:00
Jose Diaz-Gonzalez
e47f6e5803
fix: use dokku_log_warn helper for warning messages in the ps plugin
2018-04-28 01:13:48 -04:00
Jose Diaz-Gonzalez
8474c72a10
refactor: move container stopping into new scheduler-stop plugin trigger
2018-04-06 22:53:02 -04:00
Jose Diaz-Gonzalez
71b578bf10
fix: Properly handle invalid process type entries during DOKKU_SCALE generation
...
Closes #2991
2018-03-07 21:48:20 -05:00
Jose Diaz-Gonzalez
76dd0252ee
feat: add pre-start trigger for notifying on application start
...
Closes #2713
2017-12-19 00:55:10 -05:00
Jose Diaz-Gonzalez
647efab2dd
fix: ensure we always call proxy-build-config when calling ps_start
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
ed7d5623ad
fix: attempt to pass shellcheck on os x
2017-03-26 04:38:35 -06:00
Jose Diaz-Gonzalez
1cbdde748e
Merge pull request #2290 from dokku/1734-restart-policies
...
Implement restart-policy handling
2016-07-30 15:10:37 -04:00
Jose Diaz-Gonzalez
cb9c5b6988
Merge pull request #2317 from dokku/jg-cert-remap-http-to-https
...
Properly remap http port 80 mappings to https 443 when adding an ssl certificate
2016-07-30 15:09:53 -04:00
Jose Diaz-Gonzalez
2474c87bbd
Pull the deploying app image name where necessary
...
All of these commands should execute against the image that is in use versus the "latest" that dokku provides the system with.
2016-07-29 12:49:29 -04:00
Jose Diaz-Gonzalez
de550094da
Standardize parenthesis usage for is_deployed
2016-07-23 16:04:13 -04:00
Michael Hobbs
a269f8e003
support --quiet and split up data access from presentation
2016-07-17 15:56:11 -07:00
Jose Diaz-Gonzalez
59c9207797
Implement restart-policy handling. Closes #1734
...
Applications without a restart-policy will have their policies set to `on-failure:10`. Users can completely unset the restart-policy using the `docker-options` plugin, though this will be equivalent to setting it explicitly to `no`.
Restart policies must be explicitly set, and the following are all valid:
- no
- unless-stopped
- always
- on-failure
- on-failure:NUMBER
2016-07-02 17:22:54 -04:00
Michael Hobbs
cb8a9648c9
support WORKDIR location for DOKKU_SCALE. refs #2226
2016-06-06 17:45:33 -07:00
Michael Hobbs
166f7f38e4
pass image tag from release_and_deploy down through extract_procfile. closed #2226
2016-06-06 11:31:59 -07:00
Jose Diaz-Gonzalez
377412f9f8
remove DOKKU_PROCFILE before attempting to extract it
2016-05-31 17:02:25 -04:00
Tobias Brunner
ee18909935
allow all apps to be restored on boot
...
When rebooting a Dokku host the init process tries to restore all apps
using `dokku ps:restore`, alphabetically. If an app is defined but not
deployed, the function `ps_start` called by `dokku ps:restore` will
exit 0 and stop trying to restore the other apps later in the alphabet.
This change fixes the restore behaviour.
2016-05-10 11:41:25 +02:00
Michael Hobbs
cb9efa3322
implement docker stop timeout. closes #2126 ( #2148 )
2016-04-26 18:06:55 -07:00
Michael Hobbs
9ce7470b87
remove deprecated mktemp args and name vars more clearly
2016-03-29 19:46:46 -07:00
Stefan Siegl
088ee071ca
Fix ps_restart to not exit
...
ps_restartall_cmd calls ps_restart from a loop, if ps_restart exits because of a not deployed app further apps might not be restarted.
2016-03-28 20:34:17 +02:00
Michael Hobbs
987c5cfb9c
use declare for description variable
2016-03-08 15:30:34 -05:00
Michael Hobbs
aa2415eeb8
more style/function tweaks
2016-03-03 22:11:35 -08:00
Michael S. Hobbs
89f289b433
subcommand restructure and bashstyle refactor. closes #1579
2016-03-03 22:11:35 -08:00
Michael Hobbs
d1b87bd7b7
cleanup shellcheck SC2086
2016-02-23 07:50:06 -08:00
Michael Hobbs
9842d7498b
nginx-vhosts rewrite
2016-02-18 18:38:54 -08:00
Paul McLanahan
6a01abb905
Fix #1564 : Use Procfile for process types in Dockerfile apps
...
* Document new Procfile feature
* Add and update tests
* Fix a typo in generate_scale_file (ref #1923 )
2016-02-18 21:22:26 -05:00
Michael Hobbs
5588357589
fix typo in generate_scale_file()
2016-02-17 13:03:43 -08:00
Michael Hobbs
88be5083e0
filter out Procfile comments. closes #1792 . closes #1742
2015-12-21 08:23:35 -08:00
Michael Hobbs
e57d9dac3b
print where we find DOKKU_SCALE when we find it. closes #1685
2015-11-18 16:10:29 -05:00
Dan Callahan
c389b213b5
Resolve SC2162: 'read without -r mangles backslashes'
...
More information:
https://github.com/koalaman/shellcheck/wiki/SC2162
http://wiki.bash-hackers.org/commands/builtin/read
2015-11-04 20:40:42 -06:00
Michael Hobbs
c8b8b9bb93
generate DOKKU_SCALE based on Procfile if DOKKU_SCALE is not found. closes #1442
2015-09-16 17:17:26 -07:00
Jose Diaz-Gonzalez
27a2478a33
Follow bashstyle where possible
2015-09-16 16:06:31 -07:00
Michael Hobbs
8095df79f6
implement core plugin mgmt using plugn. add tests.
2015-09-15 02:17:28 -07:00
Jose Diaz-Gonzalez
ad72a137e1
Fix sourcing of functions
2015-09-15 02:16:40 -07:00
Jose Diaz-Gonzalez
f2e153744c
[ci skip] minor formatting changes
2015-09-03 22:38:24 -04:00
Michael Hobbs
495b1d2ba0
refactor to explicitly set IMAGE via get_app_image_name()
2015-09-03 16:12:36 -07:00
Michael Hobbs
04a4da7fc5
allow tagging and deployment of tagged app images
2015-09-02 11:18:01 -07:00
Jim Myhrberg
d5df6a4190
Use $PLUGIN_PATH instead of $(dirname $0)/..
...
As briefly discussed in #1425 , source the `common/functions` file via an
absolute path, rather than determining the relative path by using
`dirname`. 3rd-party plugins should follow suit and use the new
`$PLUGIN_PATH` convention too.
2015-08-28 14:14:28 +01:00
Michael Hobbs
6d71c164f0
Merge pull request #1128 from progrium/1091_mh-switch-to-herokuish
...
switching to herokuish. closes #1091
2015-08-24 12:11:05 -07:00