diff --git a/Dockerfile b/Dockerfile index c4325a9..73b610b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/* diff --git a/tests/test_docker_compose_ports.sh b/tests/test_docker_compose_ports.sh index c11b6d1..0d0e613 100644 --- a/tests/test_docker_compose_ports.sh +++ b/tests/test_docker_compose_ports.sh @@ -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"