Skip to content

Conversation

@joshrotenberg
Copy link
Collaborator

@joshrotenberg joshrotenberg commented Sep 15, 2025

Problem

The init-cluster workflow was failing because it required authentication for the bootstrap API, which doesn't need auth initially. Also, docker-compose wasn't building from local code for testing.

Solution

  1. Modified init-cluster workflow to create an unauthenticated client for bootstrap operations
  2. Changed docker-compose.yml to build from local Dockerfile for easier testing
  3. Added ARM64 Redis Enterprise image requirement to CLAUDE.md

Changes

  • Updated init_cluster.rs to use unauthenticated client for bootstrap
  • Modified docker-compose.yml to build from local code
  • Added ARM64 image requirements to CLAUDE.md documentation

Testing

# Set required env vars for ARM64 systems
export REDIS_ENTERPRISE_IMAGE=kurtfm/rs-arm:latest
export REDIS_ENTERPRISE_PLATFORM=linux/arm64

# Start containers (builds from local code)
docker compose up -d

# Cluster initializes automatically via workflow
docker logs redis-enterprise-init

# Verify cluster is initialized
export REDIS_ENTERPRISE_URL="https://localhost:9443"
export REDIS_ENTERPRISE_USER="admin@redis.local"
export REDIS_ENTERPRISE_PASSWORD="Redis123!"
export REDIS_ENTERPRISE_INSECURE="true"
cargo run -- api enterprise get /v1/cluster

Verified Working

✅ Bootstrap workflow successfully initializes cluster without authentication
✅ Creates admin user and default database
✅ Cluster accessible with created credentials

The workflow commands are not yet implemented in the CLI (they're commented out).
Updated docker-compose.yml to remove the auto-init container and added manual
initialization instructions instead.
The workflow init-cluster command IS implemented and working. The issue was
using :latest tag which might not have the latest code. Using explicit
v0.5.0 tag ensures the workflow command is available.
- Bootstrap API doesn't require authentication initially
- Modified init-cluster workflow to create unauthenticated client for bootstrap
- Added ARM64 Redis Enterprise image requirement to CLAUDE.md
- Fixed docker-compose.yml to build from local Dockerfile for testing
- Verified workflow successfully initializes cluster with admin user and database
@joshrotenberg joshrotenberg changed the title fix: remove non-existent workflow command from docker-compose.yml fix: init-cluster workflow authentication and docker-compose setup Sep 15, 2025
The init-cluster workflow fix for unauthenticated bootstrap is not in
v0.5.0, so the docker-compose workflow won't work until the next release.
Commented out the init container with instructions for manual initialization
and notes to re-enable after v0.5.1 is published.
@joshrotenberg joshrotenberg merged commit c911cb8 into main Sep 15, 2025
15 checks passed
@joshrotenberg joshrotenberg deleted the fix/docker-compose-workflow branch September 15, 2025 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants