| # MozDef Online Setup Progress Tracker |
|
|
| ## Setup Started: $(date) |
|
|
| ### Milestone Status |
|
|
| #### ✅ Milestone 1: Prerequisites - COMPLETE |
| - [x] Docker installed (version 28.2.2) |
| - [x] Docker Compose installed (version v5.1.0) |
| - [x] Disk space checked (46GB free - sufficient) |
| - [x] Architecture verified (x86_64) |
| - [x] MozDef source code present in /root/MozDef |
| |
| #### 🔄 Milestone 2: Build Docker Images - IN PROGRESS |
| - [x] Fixed CentOS 7 repository issue (using vault.centos.org) |
| - [ ] Building mozdef_base image |
| - [ ] Building infrastructure images (elasticsearch, rabbitmq, mongodb, kibana, nginx) |
| - [ ] Building backend images (loginput, mq_worker, rest, alerts, alertactions, cron) |
| - [ ] Building frontend image (meteor) |
| |
| **Current Status:** Build running in background (check with: `tail -f /tmp/mozdef-build-full.log`) |
| |
| #### ⏳ Milestone 3: Test Complete Setup - PENDING |
| - [ ] Start all services (`make run`) |
| - [ ] Verify infrastructure services (elasticsearch, rabbitmq, mongodb) |
| - [ ] Verify backend services (loginput, rest) |
| - [ ] Verify frontend services (meteor, kibana) |
| - [ ] Send test event |
| - [ ] Verify event in Elasticsearch |
| - [ ] Verify package isolation (Node 8.11.4, Python 3.6) |
| |
| #### ⏳ Milestone 4: Package for Offline - PENDING |
| - [ ] Stop services |
| - [ ] Save Docker images |
| - [ ] Download Python packages |
| - [ ] Download Node.js packages |
| - [ ] Package source code |
| - [ ] Create final package archive |
| |
| --- |
| |
| ## Quick Commands |
| |
| ### Check Build Progress |
| ```bash |
| # View build log |
| tail -f /tmp/mozdef-build-full.log |
| |
| # Check if images are being built |
| docker images | grep mozdef |
| |
| # Check build process |
| ps aux | grep "make build" |
| ``` |
| |
| ### Check Build Completion |
| ```bash |
| # Count built images (should be 15+ when complete) |
| docker images | grep mozdef | wc -l |
| |
| # Expected images: |
| # mozdef/mozdef_base |
| # mozdef/mozdef_elasticsearch |
| # mozdef/mozdef_rabbitmq |
| # mozdef/mozdef_mongodb |
| # mozdef/mozdef_kibana |
| # mozdef/mozdef_nginx |
| # mozdef/mozdef_bootstrap |
| # mozdef/mozdef_loginput |
| # mozdef/mozdef_mq_worker |
| # mozdef/mozdef_rest |
| # mozdef/mozdef_meteor |
| # mozdef/mozdef_alerts |
| # mozdef/mozdef_alertactions |
| # mozdef/mozdef_cron |
| # mozdef/mozdef_syslog |
| ``` |
| |
| ### Next Steps After Build Completes |
| 1. Verify all images built: `docker images | grep mozdef` |
| 2. Start services: `cd /root/MozDef && make run` |
| 3. Wait 5-8 minutes for startup |
| 4. Test endpoints (see Milestone 3 checklist) |
| 5. Send test event and verify |
| 6. Stop services: `make stop` |
| 7. Package for offline (see Milestone 4) |
| |
| --- |
| |
| ## Notes |
| |
| - **Build Time:** Expected 15-30 minutes |
| - **Repository Fix:** Updated CentOS 7 repos to use vault.centos.org (EOL workaround) |
| - **Isolation:** Docker provides complete OS isolation - Node 8.11.4 and Python 3.6 are containerized |
| |
| --- |
| |
| ## Troubleshooting |
| |
| ### If Build Fails |
| ```bash |
| # Check build log |
| cat /tmp/mozdef-build-full.log | grep -i error |
| |
| # Check specific image build |
| docker-compose -f docker/compose/docker-compose.yml -p mozdef build mozdef_base |
|
|
| # Clean and retry |
| cd /root/MozDef |
| make clean |
| make build |
| ``` |
| |
| ### If Repository Issues Persist |
| The Dockerfile has been updated to use vault.centos.org. If issues continue, may need to: |
| - Use pre-built images: `make build BUILD_MODE=pull` |
| - Or use alternative base image |
| |
| --- |
| |
| **Last Updated:** $(date) |
| |