-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DoH issues when running inside Docker, works fine from a native build (Ubuntu 20.04 LTS) #92
Comments
Hi @TerryOtt can you please try again with docker tag |
I am seeing the same issue, however if I use the tag suggested in the comment above it still doesnt work - did you ever identify the source of this issue? |
Nope, no fix I am aware of.On 1 Oct 2023, at 06:49, Kota ***@***.***> wrote:
↑ @TerryOtt
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I gave up to use docker... |
I don't know why but after removing FROM debian:bullseye-slim AS build
ENV BUILD_DEPS "g++ cmake make libldns-dev libnghttp2-dev libuv1-dev libgnutls28-dev pkgconf"
ENV DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get install --yes --no-install-recommends ${BUILD_DEPS}
COPY . /src
RUN \
mkdir /tmp/build && \
cd /tmp/build && \
- cmake -DDOH_ENABLE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo /src && \
+ cmake -DDOH_ENABLE=ON /src && \
make all
FROM debian:bullseye-slim AS runtime
ENV RUNTIME_DEPS "libldns3 libuv1 nghttp2"
RUN \
apt-get update && \
apt-get install --yes --no-install-recommends ${RUNTIME_DEPS} && \
rm -rf /var/lib/apt
COPY --from=build /tmp/build/flame /usr/local/bin/flame
ENTRYPOINT [ "/usr/local/bin/flame" ]
execute this command on M1 Mac. docker run -it --network=host ns1labs/flame -c 1 -d 250 -q 1 -l 3 -r www.example.com -T AAAA -P doh -M POST 1.1.1.1/dns-query
binding traffic generators to 0.0.0.0
flaming target(s) [1.1.1.1] on port 443 with 1 concurrent generators, each sending 1 queries every 250ms on protocol doh
query generator [static] contains 1 record(s)
0.996346s: send: 3, avg send: 3, recv: 3, avg recv: 3, min/avg/max resp: 18.197/73.0057/177.524ms, in flight: 1, timeouts: 0
1.99703s: send: 2, avg send: 2, recv: 1, avg recv: 2, min/avg/max resp: 28.3297/28.3297/28.3297ms, in flight: 1, timeouts: 0
2.9964s: send: 0, avg send: 2, recv: 0, avg recv: 2, min/avg/max resp: 0/nan/0ms, in flight: 1, timeouts: 0
stopping, waiting up to 3s for in flight to finish...
------
run id : ffffdd553ae8
run start : 2023-10-03T11:39:17Z
runtime : 5.9967 s
total sent : 5
total rcvd : 4
min resp : 18.197 ms
avg resp : nan ms
max resp : 177.524 ms
avg r qps : 2
avg s qps : 2
avg pkt : 44 bytes
tcp conn. : 5
timeouts : 1 (20%)
bad recv : 0
net errors : 0
responses :
NOERROR: 4 Reference |
I tried the following build pattern
but when I used According to this, the meaning of these build types are like this:
So optimization maybe the reason why we can't send DoH query using Docker. |
@weyrick |
Thanks @yagikota. We wouldn't want the default build to be Debug though - it will greatly slow down traffic generation. I wonder if moving to |
OK! Do you have any reason to use |
No, just that if optimization is making it fail (which is never supposed to happen) then perhaps mutating the versions of the compiler and/or dependencies will fix the mystery. |
I'll deal with this problem this weekend. |
Get the following when I run Flamethrower from inside Docker on Ubuntu 20.04 LTS:
When I build a brand new Ubuntu 20.04 LTS VM and install with:
Suddenly, the same command works:
The text was updated successfully, but these errors were encountered: