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
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Give IBC more time to detect the login/config dialog on the current headless
# GCE target. The upstream 60s default has been too short during keepalive
# recovery and caused intermittent exit code 1112 before the Gateway became
# API-ready.
RUN sed -i 's/^LoginDialogDisplayTimeout=60$/LoginDialogDisplayTimeout=180/' \
/home/ibgateway/ibc/config.ini \
/home/ibgateway/ibc/config.ini.tmpl

COPY --chown=1000:1000 ./container_overrides/run.sh /home/ibgateway/scripts/run.sh
RUN chmod a+x /home/ibgateway/scripts/run.sh

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ This repository also overrides the upstream headless startup script so Gateway r
upstream `16bpp` display frequently led to black VNC output and intermittent IBC window
detection failures before login completed.

The image also raises `LoginDialogDisplayTimeout` from `60` to `180` seconds in both
`/home/ibgateway/ibc/config.ini` and `config.ini.tmpl`. Keepalive recovery on the current
GCE target has occasionally needed longer than the upstream default before IBC can detect
the login/config dialog and drive Gateway back to an API-ready state.

For direct `docker compose` usage outside GitHub Actions, `ACCEPT_API_FROM_IP` must still be set explicitly in `.env`; there is no longer a silent default CIDR.

These GitHub secrets are specific to this repository's deployment flow. They are not intended to be global secrets shared by every quant repository.
Expand Down
2 changes: 2 additions & 0 deletions tests/test_docker_compose_ports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ run_override="$repo_dir/container_overrides/run.sh"

grep -Fq 'pip3 install pyotp ib_insync --break-system-packages' "$dockerfile"
grep -Fq 'FROM gnzsnz/ib-gateway:10.37.1q' "$dockerfile"
grep -Fq "LoginDialogDisplayTimeout=60$/LoginDialogDisplayTimeout=180" "$dockerfile"
grep -Fq '/home/ibgateway/ibc/config.ini.tmpl' "$dockerfile"
grep -Fq 'COPY --chown=1000:1000 ./container_overrides/run.sh /home/ibgateway/scripts/run.sh' "$dockerfile"
grep -Fq 'chmod a+x /home/ibgateway/scripts/run.sh' "$dockerfile"
grep -Fq 'libgtk-3-0' "$dockerfile"
Expand Down