Skip to content
Merged
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
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ FROM gnzsnz/ib-gateway:latest

USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends python3-pip xdotool && \
apt-get install -y --no-install-recommends \
# IB Gateway 10.45.x starts a JavaFX thread that now requires GTK runtime libs.
libcanberra-gtk3-module \
libglib2.0-0 \
libgtk-3-0 \
libxtst6 \
python3-pip \
xdotool && \
pip3 install pyotp ib_insync --break-system-packages && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
Expand Down
3 changes: 3 additions & 0 deletions tests/test_docker_compose_ports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ compose_file="$repo_dir/docker-compose.yml"
dockerfile="$repo_dir/Dockerfile"

grep -Fq 'pip3 install pyotp ib_insync --break-system-packages' "$dockerfile"
grep -Fq 'libgtk-3-0' "$dockerfile"
grep -Fq 'libglib2.0-0' "$dockerfile"
grep -Fq 'libxtst6' "$dockerfile"

grep -Fq ' - "4001:4003"' "$compose_file"
grep -Fq ' - "4002:4004"' "$compose_file"
Expand Down