Jose Diaz-Gonzalez
9f6aade092
fix: run unbuffered
2022-12-28 16:42:36 -05:00
Jose Diaz-Gonzalez
514a3efa5c
fix: use the correct test app for ps-general-2
...
Otherwise we aren't testing the desired Procfile behavior.
2022-12-28 15:35:56 -05:00
Jose Diaz-Gonzalez
d9af6516bb
tests: validate that procfile-path is respected
...
Refs #5550
2022-12-28 13:40:33 -05:00
Jose Diaz-Gonzalez
fd2c540cd5
fix: exit non-zero when git:from-image deploys fail to start the app
...
Also ensure the repository doesn't get updated to an invalid state in those failure cases.
Closes #5538
2022-12-27 02:37:30 -05:00
Jose Diaz-Gonzalez
852dfc6287
feat: add json output format support to storage:list
...
This will allow the command to be used in a programmatic fashion.
2022-12-26 16:33:40 -05:00
josegonzalez
315b25c7e6
Merge pull request #5533 from dokku/5502-support-plus-test
...
Add a test case for nested vector-sink values with plus signs
2022-12-20 10:50:24 -05:00
Jose Diaz-Gonzalez
8323015fb7
tests: add a test case for nested vector-sink values with plus signs
...
Closes #5502
2022-12-18 19:16:14 -05:00
Jose Diaz-Gonzalez
c3c6e2174a
fix: keep track of the source image when building an app via git:from-image
...
This change fixes issues with ps:rebuild not working as expected - essentially ignoring files in the repo - as well as adds tests.
Closes #5518
2022-12-18 17:57:24 -05:00
Jose Diaz-Gonzalez
bbbdfbffe5
fix: add support for escaped plus (+) signs in vector configurations
...
Closes #5502
2022-12-04 15:40:46 -05:00
Jose Diaz-Gonzalez
c2ebf48524
refactor: use a single implementation for checking cnb/herokuish images
...
Also use a plugin trigger for testing whether an image is herokuish or not rather than trying to mess around with sourced files.
2022-12-02 15:54:48 -05:00
Jose Diaz-Gonzalez
a2cc6b84d6
fix: use assert_output_contains so as not to worry about order
2022-12-02 10:47:40 -05:00
Jose Diaz-Gonzalez
1dda402769
fix: do not depend upon domains:setup in tests
...
Since it is now called on app creation, it doesn't work as expected for 'resetting' already set state.
2022-12-02 02:33:54 -05:00
Jose Diaz-Gonzalez
edd6e476b3
refactor: simplify how url generation works
...
The URLS file is no longer necessary as urls are now generated directly from the app VHOST file.
This also moves all the url generation logic to the domains plugin.
2022-12-02 02:19:59 -05:00
Jose Diaz-Gonzalez
f4f0a29446
fix: correct domain wildcard tests for new domain initialization method
2022-12-01 22:57:31 -05:00
Jose Diaz-Gonzalez
d18cb3766c
fix: correct tests for new domain initialization method
2022-12-01 22:39:38 -05:00
Jose Diaz-Gonzalez
7ec555f617
fix: properly test priority
...
It is no longer part of the service name.
2022-12-01 00:27:21 -05:00
josegonzalez
a42360ec34
Merge pull request #5493 from dokku/5410-fix-ssl-detection
...
Correct issue with detection of non-https port mapping as https port mapping
2022-11-29 01:38:15 -05:00
josegonzalez
6522012b89
fix: do not use priority in test lookup
2022-11-29 01:27:57 -05:00
Jose Diaz-Gonzalez
b7bff8e152
fix: correct issue with detection of non-https port mapping as https port mapping
...
This allows folks to _only_ set the letsencrypt-email in order to get https working as expected.
Closes #5410
2022-11-29 00:21:04 -05:00
Jose Diaz-Gonzalez
e26b0ba1db
feat: add ability to set a custom priority for traefik routing rules
2022-11-27 22:23:06 -05:00
Jose Diaz-Gonzalez
fe4d80a82b
refactor: cleanup zero'd out processes when a Procfile omitting those process types is set
...
This change also moves the referenced Procfile out to a host path once on deploy vs potentially several times, which should speed up deploys a small amount and simplify reasoning about the file.
Closes #5112
2022-11-25 14:50:35 -05:00
Jose Diaz-Gonzalez
3100eeb151
chore: split up ps-general tests
2022-11-25 14:50:35 -05:00
Jose Diaz-Gonzalez
1238c8d7e0
feat: allow users to enable herokuish usage on arm/arm64 platforms
...
While the majority of buildpacks do not work on non-amd64 platforms, this will at least allow developers the option to choose when to override this setting.
2022-11-24 14:43:47 -05:00
Jose Diaz-Gonzalez
5dc1e779ae
chore: run shfmt
2022-11-24 12:58:34 -05:00
Jose Diaz-Gonzalez
9fdc06e6fa
tests: add a test case to cover new functionality
2022-11-24 00:52:18 -05:00
Jose Diaz-Gonzalez
4da1f7091a
fix: run shfmt
2022-11-23 17:49:41 -05:00
Jose Diaz-Gonzalez
47f5af44c5
tests: add a test for the error message
2022-11-23 17:46:33 -05:00
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