Expected Behaviour
const container = new RedisContainer('redis/redis-stack-server:7.2.0-v12')
This will fail because of the redis-server command.
|
this.withCommand([ |
|
"redis-server", |
|
...(this.password ? [`--requirepass "${this.password}"`] : []), |
|
...(this.persistenceVolume ? ["--save 1 1 ", "--appendonly yes"] : []), |
As you can see from the docker images, redis uses CMD [redis-server] but redis-stack-server uses a custom entrypoint script. So I'm happy to open a PR, basically based on image string passed, we'll need to change how container.start() is handled (It's messy but not sure how else to solve it when you have 2 Redis images now!)
Expected Behaviour
This will fail because of the
redis-servercommand.testcontainers-node/packages/modules/redis/src/redis-container.ts
Lines 36 to 39 in 9f7fd4e
As you can see from the docker images,
redisusesCMD [redis-server]butredis-stack-serveruses a custom entrypoint script. So I'm happy to open a PR, basically based on image string passed, we'll need to change howcontainer.start()is handled (It's messy but not sure how else to solve it when you have 2 Redis images now!)