Consinder adding WithConfBindMount method for configured conf directory for Redis resource
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
The Redis container image supports setting a custom conf directory so that a custom `redis.conf` file can be used to initialize the Redis server. We should consider adding an extension method to make it easy to configure this, e.g.:
```csharp
///
/// Adds a bind mount for the conf folder to a Redis container resource.
///
/// The resource builder.
/// The source directory on the host containing the redis.conf file to mount into the container.
/// The .
public static IResourceBuilder WithConfBindMount(this IResourceBuilder builder, string source)
=> builder.WithBindMount(source, "/usr/local/etc/redis", isReadOnly: false)
.WithArgs("/usr/local/etc/redis/redis.conf");
```
Contributor guide
Assessment
This issue has not been assessed yet.