Jose Diaz-Gonzalez
009e37d840
refactor: remove ps command
...
`ps` should be replaced by `enter` with a specified container id.
2020-02-22 00:42:19 -05:00
Jose Diaz-Gonzalez
e67b96780d
refactor: unify command declaration across codebase
2020-02-10 01:40:30 -05:00
Jose Diaz-Gonzalez
1cb586b2e7
refactor: standardize command naming
...
This standardization makes it somewhat easier to read stacktraces as the command names are all uniform, so it will be slightly easier to scan trace output.
2020-02-09 22:41:39 -05:00
Jose Diaz-Gonzalez
498bdd0491
chore: cleanup build and destroy logging output
2019-09-20 12:31:19 -04:00
Jose Diaz-Gonzalez
44fcea0ffa
refactor: use new-style docker management commands
...
This PR uses the new syntax for commands introduced in Docker 1.13, making it a bit easier to understand just what a particular command is trying to do.
This also pushes the long-form syntax for docker command flags, which are also easier to understand at a glance.
2019-09-15 18:55:53 -04:00
Jose Diaz-Gonzalez
fc5544ac70
refactor: use a single method for running the ps:*all commands
...
This reduces the duplication at the cost of slightly more complexity.
2019-06-10 13:05:57 -04:00
Jose Diaz-Gonzalez
785d9b4937
feat: allow setting DOCKER_BIN path for docker execution
...
This change allows operators to specify a DOCKER_BIN environment variable. This will specify a binary to run when executing docker, which is useful in cases where the 'docker' command being run must be modified in a way that would otherwise be invasive to Dokku, but minimalistic if done within a wrapper.
2019-05-29 00:46:19 -04:00
Jose Diaz-Gonzalez
86795ddacc
tests: run mvdan/shfmt on test runs
...
While I do not agree with _every_ style change, this will force Dokku to have consistent formatting across all shell scripts, which is arguably a Good Thing™.
The command used to reprocess everything is:
```shell
shfmt -l -bn -ci -i 2 -w .
```
2019-01-07 01:25:55 -05:00
Jose Diaz-Gonzalez
14a1050a26
feat: add ps:retire command
...
This can be used to remove all old containers for a given deployment method.
2018-10-21 12:50:39 -04:00
Jose Diaz-Gonzalez
15a2b7cbce
feat: sanitize docker inspect output with ps:inspect
...
Often-times, we will want to have the container inspect output for debugging purposes, but this process is:
- error prone, as the user needs to know what their containers are
- potentially insecure, as the output must be sanitized of sensitive data
Instead of making users wade through this process, we provide a helper `ps:inspect` command, that can be used to diagnose problems associated with containers that may or may not exist for an application.
2018-10-14 22:10:28 -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
Michael Gecht
b812637fe1
Fix typo in ps:stopall
2018-08-06 14:28:21 +02:00
Jose Diaz-Gonzalez
06f8237196
fix: get the global scheduler if no app is specified
2018-07-04 15:31:03 -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
792b36d5cc
feat: add ps:startall command
2018-04-26 17:34:06 -04:00
Jose Diaz-Gonzalez
4aac1fd936
feat: add report trigger
...
This allows users to quickly show the state of any configured application, as well as the state of their server. In doing so, we make it easy for them to provide information necessary for debugging in a single command.
2018-04-07 04:49:21 -04:00
Jose Diaz-Gonzalez
78503ed178
feat: handle case where old, renamed containers may still be running during ps:restore
2018-04-06 22:53:02 -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
0b9d4b2580
feat: refer to container as dead instead of missing when inspect fails
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
da1ea2dda8
refactor: drop unmaintained ls subcommand
...
The correct way to handle getting the status should be ps:report.
Also cleaned up an issue where ps:report failed to catch errors for non-running containers.
2018-04-06 22:53:02 -04:00
Jose Diaz-Gonzalez
cd674d3cb3
fix: move container status exclusively to ps plugin
...
This information didn't belong in the apps plugin and was incomplete.
Also set the container status to dead when it is not detected as running.
2018-02-24 03:03:55 -05:00
Jose Diaz-Gonzalez
c4ba380627
Merge pull request #3071 from dokku/josegonzalez-patch-1
...
Do not grab restart policies if the deploy phase cannot be read
2018-02-19 14:21:13 -05:00
Jose Diaz-Gonzalez
cad4cec050
fix: do not grab restart policies if the deploy phase cannot be read
2018-02-18 23:00:41 -05:00
Jose Diaz-Gonzalez
54079714c8
feat: allow rebuilding and restarting all applications via parallel
2018-02-17 23:15:15 -05:00
Jose Diaz-Gonzalez
77c63b8d98
fix: do not rebuild an app that has never been deployed
2018-02-17 23:15:15 -05:00
Sherman K
30922fc818
Implement improvements from #3039
2018-01-19 08:23:50 +08:00
Sherman K
41dd72dd3e
Add ps:stopall command to stop all apps
2018-01-19 00:23:31 +08:00
Jose Diaz-Gonzalez
7a4ab91ecf
fix: skip undeployed apps when parallel is not available
2018-01-12 01:33:29 -05:00
Jose Diaz-Gonzalez
f0ee6288fb
feat: ensure we don't try to restore an app that wasn't deployed
2018-01-12 01:12:14 -05:00
Jose Diaz-Gonzalez
7330a849a5
fix: drop will-cite
2018-01-11 22:35:38 -05:00
Jose Diaz-Gonzalez
226a3da87d
fix: use correct parameter for APP name
2018-01-11 00:12:41 -05:00
Jose Diaz-Gonzalez
58332d707b
fix: ignore correct rule
2018-01-08 04:49:42 -05:00
Jose Diaz-Gonzalez
652530a4b4
fix: ignore shellcheck rule
2018-01-08 04:45:34 -05:00
Jose Diaz-Gonzalez
b6e7fb5839
refactor: ensure parallel runs properly for non-restorable apps and moreutils parallel
...
Refs #3023
2018-01-08 04:41:26 -05:00
Jose Diaz-Gonzalez
7d825f8be0
Merge pull request #2735 from dokku/2721-global-ps-report
...
Ensure we can call ps:report without specifying an application
2017-04-21 15:15:06 -06:00
Jose Diaz-Gonzalez
6d21ab20bd
fix: minor stylistic change
2017-04-21 10:22:20 -06:00
Jose Diaz-Gonzalez
dea1c86a9b
fix: Ensure we can call ps:report without specifying an application
...
Closes #2721
2017-04-21 00:58:08 -06:00
Jose Diaz-Gonzalez
15021d05c9
feat: allow quieter report output
...
Users should have the option of suppressing headers, which are not always useful when interacting with dokku in a programmatic fashion.
2017-04-21 00:53:35 -06:00
Jose Diaz-Gonzalez
97e35e796c
fix: ensure we can call the report subcommand without an app while specifying flags
...
Closes #2628
2017-03-16 02:33:51 -06:00
Jose Diaz-Gonzalez
e78a05d6fe
feat: mark ps:default command as deprecated
2017-03-12 21:29:12 -06:00
Jose Diaz-Gonzalez
d79a79084e
fix: bail early when checking ps output for an undeployed app
...
Closes #2630
2017-02-27 07:30:21 -07:00
Jose Diaz-Gonzalez
3506c100c7
Merge branch 'master' into apps_report_subcommand
2017-02-20 13:55:37 -07:00
Jose Diaz-Gonzalez
06fa58ff47
chore: remove extra space
...
[ci skip]
2017-01-13 17:29:51 -07:00
Jose Diaz-Gonzalez
815c612261
feat: add support for using parallel to restore apps
...
By using parallel, we take advantage of the fact that a server may have multiple cores, thus enabling restores to complete faster.
Refs #2463
2017-01-08 20:49:14 -07:00
Jose Diaz-Gonzalez
831fdeb030
fix: allow ps_start to fail during a ps:restore
...
Instead of blocking the start of each app based on whether the previous app started, we simply log and continue.
Closes #2463
2017-01-08 20:17:23 -07:00
Mriyam Tamuli
a574a6db1c
Quotes unquoted variable
2016-12-02 00:00:10 +05:30
Mriyam Tamuli
45f8b8ccc8
Adds the report subcommand to the ps plugin
2016-12-01 11:39:18 +05:30
Jose Diaz-Gonzalez
7ccfdabc48
Document caveats around ps:rebuild and tags/tar deployed applications. Closes #2374
...
The tags and tar plugins do not necessarily build from source, and running `ps:rebuild` can have some unexpected output in certain cases. Rather than try to handle that complexity - it's a lot - documenting the edge cases is the most appropriate way forward.
2016-09-06 20:26:53 -04: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