David Heinemeier Hansson
01d684746e
Merge pull request #100 from stepbeekio/feature/multiple-traefik-entrypoints
...
Added the docker options override configuration for traefik
2023-03-23 14:28:40 +01:00
David Heinemeier Hansson
8b755c6973
Style
2023-03-23 14:24:34 +01:00
David Heinemeier Hansson
9a909ba7eb
config.traefik is already nil safe
2023-03-23 14:06:15 +01:00
David Heinemeier Hansson
790be0f5f3
Style
2023-03-21 12:42:04 +01:00
David Heinemeier Hansson
49d60a045a
Style
2023-03-21 12:41:28 +01:00
Samuel Sieg
491777221f
Fix destination label filter
2023-03-16 16:15:31 +01:00
Stephen van Beek
4c542930c5
Allow arbitrary docker options for traefik
2023-03-15 15:37:10 +00:00
Stephen van Beek
9843c5e1ce
Fixed typos
2023-03-14 20:13:13 +00:00
Stephen van Beek
2db1bfde00
Added volume configuration in response to issue coments
2023-03-14 19:59:19 +00:00
Stephen van Beek
2cea12c56b
Modified in response to PR comments
2023-03-14 19:59:19 +00:00
Stephen van Beek
43a1b42f8c
Added the additional_ports configuration
...
ISSUE: https://github.com/mrsked/mrsk/issues/98
2023-03-14 19:59:19 +00:00
Tobias Bühlmann
3ca5bc50b6
Properly pass traefik command options
...
Traefik command options need to be passed as `--key=value`, not `--key value`.
2023-03-14 15:04:33 +01:00
David Heinemeier Hansson
20733a4493
Merge pull request #102 from moomerman/cmd-options-for-healthcheck
...
Use custom web options for healthcheck
2023-03-13 15:12:25 +01:00
David Heinemeier Hansson
c1c26a154d
Merge pull request #104 from moomerman/add-container-name-env-var
...
Add container name env var for containers
2023-03-13 15:10:02 +01:00
Richard Taylor
bb241dea43
Add container name env var for containers
...
Because the container name is generated it isn't possible to
determine this inside the container.
This adds the MRSK_CONTAINER_NAME env var when running the
container so it can be read by the service running inside the
container.
2023-03-11 10:14:41 +00:00
Chris Lowder
41a5cb2a04
Avoid [ActiveSupport::OrderedOptions#dig]
...
The implementation has been updated upstream[^1] to expect symbolized
keys. MRSK relies heavily on the fact that nested keys are strings, so
we're removing existing uses of `#dig`.
[^1]: 5c15b586aa
2023-03-10 19:45:35 +00:00
Richard Taylor
e5c5e89232
Use custom web options for healthcheck
...
If the web role has custom options, ensure these are used for the
healthcheck.
2023-03-10 15:55:04 +00:00
David Heinemeier Hansson
3026a92c98
Merge pull request #71 from tbuehlmann/destination-awareness
...
Destination aware container names
2023-03-09 13:25:49 +00:00
David Heinemeier Hansson
ab7c6c6540
Use compact.join strategy here too
2023-03-09 14:24:19 +01:00
David Heinemeier Hansson
d3f07d6313
Allow custom options per role
2023-03-09 11:09:19 +01:00
David Heinemeier Hansson
98a14f6173
Add cmd args for roles
2023-03-09 11:01:06 +01:00
David Heinemeier Hansson
487fcd4cea
Only used for traefik
2023-03-09 11:00:52 +01:00
David Heinemeier Hansson
c8badea6dd
Extract argumentization for cmd and add proper escaping
2023-03-09 10:54:53 +01:00
David Heinemeier Hansson
5a3ea24c6b
Merge pull request #77 from calmyournerves/dockerfile-context-build-options
...
Allow setting the Dockerfile and the Docker build context when building
2023-03-09 08:32:57 +00:00
David Heinemeier Hansson
0431bb5f97
Extract named constant and method
2023-03-09 09:29:56 +01:00
Samuel Sieg
2b95cdf8d0
Merge branch 'main' into dockerfile-context-build-options
2023-03-09 08:54:23 +01:00
Rasmus
eacdf34540
fix: mrsk deploy fails when traefik config is empty
2023-03-08 18:55:04 +01:00
David Heinemeier Hansson
7f0e6f1f13
Merge pull request #85 from clowder/traefik-host-port
...
Customizable Traefik host port
2023-03-08 17:06:51 +00:00
David Heinemeier Hansson
b809a971e2
One purpose per method
2023-03-08 17:43:23 +01:00
Rasmus
f531874be4
Allow registry username to be a reference to secret
2023-03-07 10:13:49 +01:00
Tobias Bühlmann
8b913068de
Add destination to healthcheck containers names
2023-03-06 16:54:13 +01:00
Chris Lowder
963b96ff62
Customizable Traefik host port
...
Allow users to free up port 80 on the host machine, without losing
Traefik's Docker routing super-powers.
2023-03-05 13:13:22 +00:00
Samuel Sieg
ff88ee0b22
Allow setting the build context used for building
2023-03-04 10:59:52 +01:00
Samuel Sieg
b6934b0f41
Allow configuring the Dockerfile used for building
2023-03-04 10:59:23 +01:00
Tobias Bühlmann
170562c7e7
Let App be aware of destination
2023-03-03 15:29:00 +01:00
David Heinemeier Hansson
371f98d67f
Start before stopping and longer timeouts
2023-02-22 19:04:23 +01:00
David Heinemeier Hansson
42b343436d
Remove images of the same name before pulling a new one
...
Or you'll end up with untagged dupes.
2023-02-20 18:06:16 +01:00
David Heinemeier Hansson
1ccf679ca9
Switch to ruby-based retry
...
Retry connection errors with backoff
2023-02-20 17:42:55 +01:00
David Heinemeier Hansson
5898fdd8f4
Expand arguments to be more self-explanatory in logs
2023-02-19 18:11:06 +01:00
David Heinemeier Hansson
28be8dc0f0
Encourage registry password from ENV
2023-02-19 17:42:30 +01:00
David Heinemeier Hansson
e5c4cb0344
Retry healthcheck for up to 10 seconds (in case container wasnt ready)
2023-02-19 15:34:36 +01:00
David Heinemeier Hansson
8e918b1906
Output logs when healthcheck fails
2023-02-19 09:33:49 +01:00
David Heinemeier Hansson
7f1191bf59
Change broadcast cmd to just take an argument instead of STDIN
...
Simpler
2023-02-18 18:22:46 +01:00
David Heinemeier Hansson
1973f55c58
Don't include recorded_at with broadcast line
...
Receiving end will already add that
2023-02-18 16:33:12 +01:00
David Heinemeier Hansson
933ece35ab
Add healthcheck before deploy
2023-02-18 16:22:08 +01:00
David Heinemeier Hansson
2e06bf59a4
Protect against rolling back to a bad version
2023-02-18 14:33:47 +01:00
David Heinemeier Hansson
fb9357b5ba
Add audit broadcasts
2023-02-18 11:36:30 +01:00
David Heinemeier Hansson
5c93642f2a
Prepare for custom pruning
2023-02-15 20:34:08 +01:00
David Heinemeier Hansson
8ec94f105c
Tag images with service label so we can prune exclusively
2023-02-15 13:41:03 +01:00
David Heinemeier Hansson
90f4212a68
Stray copypasta
2023-02-15 13:39:53 +01:00