Jose Diaz-Gonzalez
dbdf2ad55d
Merge pull request #4356 from dokku/3931-better-labeling
...
Do not retag images unnecessarily
2021-01-24 02:36:20 -05:00
Jose Diaz-Gonzalez
9306011f70
fix: do not retag images unnecessarily
...
This change minimizes the work needed to be done when tagging images. It edits the image manifest directly only when necessary, allowing restarts of an app to avoid having an extra layer.
This also additionally allows to deploy images with ONBUILD directives without running the ONBUILD directives.
Lastly, users building docker images that run Dokku will need to use a new sudoer wrapper for the `docker-image-labeler` binary to work correctly. A reference version has been placed in the `docker` skeleton directory.
Closes #3931
Refs #4226
2021-01-24 02:09:53 -05:00
Jose Diaz-Gonzalez
162abcee4f
Merge pull request #4352 from dokku/test-app-renames
...
Add a test for application renames
2021-01-23 20:58:42 -05:00
Jose Diaz-Gonzalez
c1ff3d4652
tests: add a test for application renames
...
Also ensure the plugin:trigger calls are issued under the dokku user
2021-01-23 20:10:16 -05:00
Jose Diaz-Gonzalez
f9693e78c8
Merge pull request #4355 from dokku/4346-underscore-in-scheme
...
Allow underscores in vector schemes
2021-01-23 19:43:30 -05:00
Jose Diaz-Gonzalez
fe549f2fb5
Merge pull request #4336 from dokku/4306-stacks-set
...
Add ability to manage stacks on an app or global level …
2021-01-23 19:04:15 -05:00
Jose Diaz-Gonzalez
d9300ad210
Merge pull request #4354 from dokku/plugn-debug-triggers
...
Log all triggers called by golang in trace output
2021-01-23 19:04:03 -05:00
Jose Diaz-Gonzalez
8ddf4888db
Merge pull request #4353 from dokku/logs-drop-unused-flag
...
Drop unused flag introduced by logs max-size feature
2021-01-23 19:03:53 -05:00
Jose Diaz-Gonzalez
bf5fbf4412
fix: add logs-get-property to gitignore
2021-01-23 19:00:46 -05:00
Jose Diaz-Gonzalez
dfc98ecc0f
fix: allow underscores in vector schemes
...
Also unify tests for global and non-global logs:set calls
2021-01-23 19:00:33 -05:00
Jose Diaz-Gonzalez
86e53f96a9
feat: log all triggers called by golang in trace output
...
Trace mode is useful for shell code, but less so for golang. Adding debug logging in golang for trigger calls makes it a little easier to see what is happening.
2021-01-23 18:30:33 -05:00
Jose Diaz-Gonzalez
3d4205b206
fix: drop unused flag introduced by logs max-size feature
2021-01-23 18:29:11 -05:00
Jose Diaz-Gonzalez
f81c802ecc
refactor: rename command to :set-property
...
This will allow us to set other property values for the buildpacks plugin.
2021-01-23 18:17:40 -05:00
Jose Diaz-Gonzalez
5d9157bc40
feat: add support for specifying stack builders for builder-cnb
2021-01-23 18:06:57 -05:00
Jose Diaz-Gonzalez
6a85d6a58b
fix: gitignore buildpack-stack-name trigger
2021-01-23 17:41:06 -05:00
Jose Diaz-Gonzalez
8ddb214b0e
feat: clear repo cache on stack change
2021-01-23 17:40:53 -05:00
Jose Diaz-Gonzalez
308927adce
refactor: log what stack is being used if it is modified
2021-01-23 17:40:53 -05:00
Jose Diaz-Gonzalez
7caa95b3f3
feat: conditionally execute the post-stack-set call
...
If the value does not change, then we should not trigger the command
2021-01-23 17:40:53 -05:00
Jose Diaz-Gonzalez
b5c85ad5be
chore: rename stacks-set to stack-set
...
You can only set one stack...
2021-01-23 17:40:50 -05:00
Jose Diaz-Gonzalez
bad90b2b1d
feat: add ability to manage stacks on an app or global level
...
The previous lever for manipulating this was the DOKKU_IMAGE environment variable. While this is all well and good, it only works for CNB and is yet another `DOKKU_*` environment variable that need not exist.
While this does not add support for manipulating the CNB stack just yet, the groundwork is set for the future.
Closes #4306
2021-01-23 16:19:12 -05:00
Jose Diaz-Gonzalez
4c74e0dfba
fix: correct docblock
2021-01-23 16:19:12 -05:00
Jose Diaz-Gonzalez
46933051b9
refactor: always return an error from the buildpacks triggers
2021-01-23 16:19:12 -05:00
Jose Diaz-Gonzalez
aeb9241d3b
Merge pull request #4300 from AubreyHewes/pr/disable_applying_hsts_global_conf
...
allow disabling hsts globally and explicitly enable per app
2021-01-23 16:18:28 -05:00
Jose Diaz-Gonzalez
0d9b6b9852
Merge pull request #4350 from dokku/add-missing-trigger-event
...
Add missing trigger event
2021-01-23 15:50:47 -05:00
Jose Diaz-Gonzalez
5cac43fe55
refactor: fix computation test and remove the app-specific hsts value
...
The default for an app is empty, meaning it will fallback to the global value (which defaults to true). This will allow users to properly override the global value, regardless of what it is.
2021-01-23 15:49:40 -05:00
Aubrey Hewes
8cc92680c5
feat(nginx-proxy): allow disabling hsts globally and explicitly enabling it per app
...
https://github.com/dokku/dokku/pull/3843
2021-01-23 15:09:51 -05:00
Jose Diaz-Gonzalez
b583f80221
fix: add missing trigger event
2021-01-23 15:09:26 -05:00
Jose Diaz-Gonzalez
6ab9f28d77
Merge pull request #4349 from dokku/remove-internal-dokku-calls
...
Remove need for internal dokku calls
2021-01-23 15:03:00 -05:00
Jose Diaz-Gonzalez
67c8af3869
Merge pull request #4351 from dokku/set-ci-hostname
...
Set hostname for CI runs
2021-01-23 15:02:46 -05:00
Jose Diaz-Gonzalez
12a9bdbf6e
feat: set hostname
2021-01-23 14:40:40 -05:00
Jose Diaz-Gonzalez
8c3fd77cfd
fix: do not exit if the phase file does not exist
2021-01-23 14:27:16 -05:00
Jose Diaz-Gonzalez
9137be814c
refactor: remove need for internal dokku calls
...
Avoid internal dokku calls will avoid potentially expensive subprocesses - in particular, user-auth will be re-invoked, which can be expensive.
2021-01-23 14:27:16 -05:00
Jose Diaz-Gonzalez
aad7f67f7c
Merge pull request #4337 from dokku/4023-logrotate-container-files
...
Add logrotation to container log files
2021-01-23 14:12:38 -05:00
Jose Diaz-Gonzalez
815b839eeb
feat: add trigger for fetching logs properties
2021-01-23 13:39:29 -05:00
Jose Diaz-Gonzalez
608f9d0333
Merge pull request #4348 from dokku/fix-app-specific-shell-specification
...
Correct app-specific shell handling
2021-01-23 13:32:26 -05:00
Jose Diaz-Gonzalez
ccbe2c719a
fix: correct test check
2021-01-23 13:02:37 -05:00
Jose Diaz-Gonzalez
76b36aa3f6
docs: document log retention
2021-01-23 12:45:05 -05:00
Jose Diaz-Gonzalez
8c81d520f6
fix: correct stickler
2021-01-23 12:45:05 -05:00
Jose Diaz-Gonzalez
afe1e8b33c
refactor: use log:set for logs and add global support
2021-01-23 12:45:05 -05:00
Jose Diaz-Gonzalez
6eb0bd8c87
chore: sort set properties
2021-01-23 12:45:05 -05:00
Jose Diaz-Gonzalez
f3d53fbba4
feat: add logrotation to container log files
...
Closes #4023
2021-01-23 12:45:05 -05:00
Jose Diaz-Gonzalez
b7ff627368
fix: correct app-specific shell handling
2021-01-23 12:44:07 -05:00
Jose Diaz-Gonzalez
9ffddf3561
Merge pull request #4347 from fomojola/patch-3
...
Update plugins.md
2021-01-23 11:44:38 -05:00
fomojola
56ff76584d
Update plugins.md
...
Added a simple deploy-webhook plugin that is configured purely through a config:set
2021-01-23 02:57:50 -05:00
Jose Diaz-Gonzalez
324d98d231
Merge pull request #4318 from dokku/customize-max-body-size
...
Add ability to set client max body size via nginx:set
2021-01-22 01:18:34 -05:00
Jose Diaz-Gonzalez
277e9691e1
feat: add ability to set client max body size via nginx:set
...
This simplifies increasing upload size by making it a property, and is backwards compatible with installations that have set that in a custom file.
2021-01-21 01:41:34 -05:00
Jose Diaz-Gonzalez
bce0671057
docs: drop extra text
...
[ci skip]
2021-01-21 01:34:35 -05:00
Jose Diaz-Gonzalez
ff10ef2c26
fix: drop trailing slash
...
[ci skip]
2021-01-21 01:32:55 -05:00
Jose Diaz-Gonzalez
1d8a98e5ce
Merge pull request #4343 from dokku/4199-scheduled-tasks
...
feat: add initial scheduled task implementation
2021-01-21 01:31:06 -05:00
Jose Diaz-Gonzalez
cb43d0cc64
chore: update help output for cron:list
2021-01-21 01:30:47 -05:00