Skip to content

Commit cb66b62

Browse files
committed
"Remove rules update logic from codebase and integrate static rules cloning into Dockerfile."
1 parent b42d60e commit cb66b62

3 files changed

Lines changed: 1 addition & 61 deletions

File tree

correlation/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ RUN wget -O /app/locations-en.csv https://cdn.utmstack.com/geoip/locations-en.cs
1717
RUN wget -O /app/ip_blocklist.list https://intelligence.threatwinds.com/feeds/public/ip/cumulative.list
1818
RUN wget -O /app/domain_blocklist.list https://intelligence.threatwinds.com/feeds/public/domain/cumulative.list
1919
RUN wget -O /app/hostname_blocklist.list https://intelligence.threatwinds.com/feeds/public/hostname/cumulative.list
20-
20+
RUN mkdir -p /app/rulesets && git clone --depth 1 https://github.com/utmstack/rules.git /app/rulesets/system
2121
ENTRYPOINT [ "/run.sh" ]

correlation/main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ func main() {
3535
geo.Load()
3636
ti.Load()
3737

38-
ready := make(chan bool, 1)
39-
go rules.Update(ready)
40-
<-ready
41-
4238
rulesL := rules.GetRules()
4339
for _, rule := range rulesL {
4440
go correlation.Finder(rule)

correlation/rules/update.go

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)