File size: 3,256 Bytes
7c89ed7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# 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)