Tutorial 01: First Docker PoC Lab (pgEdge Spock)¶
Initialize the Docker lab, boot a two-node pgEdge active-active cluster, run tests, and clean up.
flowchart LR
A["1. Initialize Submodule (make init-env)"] --> B["2. Create .env"]
B --> C["3. Start Stack (make up-pgedge)"]
C --> D["4. Run Setup & Test Suite"]
D --> E["5. Destroy Volumes (make down-pgedge)"]
Prerequisites¶
- Docker Engine and Docker Compose v2
git, GNUmake, and free local ports (Compose Stacks Guide)
Step 1: Initialize Submodule and Environment¶
Expected Output: make stacks prints the 13 available PostgreSQL Compose topologies.
Step 2: Start and Configure pgEdge¶
Expected Output: Both pgedge nodes start with spock replication active.
Step 3: Execute Functional Tests¶
Expected Output: env/multi-db-docker-env/tests/test_pgedge.sh passes all bidirectional insert, update, and conflict checks with exit code 0.
Step 4: Clean Up Containers¶
Continue to Tutorial 02: pgbench & sysbench Lab.