Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.git
.github
test-data
*.md
LICENSE
Makefile
test.sh
.readme
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM debian:bookworm-slim

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y --no-install-recommends \
wireshark \
tshark \
xvfb \
x11vnc \
novnc \
websockify \
openbox \
procps \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN mkdir -p /root/.local/lib/wireshark/plugins

COPY libp2p-common.lua libp2p-identify.lua libp2p-gossipsub.lua eth-consensus.lua \
/root/.local/lib/wireshark/plugins/

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

EXPOSE 3000

ENTRYPOINT ["/entrypoint.sh"]
21 changes: 21 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
set -e

DISPLAY=:1
export DISPLAY

Xvfb $DISPLAY -screen 0 1920x1080x24 &
sleep 1

openbox &
wireshark &

x11vnc -display $DISPLAY -forever -nopw -shared -rfbport 5900 &
sleep 1

cat > /usr/share/novnc/index.html <<'EOF'
<!DOCTYPE html>
<html><head><meta http-equiv="refresh" content="0;url=vnc_lite.html?autoconnect=true&resize=scale"></head></html>
EOF

websockify --web /usr/share/novnc 3000 localhost:5900