Nick Hammond
95b606a427
Catch up with main
2025-01-20 09:53:16 -07:00
Donal McBreen
2c9bba3f88
Merge branch 'main' into feature/docker-build-cloud
2025-01-17 15:49:28 +00:00
Donal McBreen
5bd9bc8576
Merge pull request #1320 from ShPakvel/add_optional_accessory_registry
...
[Feature] Registry for accessory
2025-01-17 15:18:50 +00:00
Matthew Jones
b420b2613d
Adds support for Docker Build Cloud
2025-01-17 07:14:31 -07:00
Donal McBreen
2cdca4596c
Create but don't run the assets container
...
We don't need to run the assets container to copy the assets out,
instead we can just create, copy and remove.
2025-01-16 16:28:02 +00:00
Pavel Shpak
b5aee11a40
[Feature] Add optional accessory registry.
...
Add test cases to cover new option.
2024-12-22 02:50:53 +02:00
Donal McBreen
fbc4515888
Merge pull request #906 from aliismayilov/detached-run
...
Allow running detached app commands and follow logs by container ID
2024-12-02 10:22:45 +00:00
Donal McBreen
99829092b3
Merge pull request #1229 from matjack1/use-ssh-keys-when-executing-commands
...
[FIX] - Make kamal use ssh keys from config when performing commands
2024-12-02 09:59:03 +00:00
Nick Hammond
9f6660dfbf
Catch up with main
2024-11-26 07:36:54 -07:00
Igor Alexandrov
f52826b2d6
Updated accessory proxy to support hosts option
2024-11-21 22:23:56 +04:00
Igor Alexandrov
4d8241ebab
Fixed kamal-proxy remove command
2024-11-21 22:23:56 +04:00
Igor Alexandrov
86657b0172
Fixed kamal-proxy remove command
2024-11-21 22:23:56 +04:00
Igor Alexandrov
aa2906086a
Added host to the expected accessory deploy command result
2024-11-21 22:23:56 +04:00
Igor Alexandrov
f4b7c886fb
Added tests for accessory deploy and remove commands
2024-11-21 22:23:56 +04:00
Ali Ismayilov
75b44cd328
Capture logs for specific container_id
2024-11-21 18:54:34 +01:00
Ali Ismayilov
183fe9e06e
Follow logs of a specific container
2024-11-21 18:05:56 +01:00
Ali Ismayilov
1da882bb01
Enable logging on app exec new containers
2024-11-21 18:05:55 +01:00
Ali Ismayilov
dbe0c3a7f8
Allow running detached app commands
...
this is useful for long running rake tasks or scripts
that can be run without having to keep open connection to the server.
Example:
```
kamal app exec 'bin/rails db:backfill_task' --detach
```
2024-11-21 18:05:55 +01:00
Federico
3fa9cd5a41
Make kamal use ssh keys from config when performing commands
2024-11-19 11:38:42 +01:00
Matthew Jones
c970ceebe3
Adds support for SBOM attestations
2024-11-18 13:01:53 -07:00
Donal McBreen
e9ba92386c
Filter correctly for empty destinations
...
An empty destination should only filter container with empty
destination, not pick up all containers.
Fixes: https://github.com/basecamp/kamal/issues/1184
2024-11-04 11:05:24 +00:00
Nick Hammond
9ac3d57b29
Add default creation time to now for image
2024-10-30 06:25:12 -07:00
Nick Hammond
cde5c7abbf
Catch up with main
2024-10-28 08:26:40 -07:00
Donal McBreen
57d582e3bc
Merge pull request #972 from kohkimakimoto/dev-provenance-flag
...
Add provenance option
2024-10-23 14:07:19 +01:00
Donal McBreen
bd8c35b194
Merge pull request #1020 from igor-alexandrov/network-args
...
Allow to override network
2024-10-23 12:22:36 +01:00
Nick Hammond
4822a9d950
Merge branch 'basecamp:main' into buildpacks
2024-10-14 16:58:16 -07:00
Donal McBreen
493c5690f1
Merge pull request #1066 from davidstosik/v2.1.1/path-space-fix
...
Support spaces in git repository path
2024-10-10 10:17:00 -04:00
Igor Alexandrov
da2a543cbc
Reverted network arguments everywhere except to accessory config
2024-10-09 10:00:49 +04:00
Igor Alexandrov
08dacd2745
Added command tests
2024-10-09 09:53:25 +04:00
David Stosik
8d6d7ffed0
s/refute_match/assert_no_match/
2024-10-08 07:10:08 +09:00
Donal McBreen
67ce1912f7
Default to keeping 10m of proxy logs
...
Match the defaults for the application containers of 10m of logs.
Allow them to be altered with the proxy boot_config set command.
2024-10-07 16:20:40 -04:00
David Stosik
f45c754e53
Remove unnecessary method
2024-10-07 15:46:04 +09:00
David Stosik
d40057286d
Escape more paths and write a test
2024-10-07 15:46:04 +09:00
Donal McBreen
1e9c9e9103
Skip setting the proxy flag when ssl is false
...
Fixes: https://github.com/basecamp/kamal/issues/1037
2024-10-06 13:22:43 -04:00
Nick Hammond
89b44153bb
Ensure build args and secrets are used with pack
2024-10-02 09:55:57 -07:00
Nick Hammond
c60124188f
Merge branch 'basecamp:main' into buildpacks
2024-10-01 13:59:22 -07:00
Donal McBreen
641e9056b3
Use = in kamal-proxy deploy command args
...
`=` is required for boolean values and works for all values.
2024-10-01 15:42:12 +01:00
Donal McBreen
b4bcf35f78
Merge pull request #1000 from kpumuk/hosts
...
Allow specifying multiple hosts for kamal-proxy via an array
2024-09-30 10:26:15 -04:00
Dmytro Shteflyuk
e75365c8c6
Simplified deploy options for kamal-proxy as it supports multiple --host arguments
2024-09-30 08:09:05 -04:00
Donal McBreen
28a02262df
Merge pull request #988 from igor-alexandrov/kamal-proxy-remove-no-target
...
Fixed kamal-proxy remove command
2024-09-30 04:18:12 -04:00
Dmytro Shteflyuk
1d48a0fb0a
Allow specifying multiple hosts for kamal proxy via an array
2024-09-29 20:43:44 -04:00
Igor Alexandrov
dadac999d7
Fixed kamal-proxy remove call
2024-09-27 17:45:35 +04:00
Nick Hammond
71741742ff
Merge branch 'basecamp:main' into buildpacks
2024-09-27 00:19:45 -04:00
Kohki Makimoto
92d82dd1a7
test: If the provenance is false, output "--provenance false".
2024-09-26 05:50:51 +09:00
Donal McBreen
f6851048a6
Proxy boot config
...
Add commands for managing proxy boot config. Since the proxy can be
shared by multiple applications, the configuration doesn't belong in
`config/deploy.yml`.
Instead you can set the config with:
```
Usage:
kamal proxy boot_config <set|get|clear>
Options:
[--publish], [--no-publish], [--skip-publish] # Publish the proxy ports on the host
# Default: true
[--http-port=N] # HTTP port to publish on the host
# Default: 80
[--https-port=N] # HTTPS port to publish on the host
# Default: 443
[--docker-options=option=value option2=value2] # Docker options to pass to the proxy container
```
By default we boot the proxy with `--publish 80:80 --publish 443:443`.
You can stop it from publishing ports, specify different ports and pass
other docker options.
The config is stored in `.kamal/proxy/options` as arguments to be passed
verbatim to docker run.
Where someone wants to set the options in their application they can do
that by calling `kamal proxy boot_config set` in a pre-deploy hook.
There's an example in the integration tests showing how to use this to
front kamal-proxy with Traefik, using an accessory.
2024-09-25 15:15:26 -04:00
Kohki Makimoto
c17bdba61c
add tests
2024-09-25 23:50:05 +09:00
Nick Hammond
85a5a09aac
Merge branch 'basecamp:main' into buildpacks
2024-09-22 08:47:08 -07:00
David Heinemeier Hansson
eabd57350c
Fix tests
2024-09-20 08:33:14 -07:00
David Heinemeier Hansson
487f6f5f53
Fix excess spacing
2024-09-20 08:31:56 -07:00
David Heinemeier Hansson
8693e968c1
Timestamps now default on for app logs too
2024-09-20 08:17:19 -07:00