Commit Graph
100 Commits
Author SHA1 Message Date
Jose Diaz-Gonzalez fe262a3a3c chore: remove extra trailing newline 2024-02-12 21:43:45 -05:00
Jose Diaz-Gonzalez d8401a4d86 refactor: remove all calls to common.NewShellCmdWithArgs 2024-02-12 20:58:51 -05:00
Jose Diaz-Gonzalez 3c6cc68086 refactor: capture output by default
This is almost certainly the correct default for Dokku. While it's a BC break and might cause an increase in memory usage, the api is mostly internal and therefore this is safe to use.
2024-02-12 20:28:31 -05:00
Jose Diaz-Gonzalez 047a3c00f5 chore: remove default false values when calling CallExecCommand 2024-02-12 20:07:43 -05:00
Jose Diaz-Gonzalez 8b9dcd2242 Merge pull request #6590 from dokku/6422-remove-direct-sh-calls
Remove all direct usage of go-sh outside of plugin trigger setup
2024-02-12 20:03:05 -05:00
Jose Diaz-Gonzalez 8a940c6e47 chore: remove all direct usage of go-sh outside of plugin trigger setup
The new way is to use CallExecCommand instead.
2024-02-12 19:29:16 -05:00
Jose Diaz-Gonzalez 2e326b718e Merge pull request #6589 from dokku/k3s-image-pull-secrets
Use image pull secrets instead of registries.yaml to reference private repositories when deploying via k3s
2024-02-12 17:54:49 -05:00
Jose Diaz-Gonzalez 1ae2df52f5 fix: use image pull secrets instead of registries.yaml to reference private repositories
While this will now more or less require a local docker login - which can be overridden by setting the image-pull-secrets property - this ensures every deploy has a valid context.

