Skip to content

Commit 22abedd

Browse files
fix: add strfry config for CI and mount into container
The strfry image requires a config file and export-config also needs one (chicken-and-egg). Add a checked-in CI config with bind=0.0.0.0 (so the container is reachable from the host) and auth disabled. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 45cd2a5 commit 22abedd

2 files changed

Lines changed: 87 additions & 3 deletions

File tree

.github/strfry-ci.conf

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
##
2+
## strfry config for CI integration tests
3+
##
4+
5+
db = "./strfry-db/"
6+
7+
dbParams {
8+
maxreaders = 256
9+
mapsize = 10995116277760
10+
noReadAhead = false
11+
}
12+
13+
events {
14+
maxEventSize = 65536
15+
rejectEventsNewerThanSeconds = 900
16+
rejectEventsOlderThanSeconds = 94608000
17+
rejectEphemeralEventsOlderThanSeconds = 60
18+
ephemeralEventsLifetimeSeconds = 300
19+
maxNumTags = 2000
20+
maxTagValSize = 1024
21+
}
22+
23+
relay {
24+
# Bind to all interfaces so the container is reachable from the host
25+
bind = "0.0.0.0"
26+
port = 7777
27+
nofiles = 1000000
28+
realIpHeader = ""
29+
30+
auth {
31+
enabled = false
32+
serviceUrl = ""
33+
}
34+
35+
info {
36+
name = "strfry CI"
37+
description = "CI test relay"
38+
pubkey = ""
39+
self = ""
40+
contact = ""
41+
icon = ""
42+
banner = ""
43+
privacy = ""
44+
terms = ""
45+
nips = ""
46+
}
47+
48+
maxWebsocketPayloadSize = 131072
49+
maxReqFilterSize = 200
50+
autoPingSeconds = 55
51+
enableTcpKeepalive = false
52+
queryTimesliceBudgetMicroseconds = 10000
53+
maxFilterLimit = 500
54+
maxFilterLimitCount = 1000000
55+
maxSubsPerConnection = 200
56+
57+
writePolicy {
58+
plugin = ""
59+
timeoutSeconds = 10
60+
}
61+
62+
compression {
63+
enabled = true
64+
slidingWindow = true
65+
}
66+
67+
logging {
68+
dumpInAll = false
69+
dumpInEvents = false
70+
dumpInReqs = false
71+
dbScanPerf = false
72+
invalidEvents = true
73+
}
74+
75+
numThreads {
76+
ingester = 3
77+
reqWorker = 3
78+
reqMonitor = 3
79+
negentropy = 2
80+
}
81+
82+
negentropy {
83+
enabled = true
84+
maxSyncEvents = 1000000
85+
}
86+
}

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,8 @@ jobs:
120120
- name: Start strfry relay
121121
run: |
122122
IMAGE="ghcr.io/hoytech/strfry@sha256:7cf3b97c66a8c3087e16e5d31a3bb8eb92312f08dd969ff3dced9625242ac55f"
123-
docker pull "$IMAGE"
124-
docker run --rm "$IMAGE" export-config > /tmp/strfry.conf
125123
docker run -d --name strfry -p 7777:7777 \
126-
-v /tmp/strfry.conf:/app/strfry.conf:ro \
124+
-v "${{ github.workspace }}/.github/strfry-ci.conf:/app/strfry.conf:ro" \
127125
"$IMAGE" relay
128126
129127
- name: Wait for strfry

0 commit comments

Comments
 (0)