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
b6fe31f9cb
fix: call procfile-util correctly
2018-10-11 20:19:56 -04:00
Jose Diaz-Gonzalez
c924bdef04
feat: expand the PORT environment variable when provided
...
Refs #2793
Refs #3196
2018-10-11 20:19:56 -04:00
Jose Diaz-Gonzalez
66948b9de4
feat: use create instead of run for faster and more reliable file copy from docker images
...
Closes #3272
2018-10-07 16:39:13 -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
161d877e8b
fix: add missing source of config/functions
...
Sometimes a deploy will complain if this doesn't exist.
2018-06-04 11:42:42 -04:00
Jose Diaz-Gonzalez
855090c9e7
fix: minor deprecated code cleanup
2018-04-28 01:27:34 -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
a6b047805c
feat: ensure the dokku binary respects the quiet flag
...
Previously, there were many headers being output that were unable to be removed via the --quiet flag.
2018-04-27 03:55:00 -04:00
Jose Diaz-Gonzalez
e6762f2439
feat: allow users to override the reported app url
...
This is useful in cases where the app url has some "interesting" structure - such as a subdomain or scheme change - for a specific installation.
Closes #3160
2018-04-26 19:21:29 -04:00
Jody McIntyre
beea394822
Merge branch 'master' into separate-data-root-for-docker-binds
2018-04-16 18:54:58 -04:00
Jose Diaz-Gonzalez
eb3866c636
fix: re-add is_container_running
...
As this was not strictly announced in our migration guide, removing it is a bc-incompatible change we are not comfortable with. We may wish to remove it in the future
2018-04-10 20:22:31 -04:00
Jose Diaz-Gonzalez
9c5cb7d0f0
Update functions
2018-04-10 14:12:10 -04:00
Jody McIntyre
aa5561b781
Use DOKKU_ROOT_ON_HOST for Docker bind mounts
2018-04-09 17:51:14 -04:00
Jose Diaz-Gonzalez
867e3317aa
chore: minor cleanup to container and argument handling
2018-04-06 22:53:02 -04:00
Jose Diaz-Gonzalez
85b00385a4
feat: implement docker-local cleanup hook
2018-04-06 22:53:02 -04:00
Jose Diaz-Gonzalez
c621b3ed69
chore: drop unused function
2018-04-06 22:53:02 -04:00
Jose Diaz-Gonzalez
a8d42ea8be
feat: use is_container_status everywhere
2018-04-06 22:53:02 -04:00
Jose Diaz-Gonzalez
7a6d771689
fix: add missing source
2018-04-06 22:53:02 -04:00
Jose Diaz-Gonzalez
5cada188d4
feat: move deploy logic into scheduler-docker-local plugin
2018-04-06 22:53:02 -04:00
Jose Diaz-Gonzalez
42ab9ec39f
Merge pull request #3103 from dokku/consolidate-vhost-references
...
Move all vhost related functions to the domains plugin
2018-03-08 09:48:38 -05:00
Jose Diaz-Gonzalez
40b0bdd6e8
fix: ensure we call apps_create at all proper locations
2018-03-05 23:47:10 -05:00
Jose Diaz-Gonzalez
165b6ff46f
feat: add subcommands to allow app locking and unlocking
...
Unlocking an app will not stop running deploys, so users may need to clean up. However, it is useful for deploys that fail in unusual ways that cause the lock to stay around.
Closes #2883
2018-03-04 01:45:42 -05:00
Jose Diaz-Gonzalez
bf84f13938
refactor: move all vhost related functions to the domains plugin
...
These should never have been in common, and more directly relate to domain handling than anything else.
As this is a BC-break, merging will need to wait until the next minor.
2018-02-24 14:52:06 -05:00
Jose Diaz-Gonzalez
16b8f2682b
fix: Validate that all application names are valid domain names
...
Invalid application names will need to be manually cleaned up by the user, and as such this is a bc-break.
Closes #3054
2018-02-17 17:26:06 -05:00
Jose Diaz-Gonzalez
329e849894
fix: do not allow shadowing of the CACHE_DIR variable
...
Closes #2901
2017-12-13 01:27:29 -05:00
Jose Diaz-Gonzalez
5e82b37147
Merge branch 'master' into feature-config-golang
2017-10-04 19:04:31 -04:00
Jose Diaz-Gonzalez
acde3d60a7
feat: allow users to bind to all interfaces when a proxy is enabled
...
- use a plugin trigger to see whether we should bind to all interfaces
- create a generic way of setting properties for a plugin
- migrate proxy-enabled to the new network property "bind-all-interfaces"
- add network:set subcommand
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
81ddef04ff
refactor: drop direct access to PORT files
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
7fe2f8593c
refactor: remove unused IS_HEROKUISH_CONTAINER argument
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
1372522258
fix: Declare and assign separately to avoid masking return values.
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
27f247eabd
fix: do not shadow id variable
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
c43a3edfc6
fix: ensure ports are set to an array
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
7fd32fb3e8
fix: properly retrieve ports list
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
0cc9e42c59
fix: check IS_HEROKUISH_CONTAINER value check
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
4949d1e33e
fix: always pass in IS_HEROKUISH_CONTAINER
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
f71d147a8f
fix: add missing argument
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
dfad37ba23
fix: cleanup issues retrieving the port and ipaddr for a container
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
a9e0f8b7be
fix: ensure we write the ipaddr and port
2017-10-02 15:05:13 -07:00
Jose Diaz-Gonzalez
1835b04809
feat: refactor to use network plugin
...
- Add proxy-build-config hook to rebuild network and proxy settings for an application
- Scope nginx:build-config to work only when it is the configured proxy for an application
- Refactor deploy code to interact with network plugin for computed and actual ipaddr/port settings
- Ensure the proxy-build-config plugin trigger is called on ps:restore
- Expose a few plugin triggers for retrieving networking information for a given APP/PROC_TYPE/CONTAINER_ID combination
2017-10-02 15:05:13 -07:00
Alex Quick
8e8b6d60f0
fix: Declare and assign separately to avoid masking return values.
2017-09-27 23:56:42 -04:00
Alex Quick
686428a41a
[config] lint fixes
2017-09-27 23:56:40 -04:00
Alex Quick
73e85b7df5
[config] preliminary Dockerfile support
2017-09-27 23:56:40 -04:00
Jose Diaz-Gonzalez
1a5bea6dde
refactor: extract app name validation
2017-08-19 19:16:16 -04:00
Michael Hobbs
a0e05eaef0
add optional PROC_TYPE and CONTAINER_INDEX to docker-args-deploy plugn trigger
2017-07-26 09:04:14 -07:00
Jose Diaz-Gonzalez
7df06fb2f6
fix: ensure tests pass
2017-07-22 15:17:40 -06:00
Domonkos Czinke
0efb690992
Fix URL error and add test
2017-07-22 15:15:54 -06:00
Domonkos Czinke
5af42dc678
url command should return https if it's configured
2017-07-22 15:15:54 -06:00
Jose Diaz-Gonzalez
72491257c3
fix: use python2.7 binary instead of python2 binary
...
On hosts where python3 is the system default python env and there is a minimal server installation, Dokku will silently fail to return the values of json keys.
2017-07-08 17:54:12 -06:00
Jose Diaz-Gonzalez
85f7f22520
fix: add missing space
2017-07-02 17:20:04 -06:00