One annoying thing is that the secret is per-app vs global, meaning that if the secret must be rotated, all apps need to be redeployed. A future change can fix that by deploying a global secret, or if folks really desire, this can be done by setting the image-pull-secrets property on the app/globally.
2024-02-12 17:15:37 -05:00
Jose Diaz-Gonzalez 91151cf375 Merge pull request #6581 from dokku/tls-handling
Fix issues in tls handling when deploying via k3s
2024-02-12 16:38:39 -05:00
Jose Diaz-Gonzalez 3c5f95ff18 chore: update dependencies 2024-02-12 16:28:57 -05:00
Jose Diaz-Gonzalez 53dc81d873 Merge pull request #6586 from dokku/dependabot/go_modules/plugins/cron/mvdan.cc/sh/v3-3.8.0
chore(deps): bump mvdan.cc/sh/v3 from 3.7.0 to 3.8.0 in /plugins/cron
2024-02-12 16:20:20 -05:00
Jose Diaz-Gonzalez f80151bb3a Merge pull request #6587 from dokku/dependabot/pip/docs/_build/mkdocs-material-9.5.9
chore(deps): bump mkdocs-material from 9.5.8 to 9.5.9 in /docs/_build
2024-02-12 16:18:21 -05:00
Jose Diaz-Gonzalez d12eff3fe4 Merge pull request #6585 from dokku/cron-errors
Add more context to errors in fetching cron entries
2024-02-12 03:11:23 -05:00
Jose Diaz-Gonzalez f74b306c8c Merge pull request #6584 from dokku/6422-update-help
fix: use new CallExecCommand when checking to see how help is being called
2024-02-12 02:38:49 -05:00
Jose Diaz-Gonzalez 22e1bb6466 feat: add more context to errors in fetching cron entries 2024-02-12 02:37:43 -05:00
Jose Diaz-Gonzalez abbc13cb85 fix: ensure the ingress class is properly set for certificate usage
Without this, switching to nginx ingress fails as the cluster issuer isn't properly configured
2024-02-12 01:31:39 -05:00
Jose Diaz-Gonzalez 433eb26f3c feat: always skip the https ingress/ingress-route/deployment port entry if there is a corresponding http entry
Also inject the corresponding entries as necessary
2024-02-12 01:31:39 -05:00
Jose Diaz-Gonzalez bfccf60a37 refactor: simplify tls handling by always redirecting 2024-02-12 01:31:39 -05:00
Jose Diaz-Gonzalez 50239b056c fix: use new CallExecCommand when checking to see how help is being called
This is part of ongoing work to remove usage of the depreated NewShellCmd.
2024-02-12 00:55:16 -05:00
Jose Diaz-Gonzalez 541eb1a1bc Merge pull request #6583 from dokku/6422-context-wrappers
Add WithContext functions for all subprocess-related code
2024-02-12 00:37:57 -05:00
Jose Diaz-Gonzalez bcf25ba5cd feat: add WithContext functions for all subprocess-related code
Also deprecate the existing subprocess calls.
2024-02-11 23:04:20 -05:00
Jose Diaz-Gonzalez 03df28af87 Merge pull request #6582 from dokku/ps-cleanup
Correctly handle extra whitespace in scale file contents
2024-02-11 22:48:15 -05:00
Jose Diaz-Gonzalez f5018ce70f chore: fix shfmt issue 2024-02-11 22:02:36 -05:00
Jose Diaz-Gonzalez a5a05c2c44 chore: update procfile-util dependency
Also run formatting against the file.
2024-02-11 22:01:20 -05:00
Jose Diaz-Gonzalez 3adb7b615a feat: add test for scale formatting issues 2024-02-11 21:56:18 -05:00
Jose Diaz-Gonzalez 31abd7e31e chore: always sort returned formations 2024-02-11 21:12:25 -05:00
Jose Diaz-Gonzalez 0102d219f3 refactor: do not ever return duplicate entries when getting formations 2024-02-11 21:12:15 -05:00
Jose Diaz-Gonzalez 701f18a69c fix: ensure splitting only ever returns at most two parts 2024-02-11 21:11:40 -05:00
Jose Diaz-Gonzalez 66f46de2fd fix: ensure each entry in a process type has whitespace removed 2024-02-11 21:06:28 -05:00
Jose Diaz-Gonzalez ab1f8bfd30 chore: remove unused code in ps plugin 2024-02-11 21:03:50 -05:00
Jose Diaz-Gonzalez 6f82879a43 Merge pull request #6390 from renweibo/master
Prefer systemctl over sv when both exist while restarting nginx
2024-02-11 20:20:39 -05:00
Jose Diaz-Gonzalez e263db6b9c Merge pull request #6381 from dokku/dependabot/github_actions/actions/upload-artifact-4
chore(deps): bump actions/upload-artifact from 3 to 4
2024-02-11 20:07:34 -05:00
Jose Diaz-Gonzalez 321500a577 Merge pull request #6576 from Tashows/run_attachable
Create detached container with TTY enabled for attaching remote terminal.
2024-02-11 19:31:11 -05:00
Jose Diaz-Gonzalez 20c231a206 chore: update actions used in composite action 2024-02-11 19:20:02 -05:00
Jose Diaz-Gonzalez 44d03dc81d fix: remove systemctl from built docker image
Systemd does not run within the container and so this should be a safe operation as all systemctl commands otherwise fail.
2024-02-11 19:10:03 -05:00
Jose Diaz-Gonzalez 4b4e20a5a9 chore: update download-artifact action as well 2024-02-11 18:56:08 -05:00
Jose Diaz-Gonzalez 89d13b80f1 Merge pull request #6579 from dokku/taint-tests
Ensure k3s can be installed with taints
2024-02-11 05:17:57 -05:00
Jose Diaz-Gonzalez e452b9308f fix: ensure k3s can be installed with taints 2024-02-11 04:38:58 -05:00
Jose Diaz-Gonzalez ac77f01d83 Merge pull request #6578 from dokku/bump-modules
Bump go modules
2024-02-11 03:25:36 -05:00
Jose Diaz-Gonzalez 03b72ec684 chore: bump go modules 2024-02-11 02:49:00 -05:00
Jose Diaz-Gonzalez 4b480ae964 Merge pull request #6575 from dokku/6389-do-docs
Remove reference to web ui from digitalocean install documentation
2024-02-09 14:05:05 -05:00
Jose Diaz-Gonzalez 301fb7ac85 docs: remove reference to web ui from digitalocean install documentation
Closes #6389
2024-02-09 14:04:46 -05:00
Jose Diaz-Gonzalez 8fb330836e Merge pull request #6574 from dokku/josegonzalez-patch-1
Correct indentation when configuring https on a k3s app
2024-02-09 13:54:28 -05:00
Jose Diaz-Gonzalez af7e720d2a fix: correct indentation when configuring https on an app 2024-02-09 13:40:00 -05:00
Jose Diaz-Gonzalez f3bf6a2143 Merge pull request #6573 from dokku/dependabot/docker/tests/apps/go-fail-postdeploy/golang-1.22.0
chore(deps): bump golang from 1.21.6 to 1.22.0 in /tests/apps/go-fail-postdeploy
2024-02-08 21:01:15 -05:00
Jose Diaz-Gonzalez cac5a3ce05 Merge pull request #6569 from dokku/dependabot/docker/tests/apps/go-fail-predeploy/golang-1.22.0
chore(deps): bump golang from 1.21.6 to 1.22.0 in /tests/apps/go-fail-predeploy
2024-02-08 20:42:23 -05:00
Jose Diaz-Gonzalez 8ce4948f1b Merge pull request #6570 from dokku/dependabot/go_modules/plugins/common/golang.org/x/crypto-0.19.0
chore(deps): bump golang.org/x/crypto from 0.18.0 to 0.19.0 in /plugins/common
2024-02-08 20:42:15 -05:00
Jose Diaz-Gonzalez 193f310031 Merge pull request #6571 from dokku/dependabot/docker/tests/apps/zombies-dockerfile-tini/golang-1.22.0
chore(deps): bump golang from 1.21.6 to 1.22.0 in /tests/apps/zombies-dockerfile-tini
2024-02-08 20:42:08 -05:00
Jose Diaz-Gonzalez f39c3bd910 Merge pull request #6572 from dokku/dependabot/docker/docs/_build/python-3.12.2-alpine
chore(deps): bump python from 3.12.1-alpine to 3.12.2-alpine in /docs/_build
2024-02-08 20:42:01 -05:00
Jose Diaz-Gonzalez bc4c25dccf Merge pull request #6547 from dokku/proxy-implementation 2024-02-07 16:12:22 -05:00
Jose Diaz-Gonzalez cd4f9db95b fix: use annotation instead of location snippet 2024-02-07 13:15:16 -05:00
Jose Diaz-Gonzalez 4cc52179b5 Merge pull request #6568 from dokku/dependabot/docker/tests/apps/gogrpc/golang-1.22.0 2024-02-07 12:26:54 -05:00
Jose Diaz-Gonzalez ceaab97d99 Merge pull request #6567 from dokku/dependabot/pip/docs/_build/watchdog-4.0.0 2024-02-07 12:26:42 -05:00
Jose Diaz-Gonzalez a8c1e8a88a Merge pull request #6566 from dokku/dependabot/pip/docs/_build/mkdocs-material-9.5.8 2024-02-07 12:26:27 -05:00
Jose Diaz-Gonzalez 2432ad49a5 Merge pull request #6565 from dokku/dependabot/docker/tests/apps/zombies-dockerfile-no-tini/golang-1.22.0 2024-02-07 12:26:15 -05:00
Jose Diaz-Gonzalez 41a89bbb5d feat: add a test for ingress-nginx support 2024-02-07 02:20:49 -05:00
Jose Diaz-Gonzalez afb4b50bb3 docs: document how to switch to nginx 2024-02-07 02:20:37 -05:00
Jose Diaz-Gonzalez 03ae424a27 fix: ensure map keys are unique 2024-02-07 00:01:57 -05:00
Jose Diaz-Gonzalez e9986b5775 chore: unsort flags 2024-02-06 23:02:55 -05:00
Jose Diaz-Gonzalez 980979ef87 feat: properly handle nginx annotation merging 2024-02-06 22:48:22 -05:00
Jose Diaz-Gonzalez 7dbd9adc33 fix: set log mount dir to /var/log/nginx 2024-02-06 22:12:54 -05:00
Jose Diaz-Gonzalez 416a119904 feat: pull nginx properties as ingress annotations 2024-02-06 22:12:54 -05:00
Jose Diaz-Gonzalez 1af36b609d feat: add resource-specific annotations to ingress objects 2024-02-06 22:12:41 -05:00
Jose Diaz-Gonzalez 5674a29211 feat: add ability to use ingress-nginx for routing instead of traefik 2024-02-06 21:19:51 -05:00
Jose Diaz-Gonzalez b35d6df67c feat: add support for displaying error logs 2024-02-06 21:19:14 -05:00
Jose Diaz-Gonzalez 81286a0673 feat: add ability to install nginx instead of traefik 2024-02-06 21:19:14 -05:00
Jose Diaz-Gonzalez ea4767f2d8 Merge pull request #6564 from dokku/6416-nixpacks-no-link
Ignore link and volume flags for nixpacks builds
2024-02-06 17:27:54 -05:00
Jose Diaz-Gonzalez 4c0359bb28 Merge pull request #6562 from dokku/k3s-annotations
Add support for specifying annotations on kubernetes resources
2024-02-06 17:27:35 -05:00
Jose Diaz-Gonzalez a59480f97d fix: ignore link and volume flags for nixpacks builds
Closes #6416
2024-02-06 17:27:10 -05:00
Jose Diaz-Gonzalez bacfbe328b tests: set KUBECONFIG for kubectl commands 2024-02-06 16:33:55 -05:00
Jose Diaz-Gonzalez e7a3766e60 tests: use correct namespace for image repo 2024-02-06 15:32:50 -05:00
Jose Diaz-Gonzalez 8711a1c801 fix: force set the kubectl path when running kubectl commands 2024-02-06 14:39:48 -05:00
Jose Diaz-Gonzalez f5f583b12b feat: add support for specifying annotations
As the command contains a colon, it must be handled in the commands binary as opposed to subcommands.

