Jose Diaz-Gonzalez
dded26625b
fix: always respect app.json formations in scale settings
...
Without this change, it was possible would end up in a state where we might still try to scale processes up that no longer exists.
Closes #5205
2022-06-26 14:33:19 -04:00
Andrey Bulava
8d640ac958
Set RestartPolicy:"unless-stopped" for the vector container.
2022-04-26 13:42:10 +03:00
Jose Diaz-Gonzalez
68c0d7e964
feat: warn and exit non-zero when attempting to rebuild from a non-existent branch
...
Closes #4898
2022-04-16 01:40:22 -04:00
Jose Diaz-Gonzalez
8f32e1b1a2
Merge pull request #5052 from dokku/5020-sudo-crontab
...
Run crontab under sudo to support rhel systems
2022-02-28 22:51:21 -05:00
Jose Diaz-Gonzalez
257baa1d46
refactor: run crontab under sudo to support rhel systems
...
RHEL blocks users from executing crontab as themselves Because Of Reasons so we need to use sudo instead.
Also refactors file writing to properly support writing the permissions on sudoers files going forward.
Closes #5020
2022-02-27 19:17:04 -05:00
Jose Diaz-Gonzalez
2a02aa0b9b
fix: ensure vector component sources have valid names
...
The dot (.) character is invalid.
Closes #5044
2022-02-27 18:20:44 -05:00
Jose Diaz-Gonzalez
068b3c9adb
feat: set the default memory unit type to megabytes
...
This makes it easier to support all schedulers out of the box - all other schedulers assume megabytes when no unit is specified.
2022-02-25 22:20:59 -05:00
Jose Diaz-Gonzalez
9d3f4ff508
Merge pull request #5019 from dokku/4965-global-domain-renames
...
Only rename app domains associated with a global domain
2022-01-29 07:24:36 -05:00
Jose Diaz-Gonzalez
26e7a16fd7
fix: only rename app domains associated with a global domain
...
Closes #4965
2022-01-28 22:38:24 -05:00
Jose Diaz-Gonzalez
7136da1aa5
feat: add a command to clear all proxy configs
...
Closes #5002
2022-01-28 20:58:31 -05:00
Jose Diaz-Gonzalez
07f2ef1411
fix: respect pre-existing .env files when preparing the herokuish buildenv
...
Closes #4894
2022-01-18 02:21:12 -05:00
Jose Diaz-Gonzalez
3c68114ad3
Merge pull request #4950 from emdienn/bugfix/env-at-build-time
...
Use exported environment vars during pack build
2022-01-16 18:23:56 -05:00
Jose Diaz-Gonzalez
6f55b89149
refactor: simplify env var passing by using a new config:export format
...
Also add a test for env vars during build time for pack-built applications.
2022-01-15 08:34:02 -05:00
Vincent Boisard
cf4eed2de0
Add test for buildpacks:set-property --global
2022-01-13 23:21:57 +01:00
Jose Diaz-Gonzalez
cd33ec2f02
fix: remove trace mode
2021-11-03 14:40:21 -04:00
Jose Diaz-Gonzalez
a756786f93
fix: ensure we respect quotes and dollar signs in config vars
...
Due to various changes in how containers are started, these keys were set incorrectly for apps. Since we can use the short-hand --env=ENV format for setting env vars on docker containers, lets do so.
Closes #4895
Closes #4896
2021-11-03 12:13:52 -04:00
Jose Diaz-Gonzalez
a637ffc848
tests: skip test when in remote vscode container and also ensure the docker daemon config is valid
2021-10-24 20:21:03 -04:00
Jose Diaz-Gonzalez
d1a16717b3
chore: remove deprecated tar plugin
...
This plugin was deprecated in 0.24.0 in favor of git:from-archive. Users should migrate to the new command.
2021-10-09 18:43:53 -04:00
Jose Diaz-Gonzalez
e893ac2aaa
chore: remove deprecated tags plugin
...
This plugin was deprecated in 0.24.0 in favor of git:from-image. Users should migrate to the new command.
2021-10-09 18:34:01 -04:00
Jose Diaz-Gonzalez
3c6396fbca
feat: implement the scheduler plugin
...
This also performs a one-time migration of the DOKKU_SCHEDULER values the scheduler plugin properties.
Closes #4739
2021-10-09 18:31:59 -04:00
Jose Diaz-Gonzalez
4d0ff4a834
Merge pull request #4810 from dokku/4804-skip-udp-port
...
Handle udp ports when fetching network config
2021-10-03 17:59:48 -04:00
Jose Diaz-Gonzalez
d9eea74f18
feat: implement storage:ensure-directory command
...
Closes #4805
2021-09-29 11:36:02 -04:00
Jose Diaz-Gonzalez
82dfcc01e2
fix: handle udp ports when fetching network config
...
When an app only has UDP ports exposed, deploys will fail as we expect there to be a single TCP port.
While we _should_ support both, the easier fix is to ignore things and move on. Users can manually expose UDP ports as necessary via the -p flag (or by not specifying the port as a UDP port).
One quirk discovered during tests is that disabling zero-downtime deploys results in odd output, but also a deploy can succeed even if one of the processes that skipped zero-downtime fails. We should fix this in another PR, but this is documented in tests for now.
Closes #4804
2021-09-29 00:37:38 -04:00
Jose Diaz-Gonzalez
2d180f5e0f
tests: remove extra call to list apps
2021-09-16 00:26:11 -04:00
Jose Diaz-Gonzalez
d83471bd46
fix: do not delete devcontainers when running tests in a docker container
2021-09-16 00:26:11 -04:00
Jose Diaz-Gonzalez
0997fd3347
fix: add support for url-encoded vector-sink config values
...
We additionally force-replace \u0026 with an ampersand to ensure we properly support & in config values (such as for URIs).
2021-09-10 23:04:41 -04:00
Jose Diaz-Gonzalez
faf53aa479
fix: install pack for run tests
2021-08-12 22:59:33 -04:00
Jose Diaz-Gonzalez
d9204083f7
fix: install pack
...
Also move the installation into a helper method.
2021-08-12 22:07:53 -04:00
Jose Diaz-Gonzalez
997cc4f466
tests: shore up test checks
2021-08-12 21:12:15 -04:00
Jose Diaz-Gonzalez
a825e2678c
fix: ensure env vars are injected for all run containers
...
CNB containers would otherwise not have them injected.
2021-08-12 21:12:01 -04:00
Jose Diaz-Gonzalez
620a36be82
tests: enhance release tests to check global secrets
2021-08-12 17:36:01 -04:00
Jose Diaz-Gonzalez
10f6d00e04
tests: add test to ensure herokuish respects the env vars during the release process
2021-08-12 16:16:08 -04:00
Jose Diaz-Gonzalez
a1c768b9b3
refactor: drop web installer in favor of setup via cli
...
This makes the installation a bit more secure by ensuring a user does not accidentally expose a way for unauthorized users to add new ssh keys to the system.
Additionally, this removes the extra HOSTNAME file to make the initial install process easier (that file was not modifiable by any dokku commands.
Closes #2247
2021-08-07 16:36:41 -04:00
Jose Diaz-Gonzalez
534a5f0898
Merge pull request #4719 from dokku/4665-route-internal
...
Add support for routing an app to a specified host:port
2021-08-06 11:11:41 -04:00
Jose Diaz-Gonzalez
e0a513650e
Merge pull request #4715 from dokku/2574-use-sslip
...
Switch from xip.io to sslip.io
2021-08-06 02:15:53 -04:00
Jose Diaz-Gonzalez
9ecfa843f0
feat: add support for routing an app to a specified host:port
...
This is useful when there is a service not managed by Dokku but should be exposed via the Dokku routing layer. As an example, some binaries (consul, nomad, vault) expose web uis, and are traditionally run on the host directly vs in a container.
Closes #4665
2021-08-06 01:29:25 -04:00
Jose Diaz-Gonzalez
ecb8a02356
feat: switch from xip.io to sslip.io
...
xip.io appears to be unsupported after an exodus at basecamp. Switching to sslip.io seems like a decent move.
Refs #2574
2021-08-05 23:30:58 -04:00
Jose Diaz-Gonzalez
f0a125f070
fix: remove the test-app:2 image
...
The dokku-retire call needs two passes because a later image was a child image of test-app:2.
2021-08-05 18:58:33 -04:00
Jose Diaz-Gonzalez
d4ec8d3ab5
tests: add tests for registry plugin
2021-08-05 04:20:22 -04:00
Jose Diaz-Gonzalez
4967cc1d1c
fix: do not manually create an app during tests
...
This will cause weird things to happen due to not initializing the app correctly.
2021-08-01 20:13:50 -04:00
Jose Diaz-Gonzalez
401683a305
refactor: write DOKKU_SCALE contents to scale property
...
- remove extraction of DOKKU_SCALE
- migrate to property system
- rewrite internals to use a FormationSlice instead of a map
2021-08-01 17:47:04 -04:00
Jose Diaz-Gonzalez
1bdedf1e28
tests: fix for instant run container removal
2021-07-27 13:26:37 -04:00
Jose Diaz-Gonzalez
350a84d253
refactor: deprecate the --detach flag in favor of run:detached
2021-07-27 02:58:44 -04:00
Jose Diaz-Gonzalez
618158a0f3
refactor: deprecate the --rm and --rm-container flags
...
These flags are not commonly invoked by users, causing issues when cleaning up old containers. Rather than instruct users to use some random flag, just change the default to what is likely to be more common.
2021-07-27 02:58:19 -04:00
Jose Diaz-Gonzalez
dbc3d82017
refactor: move run command to it's own plugin
2021-07-27 02:56:39 -04:00
Jose Diaz-Gonzalez
7292eaefc3
tests: add test for builder-pack:set projectoml-path
2021-07-10 15:32:59 -04:00
Jose Diaz-Gonzalez
135e78c868
tests: add test for procfile-path
2021-07-10 14:57:59 -04:00
Jose Diaz-Gonzalez
a4b024d6f9
tests: add a test for dockerfile-path
2021-07-10 14:57:58 -04:00
Jose Diaz-Gonzalez
d4016223d5
tests: add tests for build-dir
2021-07-10 14:57:58 -04:00
Jose Diaz-Gonzalez
2580ad305c
tests: ensure app deploys successfully by default in appjson-path test
2021-07-10 14:57:58 -04:00