dhh
12a82a6c58
Inline util method only used in one place
2023-09-16 11:11:24 -07:00
dhh
b2d2a254d7
Fix env validation
2023-09-16 11:05:47 -07:00
dhh
62cdf31ae2
Fix tests
2023-09-16 11:01:16 -07:00
dhh
0dcebe7d34
Fix test
2023-09-16 10:59:41 -07:00
dhh
32a5c157b9
Merge branch 'main' into extract-env-writer
...
* main:
No longer used
2023-09-16 10:56:29 -07:00
dhh
97cea8950d
No longer used
2023-09-16 10:56:00 -07:00
dhh
873be0b76b
Extract Kamal::EnvFile
...
Cleaning up the Utils junk drawer.
2023-09-16 10:55:41 -07:00
David Heinemeier Hansson
3a8eb0cf7d
Merge pull request #470 from basecamp/extract-app-concerns
...
Extract app concerns
2023-09-16 10:24:24 -07:00
dhh
e9ef13d06d
Group configuration methods in logical sections
2023-09-16 10:20:08 -07:00
dhh
f648fe6c3f
Grouping + ordering
2023-09-16 10:14:04 -07:00
dhh
46895d0b08
Better ordering and spacing
2023-09-16 10:11:42 -07:00
dhh
431ca9e809
Remind about env push
2023-09-16 10:09:42 -07:00
dhh
6b5c5f0650
Extract Logging too
...
Leave only the core essentials in App
2023-09-16 10:03:28 -07:00
dhh
d303fcc621
Extract Containers and Images concerns
2023-09-16 09:58:09 -07:00
dhh
3ae855ef28
Explain method better
2023-09-16 09:53:03 -07:00
dhh
76a3086569
Group related methods with spacing
2023-09-16 09:52:54 -07:00
dhh
07646bc020
Extract Cord, Assets, and Execution concerns from App
...
It was getting crowded!
2023-09-16 09:51:45 -07:00
dhh
880b8b267a
Fix test
2023-09-16 09:38:30 -07:00
dhh
37e5c48a27
Setup run directory on accessory hosts as well
...
cc @djmb
2023-09-15 11:08:27 -07:00
dhh
deb67386fa
No need to suggest use of erb
2023-09-15 10:54:50 -07:00
dhh
81d74e4a9d
Record push of env files for audit on app servers
2023-09-15 10:20:31 -07:00
dhh
39c13dcc18
Push env files as part of setup
2023-09-15 10:20:31 -07:00
dhh
e7314a0eea
Explain ensuring Docker is installed
2023-09-15 10:20:31 -07:00
Donal McBreen
168c6e2da3
Merge pull request #467 from basecamp/assets-copy-hidden-files
...
Copy all files into asset volume
2023-09-15 08:46:02 +01:00
Donal McBreen
564765862b
Add hidden file check to integration tests
2023-09-15 08:37:41 +01:00
Donal McBreen
3c12d1799c
Copy all files into asset volume
...
Adding -T to the copy command ensures that the files are copied at the
same level into the target directory whether it exists or not.
That allows us to drop the `/*` which was not picking up hidden files.
Fixes: https://github.com/basecamp/kamal/issues/465
2023-09-15 08:07:48 +01:00
Donal McBreen
60835d13a8
Merge pull request #444 from rience/custom-healthcheck-log-lines-count
...
Configurable Number of Lines in Healthcheck Log Output
2023-09-13 08:57:00 +01:00
Krzysztof Adamski
892cf0e66b
Configurable Log Lines Number in Healthcheck Log Output
2023-09-12 21:06:36 +02:00
Krzysztof Adamski
8ddc484ce6
Configurable Lines Number in Healthcheck Log Output
2023-09-12 21:04:18 +02:00
Donal McBreen
0e021e3c57
Merge pull request #461 from basecamp/escape-newline-from-inspect-format
...
Escape the newline in the inspect query
2023-09-12 19:19:47 +01:00
Donal McBreen
fb0aeec27e
Escape the newline in the inspect query
2023-09-12 19:10:39 +01:00
Donal McBreen
a367819a1c
Merge pull request #460 from basecamp/traefik-wait-5s-after-unhealthy
...
Give Traefik 5s to drop old container
2023-09-12 17:12:20 +01:00
Donal McBreen
0afe289a20
Give Traefik 5s to drop old container
2023-09-12 17:03:51 +01:00
Donal McBreen
bf6af46ac3
Merge pull request #459 from basecamp/env-file-escape-newlines
...
Escape newlines in docker env files
2023-09-12 15:05:38 +01:00
Donal McBreen
df2b76aee1
Escape newlines in docker env files
...
When env variables were passed via `-e` newlines were escaped. This
updates the env file to do the same thing.
2023-09-12 14:57:19 +01:00
Donal McBreen
70a3c7195a
Merge pull request #458 from basecamp/avoid-env-empty-file-warning
...
Fix empty file warning when uploading env files
2023-09-12 12:05:31 +01:00
Donal McBreen
c651de177f
Fix empty file warning when uploading env files
2023-09-12 11:57:28 +01:00
Donal McBreen
7b42daa9fb
Merge pull request #457 from basecamp/remove-dangling-image-filter
...
Remove the `dangling=true` filter
2023-09-12 11:21:50 +01:00
Donal McBreen
9d49b3e391
Merge pull request #456 from basecamp/validate-image
...
Validate the build image
2023-09-12 11:18:32 +01:00
Donal McBreen
2c5ab054db
Remove the dangling=true filter
...
This has been removed from Docker Engine 24 and `docker image prune`
only deletes dangling images anyway.
Fixes https://github.com/basecamp/kamal/issues/410
2023-09-12 11:09:26 +01:00
Donal McBreen
66291a2aea
Validate the build image
...
Kamal needs images to have the service label so it can track them for
pruning. Images built by Kamal will have the label, but externally built
ones may not.
Without it images will build up over time. The worst case is an outage
if all the hosts disks fill up at the same time.
We'll add a check for the label and halt if it is not there.
2023-09-12 10:45:01 +01:00
Donal McBreen
d96e086945
Merge pull request #452 from basecamp/preconnect-to-build-remote-host
...
Connect to remote host before creating builder
2023-09-12 09:21:57 +01:00
Donal McBreen
8424458174
Check protocol is SSH before connecting
2023-09-12 09:12:57 +01:00
Donal McBreen
6a3b0249fe
Connect to remote host before creating builder
...
Connecting to the remote host will make any SSH configuration issues
obvious and add the host to known hosts if that is how SSHKit is
configured.
2023-09-12 09:12:57 +01:00
Donal McBreen
dfc2803714
Merge pull request #454 from basecamp/lts-ubuntu
...
Use LTS version of Ubuntu for integration tests
2023-09-12 09:12:31 +01:00
Donal McBreen
ade90bc051
Use LTS version of Ubuntu for integration tests
2023-09-12 08:59:54 +01:00
Donal McBreen
daa53f5831
Merge pull request #451 from basecamp/require-destinations
...
Add a require_destination setting
2023-09-12 08:26:36 +01:00
Donal McBreen
50a4f83db6
Merge pull request #450 from basecamp/stop-stale-container-when-deploying
...
Stop stale containers when deploying
2023-09-12 08:26:16 +01:00
Donal McBreen
00cb7d99d8
Merge pull request #449 from basecamp/asset-path
...
Asset paths
2023-09-12 08:26:07 +01:00
Donal McBreen
fb74910dc8
Merge pull request #425 from basecamp/prune-healthcheck-containers
...
Prune healthcheck containers
2023-09-12 08:25:50 +01:00