Also include a simple bats test.
2024-02-06 13:54:53 -05:00
Jose Diaz-Gonzalez 8b2f37feea Merge pull request #6563 from dokku/wait-for-init
Wait until initial k3s node is ready before installing manifests
2024-02-06 13:53:54 -05:00
Jose Diaz-Gonzalez 408acbe14e feat: wait until initial k3s node is ready before installing manifests 2024-02-06 13:53:34 -05:00
Jose Diaz-Gonzalez e08e1df026 Merge pull request #6561 from dokku/process-index
Index the process map to ensure the correct config is pulled
2024-02-06 05:16:56 -05:00
Jose Diaz-Gonzalez 77d5a27fda Merge pull request #6560 from dokku/josegonzalez-patch-2
Skip app stop/delete when k3s is not installed
2024-02-06 05:16:40 -05:00
Jose Diaz-Gonzalez 79c0caaa7b Merge pull request #6559 from dokku/josegonzalez-patch-1
Check errors when writing properties
2024-02-06 05:13:00 -05:00
Jose Diaz-Gonzalez d7ff8552d1 fix: index the process map to ensure the correct config is pulled
Without this change, certain generated process names - like those for a cron job - may be incorrectly handled when indexing the process map.
2024-02-06 04:41:14 -05:00
Jose Diaz-Gonzalez 96e79487b9 fix: skip app stop/delete when k3s is not installed 2024-02-06 04:38:04 -05:00
Jose Diaz-Gonzalez ea55071751 feat: check errors when writing files 2024-02-06 04:36:11 -05:00
Jose Diaz-Gonzalez 4abd1f6b24 Merge pull request #6558 from dokku/write-to-file
Use type-specific functions for writing contents to a file
2024-02-06 02:44:14 -05:00
Jose Diaz-Gonzalez 5e1089973e refactor: use type-specific functions for writing contents to a file 2024-02-06 01:39:44 -05:00
Jose Diaz-Gonzalez 666f953715 Merge pull request #6557 from dokku/nginx-go-properties
Consolidate property fetching for nginx plugin into golang codebase
2024-02-06 01:15:15 -05:00
Jose Diaz-Gonzalez d4b445985b refactor: consolidate property fetching for nginx plugin into golang codebase
Also update the documentation to include docs for all properties.
2024-02-06 00:42:48 -05:00
Jose Diaz-Gonzalez 6625846ecc Merge pull request #6555 from dokku/service-account
Add support for app-specific service accounts when deploying via k3s
2024-02-05 17:18:20 -05:00
Jose Diaz-Gonzalez 1689ddd6d3 Merge pull request #6556 from dokku/k3s-namespace
Respect the release namespace when creating resources for a k3s deploy
2024-02-05 16:51:15 -05:00
Jose Diaz-Gonzalez fe8b7ec451 Merge pull request #6551 from dokku/dependabot/pip/tests/apps/multi/flask-3.0.2
chore(deps): bump flask from 3.0.1 to 3.0.2 in /tests/apps/multi
2024-02-05 16:50:44 -05:00
Jose Diaz-Gonzalez 31a73e4dab Merge pull request #6552 from dokku/dependabot/pip/docs/_build/mkdocs-material-9.5.7
chore(deps): bump mkdocs-material from 9.5.6 to 9.5.7 in /docs/_build
2024-02-05 16:50:30 -05:00
Jose Diaz-Gonzalez 238535be0c fix: respect the release namespace when creating resources for a k3s deploy 2024-02-05 16:50:00 -05:00
Jose Diaz-Gonzalez d02c04c2a5 feat: add support for app-specific service accounts when deploying via k3s
Service accounts must still be bound to a role, but this ensures apps do not get access to the default service account.
2024-02-05 16:47:57 -05:00
Jose Diaz-Gonzalez ff319428bf Merge pull request #6553 from dokku/dependabot/pip/docs/_build/markupsafe-2.1.5
chore(deps): bump markupsafe from 2.1.4 to 2.1.5 in /docs/_build
2024-02-05 16:32:51 -05:00
Jose Diaz-Gonzalez 41f5283b1a Merge pull request #6550 from dokku/dependabot/pip/tests/apps/python-flask/flask-3.0.2
chore(deps): bump flask from 3.0.1 to 3.0.2 in /tests/apps/python-flask
2024-02-05 16:32:25 -05:00
Jose Diaz-Gonzalez 5b922a93c7 Merge pull request #6548 from dokku/dependabot/maven/tests/apps/java/org.eclipse.jetty-jetty-servlet-11.0.20
chore(deps): bump org.eclipse.jetty:jetty-servlet from 11.0.19 to 11.0.20 in /tests/apps/java
2024-02-05 15:26:24 -05:00
Jose Diaz-Gonzalez 2703101068 Merge pull request #6554 from dokku/fix-test-runs
Fix issue where CI cannot install docker-buildx-plugin
2024-02-05 15:26:13 -05:00
Jose Diaz-Gonzalez 28532a56a9 tests: fix issue where CI cannot install docker-buildx-plugin 2024-02-05 14:59:20 -05:00
Jose Diaz-Gonzalez 3d99ea63bd Merge pull request #6536 from dokku/vector-via-compose
Manage vector container via compose
2024-01-30 10:23:45 -05:00
Jose Diaz-Gonzalez 60d9a3ca34 Merge pull request #6546 from dokku/kubens-kubectx
Install kubectx and kubens helper binaries when setting up a k3s cluster
2024-01-30 08:02:28 -05:00
Jose Diaz-Gonzalez 06429a384e feat: install kubectx and kubens 2024-01-30 08:01:42 -05:00
Jose Diaz-Gonzalez a277c5da1b refactor: allow setting more options when changing permissions on a file
Rather than hardcoding paths, just allow them to be options.
2024-01-30 07:31:02 -05:00