Jose Diaz-Gonzalez
e8f69ca90e
fix: remove equals sign
2022-11-22 20:28:28 -05:00
Jose Diaz-Gonzalez
f5c3b5dc34
refactor: move DOKKU_WAIT_TO_RETIRE to a checks property
...
This centralizes the property and removes one more dokku-specific property from the app environment variables.
Closes #5049
2022-11-22 20:27:43 -05:00
Jose Diaz-Gonzalez
aa49df4fe4
fix: do not attempt to attach a network to a container that already has it
...
This avoids issues when scaling unrelated process types or if the user has specified the same network at different phases.
Closes #5352
2022-11-06 18:30:05 -05:00
Jose Diaz-Gonzalez
a4554b794e
Merge pull request #5320 from dokku/5171-run-json-output
...
Add json format output to run:list
2022-10-29 17:06:50 -04:00
Jose Diaz-Gonzalez
83b8d02efd
fix: correct shfmt issue
2022-10-22 17:51:06 -04:00
Jose Diaz-Gonzalez
4ef260f57a
fix: ignore https mappings when no ssl certificate exists
...
This fixes issues where users may somehow add an https mapping but are missing an ssl certificate, causing nginx to not load properly. We now ignore the mapping and warn users of the misconfiguration.
Closes #5368
2022-10-22 17:47:54 -04:00
Jose Diaz-Gonzalez
fc832b580b
tests: test that build-arg works as expected
...
Closes #5388
2022-10-21 22:16:51 -04:00
Jose Diaz-Gonzalez
cd9274a601
fix: update entrypoint used for node:18-alpine
2022-10-15 12:28:34 -04:00
Jose Diaz-Gonzalez
69738abec2
feat: add json format output to run:list
...
Also add some unit tests to the command.
Closes #5171
2022-08-22 22:37:04 -04:00
Jose Diaz-Gonzalez
c9caa0880f
tests: add unit tests and support multiple routers/services in traefik
2022-08-18 11:13:34 -04:00
Jose Diaz-Gonzalez
801fc5d78c
fix: ensure we don't output anything extra in tests
2022-08-18 11:13:01 -04:00
Jose Diaz-Gonzalez
741ffc635c
fix: fix issue with multiple domain support for caddy
2022-08-18 10:53:08 -04:00
Jose Diaz-Gonzalez
f09b960997
tests: add a unit test for the init-process option
2022-08-14 13:45:41 -04:00
Jose Diaz-Gonzalez
7cc84dcdbe
tests: add unit test for lambda builder
2022-08-09 02:13:06 -04:00
Jose Diaz-Gonzalez
d8e9511769
fix: correct issue where more complex docker args were not properly parsed when scheduling containers
...
In cases where a docker arg uses backticks - which may happen with docker labels - scheduled containers would fail to support these due to performing a double-eval. This is particularly noticeable for traefik labels, where backticks and parenthesis are common. This fix properly handles docker args as an array instead of performing an extra eval when scheduling containers.
2022-07-30 00:48:38 -04:00
Jose Diaz-Gonzalez
9d332e9b2d
chore: run shfmt against all test files
2022-07-21 14:57:42 -04:00
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