Jose Diaz-Gonzalez
eca6cde934
docs: fix redirect of one-off-processes documentation
...
[ci skip]
2021-02-11 12:21:33 -05:00
Jose Diaz-Gonzalez
ef2682945c
Merge pull request #4397 from dokku/cnb-deployment-tasks
...
Correctly handle environment variables in deployment tasks for Cloud Native Buildpacks
2021-02-11 07:57:55 -05:00
Jose Diaz-Gonzalez
5e7ea4217f
tests: install pack for app-json tests
2021-02-11 07:34:27 -05:00
Jose Diaz-Gonzalez
123fbea7c0
feat: add a deployment task test for cnb
2021-02-11 07:16:54 -05:00
Jose Diaz-Gonzalez
0673fdff2d
fix: handle new herokuish image detection in deployment tasks
2021-02-11 07:16:43 -05:00
Jose Diaz-Gonzalez
e07befb93c
Merge pull request #4396 from nerg4l/documentation-patch-cloud-native-buildpacks-link
...
Invalid link to Herokuish Buildpack Deployment in Cloud Native Buildpacks
2021-02-11 07:15:49 -05:00
Jose Diaz-Gonzalez
8ca713f6bb
fix: handle empty start command for cnb apps
...
We should instead fetch the command from the Procfile.
2021-02-11 06:53:48 -05:00
Jose Diaz-Gonzalez
da1ddee0ba
fix: override the launcher for cnb apps since the default launcher is the process launcher...
2021-02-11 06:51:01 -05:00
Jose Diaz-Gonzalez
d48cf24c4d
fix: unify IsImageHerokuishBased with shell version
...
Really we should just spit this out into a bin and then have the shell version wrap the golang ones...
2021-02-11 06:49:19 -05:00
Jose Diaz-Gonzalez
5614475521
refactor: reverse if statements
...
The shell version of IsImageHerokuishBased returns true if it is CNB for legacy reasons...
2021-02-11 06:48:38 -05:00
Jose Diaz-Gonzalez
b826770687
fix: add cnb fix to copy_from_image
2021-02-11 06:43:37 -05:00
Jose Diaz-Gonzalez
34807028db
feat: ensure we inject environment variables into the docker container create call in app-json
...
This fixes an issue where the values are empty for CNB applications.
2021-02-11 06:43:15 -05:00
Jose Diaz-Gonzalez
0405b36ab4
fix: implement config-export hook
...
This will allow dropping many of the "source config/functions" calls littered over the codebase. Plugin triggers are the way to perform cross-plugin communication :)
2021-02-11 06:41:11 -05:00
Jose Diaz-Gonzalez
291f59999c
Merge pull request #4395 from dokku/cnb-env-vars
...
Add environment variable support to CNB-based containers
2021-02-11 05:21:31 -05:00
Jose Diaz-Gonzalez
1568fc7827
refactor: only special case cnb for now
2021-02-11 04:21:08 -05:00
Jose Diaz-Gonzalez
681fd6abf6
fix: install pack for tests
2021-02-11 04:04:25 -05:00
Jose Diaz-Gonzalez
031159c1b9
fix: correct dockblock
2021-02-11 04:02:06 -05:00
Jose Diaz-Gonzalez
812e34c6f5
feat: properly export env vars for cnb apps
...
They are not baked into the image like they are for herokuish, so we need to manually set them via --env. Additionally, due to newline constraints in docker, we need to use `--env=key` format to correctly pull the values into place.
2021-02-11 03:52:02 -05:00
Jose Diaz-Gonzalez
5921692f83
feat: add ability to export env vars as a --env=key ... string
2021-02-11 03:50:51 -05:00
Jose Diaz-Gonzalez
33d5dd44d9
refactor: pull container creation into standalone function
...
this is necessary for us to be able to inject env vars into the call.
2021-02-11 03:50:08 -05:00
Jose Diaz-Gonzalez
d7562d36e6
chore: drop unused destroy
2021-02-11 03:48:42 -05:00
Jose Diaz-Gonzalez
49a2f8ab82
fix: properly specify as argument array
2021-02-11 02:21:43 -05:00
Jose Diaz-Gonzalez
82afae6447
tests: add missing assertion
2021-02-11 02:21:29 -05:00
Jose Diaz-Gonzalez
25ab915883
refactor: standardize on using long-form and equal sign for docker arguments
2021-02-11 02:21:16 -05:00
Jose Diaz-Gonzalez
0963c403ab
refactor: simplify container creation call
2021-02-10 11:18:12 -05:00
Jose Diaz-Gonzalez
9c1852fcdb
Merge pull request #4393 from dokku/cnb-docker-image-labeler
...
Use docker-image-labeler in cnb builder-build trigger
2021-02-10 10:33:27 -05:00
Jose Diaz-Gonzalez
a6aef82236
Merge pull request #4394 from dokku/fix-custom-shell
...
Swap order of arguments on config-get call
2021-02-10 10:33:17 -05:00
Jose Diaz-Gonzalez
8b4e31bb22
refactor: use docker-image-labeler in cnb builder-build trigger
2021-02-10 05:24:11 -05:00
Jose Diaz-Gonzalez
7c923a0fa1
fix: swap order of arguments on config-get call
2021-02-10 05:23:42 -05:00
Jose Diaz-Gonzalez
169f202994
Merge pull request #4390 from dokku/faster-null-runs
...
Run tests faster by not cloning the buildpack each time
2021-02-08 12:28:56 -05:00
Jose Diaz-Gonzalez
4448e60a8b
tests: run tests faster by not cloning the buildpack each time
...
This is now included in herokuish.
2021-02-08 11:17:14 -05:00
Jose Diaz-Gonzalez
c744c25d35
Merge pull request #4389 from dokku/dependabot/composer/tests/apps/php/heroku/heroku-buildpack-php-189
...
chore(deps-dev): bump heroku/heroku-buildpack-php from 188 to 189 in /tests/apps/php
2021-02-08 10:51:03 -05:00
Jose Diaz-Gonzalez
55213e1045
Merge pull request #4388 from dokku/4376-handle-log-drivers
...
Do not inject max-size option when not using local or json-file log-drivers
2021-02-07 22:32:54 -05:00
Jose Diaz-Gonzalez
1843d42e0b
Merge pull request #4387 from dokku/4385-warn-if-vector-stopped
...
Only warn if the vector container is stopped when fetching logs
2021-02-07 22:11:09 -05:00
Jose Diaz-Gonzalez
065f5e5922
fix: do not inject max-size option when not using local or json-file log drivers
...
Closes #4376
2021-02-07 22:10:06 -05:00
Jose Diaz-Gonzalez
f7beb3d95d
Merge pull request #3757 from pickettd/fix-installer-windows-vagrant
...
Add provision line to Windows Vagrant box for dokku-installer
2021-02-07 21:04:25 -05:00
Jose Diaz-Gonzalez
c09dfb8ec8
feat: only warn if the vector container is stopped when fetching logs
...
Closes #4385
2021-02-07 21:03:21 -05:00
Jose Diaz-Gonzalez
87b90e96b6
Merge pull request #4372 from dokku/clear-individual-resource
...
Add ability to clear an individual resource
2021-02-07 20:57:33 -05:00
Jose Diaz-Gonzalez
e556be1a0d
feat: add ability to clear an individual resource
2021-02-07 20:32:43 -05:00
Jose Diaz-Gonzalez
88fddf2a6d
Merge pull request #4384 from dokku/cron-trigger
...
Add support for injected cron entries from external plugins
2021-02-07 19:28:16 -05:00
Jose Diaz-Gonzalez
97fe71a829
Merge pull request #4386 from dokku/4371-image-labeling
...
Update to docker-image-labeler that handles in-use images
2021-02-07 19:18:02 -05:00
Jose Diaz-Gonzalez
988cdbd6bb
fix: update to docker-image-labeler that handles in-use images
...
Also ensure we keep track of previous docker image tags.
Refs #4371
2021-02-07 18:26:39 -05:00
Jose Diaz-Gonzalez
be84325de1
feat: add support for injected cron entries
...
This allows alternative plugins - such as dokku-letsencrypt - to inject scheduled cron tasks into the cron system used by Dokku. Cron systems can choose to include or not include a cron task based on the specified scheduler, and can also optionally use a third parameter to store arbitrary information.
2021-02-07 16:45:34 -05:00
Jose Diaz-Gonzalez
e7d9d6b19e
Merge pull request #4373 from dokku/fast-scale
...
Do not attempt to extract Procfile in ps:scale
2021-02-03 14:50:04 -05:00
Jose Diaz-Gonzalez
bd378e8a44
Merge pull request #4377 from dokku/josegonzalez-patch-1
...
Add note about the dokku user cron being overwritten by Dokku
2021-02-03 14:49:38 -05:00
Jose Diaz-Gonzalez
82da43cfba
docs: fix reference to dokku user crontab in cron docs
...
[ci skip]
2021-02-03 14:49:25 -05:00
Jose Diaz-Gonzalez
a96ad0c10c
docs: add note about the dokku user cron being overwritten by Dokku
...
This is a BC-incompatible change introduced by 0.23.0.
2021-02-03 14:45:11 -05:00
Jose Diaz-Gonzalez
670e679a09
refactor: do not attempt to extract Procfile in ps:scale
...
The Procfile is now extracted in the pre-deploy step for every deploy and otherwise not removed. Thus, it should always exist when necessary - web will be scale to 1 automatically and it won't need to be present on future ps:scale calls since we'll have the scale file - and the command can execute faster.
2021-02-03 03:49:44 -05:00
Jose Diaz-Gonzalez
aac0408f76
Merge pull request #4369 from dokku/report-json-output
...
Allow formatting :report command output as json
2021-02-01 22:42:00 -05:00
Jose Diaz-Gonzalez
5b9ed4f373
Merge pull request #4368 from dokku/always-report-resources
...
Always report resources
2021-02-01 22:26:04 -05:00
Jose Diaz-Gonzalez
033b0952dd
feat: allow formatting :report command output as json
2021-02-01 22:23:30 -05:00
Jose Diaz-Gonzalez
12e2686e3f
fix: always report resource
2021-02-01 19:57:22 -05:00
Jose Diaz-Gonzalez
cc2f054e6a
Merge pull request #4367 from dokku/josegonzalez-patch-1
...
Update deeplink to digitalocean marketplace image on homepage
2021-02-01 17:38:56 -05:00
Jose Diaz-Gonzalez
a799630fac
docs: update deeplink to digitalocean marketplace image on homepage
...
The images have changed location. Also add a referral code to make it possible to run Dokku tests without breaking the bank.
2021-02-01 17:38:40 -05:00
Jose Diaz-Gonzalez
77f0f55ee7
Merge pull request #4366 from dokku/josegonzalez-patch-1
...
Update Digitalocean docs
2021-02-01 17:37:51 -05:00
Jose Diaz-Gonzalez
48428ed777
Update digitalocean docs
...
They were slightly out of date. Also include an updated referral link that deeplinks to the marketplace image.
[ci skip]
2021-02-01 17:37:32 -05:00
Jose Diaz-Gonzalez
0c7afb26b0
Merge pull request #4365 from dokku/dependabot/pip/tests/apps/python-flask/jinja2-2.11.3
...
chore(deps): bump jinja2 from 2.11.2 to 2.11.3 in /tests/apps/python-flask
2021-02-01 02:52:03 -05:00
Jose Diaz-Gonzalez
411f0550e0
Merge pull request #4363 from dokku/josegonzalez-patch-1
...
Refer to the monitored slack and github discussions channels in the issue template
2021-01-27 16:51:31 -05:00
Jose Diaz-Gonzalez
f9fcad257e
docs: refer to the monitored slack and github discussions channels in the issue template
...
[ci skip]
2021-01-27 16:51:08 -05:00
Jose Diaz-Gonzalez
b0d699f281
Merge pull request #4359 from dokku/josegonzalez-patch-1
...
Fix command call for set-property
2021-01-25 21:48:05 -05:00
Jose Diaz-Gonzalez
4e8242fe5e
docs: fix command call for set-property
...
[ci skip]
2021-01-25 21:47:54 -05:00
Jose Diaz-Gonzalez
5ceccbdf68
docs: fix command call for set-property
...
[ci skip]
2021-01-25 21:47:01 -05:00
Jose Diaz-Gonzalez
324c08a8a2
Merge pull request #4358 from Cellane/patch-3
...
Update header on cron documentation
2021-01-24 20:22:14 -05:00
Jose Diaz-Gonzalez
09831c3b93
Merge pull request #4357 from Cellane/patch-2
...
Fix spelling in nginx documentation
2021-01-24 19:55:09 -05:00
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
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