Skip to content

Commit

Permalink
Create file for Docker Compose
Browse files Browse the repository at this point in the history
This is for manual testing.
  • Loading branch information
tobyhs committed Sep 23, 2024
1 parent e84dc72 commit e85f6d2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: redisflagd

services:
redis:
image: redis:7-alpine
command: /etc/redis.conf
volumes:
- type: bind
source: ./compose/redis.conf
target: /etc/redis.conf
read_only: true

redisflagd:
image: redisflagd:latest
# The image should be built with `./gradlew dockerBuildNative`
pull_policy: never
depends_on:
- redis
environment:
REDIS_URI: redis://redis

flagd:
image: ghcr.io/open-feature/flagd:v0.11.2
command: start --uri grpc://redisflagd:50051
ports:
- "8013:8013"
depends_on:
- redisflagd
1 change: 1 addition & 0 deletions compose/redis.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
notify-keyspace-events Kh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class FlagSyncServiceIntegrationTest : TestPropertyProvider, DescribeSpec({
}
}
}) {
private val redisContainer: RedisContainer = RedisContainer(RedisContainer.DEFAULT_IMAGE_NAME.withTag("7.0-alpine"))
private val redisContainer: RedisContainer = RedisContainer(RedisContainer.DEFAULT_IMAGE_NAME.withTag("7-alpine"))
.withKeyspaceNotifications()

@Inject
Expand Down

0 comments on commit e85f6d2

Please sign in to comment.