Skip to content

Commit 904a506

Browse files
fix(docker): update Docker documentation and enable enterprise workflow service (#275)
* fix(docker): update Docker documentation and enable enterprise workflow service - Update all Docker image references from ghcr.io to Docker Hub (joshrotenberg/redisctl) - Enable redis-enterprise-init service in docker-compose.yml for automatic cluster initialization - Remove references to non-existent Makefile commands in README - Remove references to unavailable Apple Silicon Enterprise images - Simplify Docker documentation by removing non-existent profiles and docker-compose.dev.yml - Update network names and service names to match actual configuration - Provide accurate Docker Compose commands for local development * fix(docker): remove obsolete version attribute from docker-compose.yml * fix: replace internal 'radar' references with 'redisctl' in network names - Changed network name from 'radar-network' to 'redisctl-network' in docker-compose.yml - Updated all Docker network references in documentation to use 'redisctl_redisctl-network' - Removed all references to internal project naming
1 parent 1c6f6dd commit 904a506

File tree

3 files changed

+146
-209
lines changed

3 files changed

+146
-209
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,20 @@ redisctl cloud database create --data @database.json --wait
109109
docker run --rm \
110110
-e REDIS_CLOUD_API_KEY \
111111
-e REDIS_CLOUD_API_SECRET \
112-
ghcr.io/joshrotenberg/redisctl:latest \
112+
joshrotenberg/redisctl:latest \
113113
cloud subscription list
114114

115115
# Use local config file
116116
docker run --rm \
117117
-v ~/.config/redisctl:/root/.config/redisctl:ro \
118-
ghcr.io/joshrotenberg/redisctl:latest \
118+
joshrotenberg/redisctl:latest \
119119
database list
120120

121121
# Development environment with test cluster
122-
make docker-up # Start Redis Enterprise cluster
123-
make docker-cli # Interactive CLI session
124-
make docker-test # Run test suite
125-
make docker-down # Clean up
122+
docker compose up -d # Start Redis Enterprise cluster
123+
docker compose --profile cli up cli # Interactive CLI session
124+
docker compose --profile test up test # Run test suite
125+
docker compose down -v # Clean up
126126
```
127127

128128
See the [Docker documentation](https://joshrotenberg.com/redisctl/getting-started/docker.html) for advanced usage.

docker-compose.yml

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.8"
2-
31
services:
42
redis-enterprise:
53
image: ${REDIS_ENTERPRISE_IMAGE:-redislabs/redis:latest}
@@ -14,28 +12,39 @@ services:
1412
- "9443:9443"
1513
- "8443:8443"
1614
networks:
17-
- radar-network
15+
- redisctl-network
1816
healthcheck:
1917
test: ["CMD", "curl", "-f", "-k", "https://localhost:9443/v1/bootstrap"]
2018
interval: 5s
2119
timeout: 3s
2220
retries: 5
2321
start_period: 10s
2422

25-
# Once we have a published Docker image, we can use this service to auto-initialize
26-
# redis-enterprise-init:
27-
# image: ghcr.io/joshrotenberg/redisctl:latest
28-
# container_name: redis-enterprise-init
29-
# depends_on:
30-
# redis-enterprise:
31-
# condition: service_healthy
32-
# networks:
33-
# - radar-network
34-
# environment:
35-
# REDIS_ENTERPRISE_URL: "https://redis-enterprise:9443"
36-
# REDIS_ENTERPRISE_INSECURE: "true"
37-
# command: ["enterprise", "workflow", "init-cluster", "--name", "docker-cluster", "--username", "[email protected]", "--password", "Redis123!"]
23+
# Auto-initialize Redis Enterprise cluster using our workflow
24+
redis-enterprise-init:
25+
image: joshrotenberg/redisctl:latest
26+
container_name: redis-enterprise-init
27+
depends_on:
28+
redis-enterprise:
29+
condition: service_healthy
30+
networks:
31+
- redisctl-network
32+
environment:
33+
REDIS_ENTERPRISE_URL: "https://redis-enterprise:9443"
34+
REDIS_ENTERPRISE_INSECURE: "true"
35+
command:
36+
[
37+
"enterprise",
38+
"workflow",
39+
"init-cluster",
40+
"--name",
41+
"docker-cluster",
42+
"--username",
43+
44+
"--password",
45+
"Redis123!",
46+
]
3847

3948
networks:
40-
radar-network:
49+
redisctl-network:
4150
driver: bridge

0 commit comments

Comments
 (0)