Jacopo
0bfd4ca780
Use cli = self approach
2023-04-11 16:04:46 +02:00
Jacopo
12e3a562c4
Extract helper
2023-04-11 15:26:55 +02:00
Jacopo
c3393c8213
Remove dot
2023-04-11 11:03:11 +02:00
Jacopo
03d933d10b
Add Role to the message
2023-04-11 10:59:25 +02:00
Jacopo
579b4cd9aa
Simplify
...
By using and ad-hoc command to detect and stop stale containers.
By default stale containers are only detected.
2023-04-11 10:22:03 +02:00
Jacopo
f9436d5673
Style
2023-04-11 08:53:33 +02:00
Jacopo
8ae5331d97
Boot stop all the old containers
2023-04-11 08:53:33 +02:00
Jacopo
4d47fbdf41
Merge stop and stop_stale_containers
2023-04-11 08:53:33 +02:00
Jacopo
e980f1164e
Avoid using GNU-only Perl Regepx Grep
2023-04-11 08:53:33 +02:00
Jacopo
e2f6db5cae
Clear stale containers
...
By stopping all the older containers with matching /#{service}-#{role}-#{dest}-.*/ running on the same host.
2023-04-11 08:53:33 +02:00
David Heinemeier Hansson
2146f6d0ec
Merge pull request #182 from basecamp/sensitive-args
...
Only redact the non-sensitive bits of build args and env vars.
2023-04-06 16:19:41 +02:00
David Heinemeier Hansson
52d8c112d3
Merge branch 'main' into pr/182
...
* main:
Bump debug to fix missing deps in CI
2023-04-06 16:18:22 +02:00
David Heinemeier Hansson
c9afd66222
Merge pull request #184 from basecamp/fix-ci
2023-04-06 13:21:26 +02:00
Jeremy Daer
36c458407f
Bump debug to fix missing deps in CI
2023-04-05 12:00:15 -07:00
Jeremy Daer
c137b38c87
Only redact the non-sensitive bits of build args and env vars.
...
* `-e [REDACTED]` → `-e SOME_SECRET=[REDACTED]`
* Replaces `Utils.redact` with `Utils.sensitive` to clarify that we're
indicating redactability, not actually performing redaction.
* Redacts from YAML output, including `mrsk config` (fixes #96 )
2023-04-05 09:45:28 -07:00
David Heinemeier Hansson
f851d6528d
Merge pull request #169 from ncreuschling/patch-1
...
improve code sample (traefik configuration)
2023-04-05 16:31:10 +02:00
Nicolai Reuschling
2f97bc488f
improve code sample (traefik configuration)
...
fixed yaml format (code sample traefik configuration)
2023-03-31 11:50:43 +02:00
David Heinemeier Hansson
032266a76a
Bump version for 0.10.1
v0.10.1
2023-03-29 16:23:58 +02:00
David Heinemeier Hansson
33cc6c8bae
Merge pull request #166 from calmyournerves/exit-code
...
Set proper exit code on failure
2023-03-29 16:21:54 +02:00
Samuel Sieg
5638ab8594
Set proper exit code on failure
2023-03-29 13:47:34 +02:00
David Heinemeier Hansson
60916cdac3
Bump version for 0.10.0
v0.10.0
2023-03-28 18:05:46 +02:00
David Heinemeier Hansson
1f83b5f6be
Fix failure to pass on class options to subcommands
2023-03-28 18:04:16 +02:00
David Heinemeier Hansson
070c6e8e75
Merge pull request #165 from basecamp/pin-traefik-version
...
Pin Traefik to v2.9.9
2023-03-28 16:27:49 +02:00
Kevin McConnell
2957388bf6
Pin Traefik to v2.9.9
2023-03-28 14:59:03 +01:00
David Heinemeier Hansson
7f178101f7
Merge pull request #164 from basecamp/accessory-hosts-or-roles
...
Run accessories on multiple hosts or roles
2023-03-28 14:31:24 +02:00
David Heinemeier Hansson
aed345466f
Dropped "all"
2023-03-28 14:28:54 +02:00
Donal McBreen
c06585fef4
Daemon/host/role accessories
...
Allow the hosts for accessories to be specified by host or role, or on
all app hosts by setting `daemon: true`.
```
# Single host
mysql:
host: 1.1.1.1
# Multiple hosts
redis:
hosts:
- 1.1.1.1
- 1.1.1.2
# By role
monitoring:
roles:
- web
- jobs
```
2023-03-28 13:26:27 +01:00
David Heinemeier Hansson
fd5313ec3e
Merge pull request #163 from milk1000cc/rolify-app-logs
...
Rolify app logs cli/command
2023-03-28 14:13:02 +02:00
David Heinemeier Hansson
4184d3204e
Merge pull request #161 from tbuehlmann/push-latest-image
...
Push <image>:latest in addition to <image>:<git-ref>
2023-03-28 14:09:32 +02:00
milk1000cc
15a41d3fd8
Follow web role logs when no roles are specified
2023-03-28 09:02:42 +09:00
milk1000cc
03614bfb79
Rolify app logs cli/command
2023-03-27 23:08:46 +09:00
Tobias Bühlmann
078d68b170
Push <image>:latest in addition to <image>:<git-ref>
2023-03-27 12:52:11 +02:00
David Heinemeier Hansson
cec82ac641
Merge pull request #158 from basecamp/zero-downtime-redeploys
2023-03-24 18:27:29 +01:00
Donal McBreen
05488e4c1e
Zero downtime redeploys
...
When deploying check if there is already a container with the existing
name. If there is rename it to "<version>_<random_hex_string>" to remove
the name clash with the new container we want to boot.
We can then do the normal zero downtime run/wait/stop.
While implementing this I discovered the --filter name=foo does a
substring match for foo, so I've updated those filters to do an exact
match instead.
2023-03-24 17:09:20 +00:00
David Heinemeier Hansson
01a2b678d7
Merge pull request #154 from basecamp/lock-deploys
...
Deploy locks
2023-03-24 15:50:33 +01:00
David Heinemeier Hansson
84540cee7b
Merge branch 'main' into pr/154
...
* main: (32 commits)
Inline default as with other options
Symbols!
Fix tests
test stop with custom stop wait time
No need to replicate Docker default
Describe purpose rather than elements
Style and ordering
Customizable stop wait time
Fix tests
Ensure it also works when configuring just log options without setting a driver
Add accessory test
Undo change
Improve test
Update README
Ensure default log option `max-size=10m`
#142 Allow to customize container options in accessories
Fix flaky test
Fix tests
More resilient tests
Fix other tests
...
2023-03-24 15:43:17 +01:00
David Heinemeier Hansson
5bbb4aeb58
Merge pull request #131 from calmyournerves/global-logging-config
...
Global logging configuration
2023-03-24 15:36:11 +01:00
David Heinemeier Hansson
6a27a46e5f
Inline default as with other options
2023-03-24 15:34:34 +01:00
David Heinemeier Hansson
b5ccc1fa5d
Merge branch 'main' into global-logging-config
2023-03-24 15:32:41 +01:00
David Heinemeier Hansson
e2e5e18af9
Merge pull request #155 from basecamp/gracefully-shut-down-containers
...
Customizable stop wait time
2023-03-24 15:31:14 +01:00
David Heinemeier Hansson
4fa71834ad
Symbols!
2023-03-24 15:27:11 +01:00
David Heinemeier Hansson
65663ae2ea
Merge branch 'main' into pr/155
...
* main:
Describe purpose rather than elements
Style and ordering
#142 Allow to customize container options in accessories
2023-03-24 15:25:45 +01:00
Samuel Sieg
4044abdde1
Fix tests
2023-03-24 15:25:29 +01:00
Samuel Sieg
bc64a07a95
Merge branch 'main' into global-logging-config
2023-03-24 15:24:06 +01:00
David Heinemeier Hansson
fdb2502216
test stop with custom stop wait time
2023-03-24 15:22:34 +01:00
David Heinemeier Hansson
a9bb8d7376
No need to replicate Docker default
2023-03-24 15:18:18 +01:00
David Heinemeier Hansson
53095a053e
Describe purpose rather than elements
2023-03-24 15:16:38 +01:00
David Heinemeier Hansson
4ab5199853
Style and ordering
2023-03-24 15:16:15 +01:00
David Heinemeier Hansson
348f5844d5
Merge pull request #153 from javierav/feature/accessory-options
...
#142 Allow to customize container options in accessories
2023-03-24 15:09:12 +01:00
Jacopo
9b43a6b23b
Customizable stop wait time
...
Configurable via a global `stop_wait_time` option.
The default is `10` which matches Docker defaults.
2023-03-24 15:04:45 +01:00