Skip to content

Commit e70d254

Browse files
github-actions[bot]github-actions
andauthored
Update stable to 10.37.1m (#332)
Co-authored-by: github-actions <[email protected]>
1 parent 647aefc commit e70d254

File tree

8 files changed

+65
-13
lines changed

8 files changed

+65
-13
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ Images are provided for [IB gateway][1] and [TWS][2]. With the following tags:
3838
| Image| Channel | IB Gateway Version | IBC Version | Docker Tags |
3939
| --- | -------- | ------------------- | ---------------- | ---------------------------------------------- |
4040
| [ib-gateway][1] | `latest` | `10.41.1d` | `3.23.0` | `latest` `10.41` `10.41.1d` |
41-
| [ib-gateway][1] |`stable` | `10.37.1l` | `3.23.0` | `stable` `10.37` `10.37.1l` |
41+
| [ib-gateway][1] |`stable` | `10.37.1m` | `3.23.0` | `stable` `10.37` `10.37.1m` |
4242
| [tws-rdesktop][2] | `latest` | `10.41.1d` | `3.23.0` | `latest` `10.41` `10.41.1d` |
43-
| [tws-rdesktop][2] |`stable` | `10.37.1l` | `3.23.0` | `stable` `10.37` `10.37.1l` |
43+
| [tws-rdesktop][2] |`stable` | `10.37.1m` | `3.23.0` | `stable` `10.37` `10.37.1m` |
4444

4545
All tags are available in the container repository for [ib-gateway][1] and
4646
[tws-rdesktop][2]. IB Gateway and TWS share the same version numbers and tags.
@@ -112,7 +112,7 @@ services:
112112

113113
```
114114

115-
Create an .env on root directory. Example .env file:
115+
Create an .env on root directory. You can use the provided [.env-dist](https://github.com/gnzsnz/ib-gateway-docker/blob/master/.env-dist) as a starting point. Example .env file:
116116

117117
```bash
118118
TWS_USERID=myTwsAccountName
@@ -164,9 +164,11 @@ Once `docker-compose.yml` and `.env` are in place you can start the container wi
164164
docker compose up
165165
```
166166

167-
To get a GUI can use vnc for ib-gateway or RDP for TWS.
167+
To get a GUI you can use vnc for ib-gateway or RDP for TWS.
168168

169-
Looking for help? Please keep reading below, or go to [discussion](https://github.com/gnzsnz/ib-gateway-docker/discussions) section for common problems and solutions.
169+
Looking for help? Please keep reading below, or go to
170+
[discussion](https://github.com/gnzsnz/ib-gateway-docker/discussions) section for common
171+
problems and solutions. If you have problems please go through the [troubleshooting guide](https://github.com/gnzsnz/ib-gateway-docker/discussions/245)
170172

171173
## Configuration
172174

@@ -186,6 +188,7 @@ All environment variables are common between ibgateway and TWS image, unless spe
186188
| `VNC_SERVER_PASSWORD_FILE` | VNC server password. If not defined, then VNC server will NOT start. Specific to ibgateway, ignored by TWS. | **not defined** (VNC disabled) |
187189
| `TWOFA_TIMEOUT_ACTION` | 'exit' or 'restart', set to 'restart if you set `AUTO_RESTART_TIME`. See IBC [documentation](https://github.com/IbcAlpha/IBC/blob/master/userguide.md#second-factor-authentication) | exit |
188190
| `TWOFA_DEVICE` | second factor authentication device. See IBC [documentation](https://github.com/IbcAlpha/IBC/blob/c98d0bcc2ead9b8ab3900a23a707f01f8fd7dfbc/resources/config.ini#L104) | **not defined** |
191+
| `TWOFA_EXIT_INTERVAL` | It controls how long (in seconds) IBC waits for login to complete after the user acknowledges the second factor authentication. See [IBC documentation](https://github.com/IbcAlpha/IBC/blob/38593af5193ccd634aa226cc66242adc8718b653/resources/config.ini#L147) | 60 seconds |
189192
| `BYPASS_WARNING` | Settings relate to the corresponding 'Precautions' checkboxes in the API section of the Global Configuration dialog. Accepted values `yes`, `no` if not set, the existing TWS/Gateway configuration is unchanged | **not defined** |
190193
| `AUTO_RESTART_TIME` | time to restart IB Gateway, does not require daily 2FA validation. format hh:mm AM/PM. See IBC [documentation](https://github.com/IbcAlpha/IBC/blob/master/userguide.md#ibc-user-guide) | **not defined** |
191194
| `AUTO_LOGOFF_TIME` | Auto-Logoff: at a specified time, TWS shuts down tidily, without restarting | **not defined** |

stable/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# production image and consume unnecessary space.
66
##############################################################################
77

8-
# hadolint global ignore=DL3008
8+
# hadolint global ignore=DL3008,DL4006
99
FROM ubuntu:24.04 AS setup
1010

11-
ENV IB_GATEWAY_VERSION=10.37.1l
11+
ENV IB_GATEWAY_VERSION=10.37.1m
1212
ENV IB_GATEWAY_CHANNEL=stable
1313
ENV IBC_VERSION=3.23.0
1414
ARG DEBIAN_FRONTEND=noninteractive
@@ -66,7 +66,7 @@ COPY ./scripts /root/scripts
6666

6767
FROM ubuntu:24.04
6868

69-
ENV IB_GATEWAY_VERSION=10.37.1l
69+
ENV IB_GATEWAY_VERSION=10.37.1m
7070
# IB Gateway user constants
7171
ARG USER_ID="${USER_ID:-1000}"
7272
ARG USER_GID="${USER_GID:-1000}"
@@ -90,14 +90,15 @@ COPY --chown=${USER_ID}:${USER_GID} --from=setup /root/ ${HOME}
9090
RUN apt-get update -y && \
9191
apt-get upgrade -y && \
9292
apt-get install --no-install-recommends --yes \
93-
gettext-base socat xvfb x11vnc sshpass openssh-client && \
93+
gettext-base socat xvfb x11vnc sshpass openssh-client sudo telnet && \
9494
apt-get clean && \
9595
rm -rf /var/lib/apt/lists/* && \
9696
if id ubuntu; then \
9797
userdel -rf ubuntu \
9898
;fi && \
9999
groupadd --gid ${USER_GID} ibgateway && \
100100
useradd -ms /bin/bash --uid ${USER_ID} --gid ${USER_GID} ibgateway && \
101+
echo "ibgateway ALL=(ALL) NOPASSWD:ALL" | tee -a /etc/sudoers && \
101102
chmod a+x ${SCRIPT_PATH}/*.sh
102103

103104
USER ${USER_ID}:${USER_GID}

stable/Dockerfile.tws

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# hadolint global ignore=DL3008
99

10-
ARG IB_VERSION=10.37.1l
10+
ARG IB_VERSION=10.37.1m
1111
FROM ghcr.io/gnzsnz/ib-gateway:${IB_VERSION} AS setup
1212

1313
WORKDIR /
@@ -18,7 +18,7 @@ WORKDIR /
1818

1919
FROM lscr.io/linuxserver/rdesktop:ubuntu-xfce
2020

21-
ENV IB_GATEWAY_VERSION=10.37.1l
21+
ENV IB_GATEWAY_VERSION=10.37.1m
2222
ENV IB_GATEWAY_RELEASE_CHANNEL=stable
2323
ENV IBC_VERSION=3.23.0
2424

@@ -43,7 +43,7 @@ RUN \
4343
apt-get install --no-install-recommends --yes socat sshpass gettext-base \
4444
libnspr4 libnss3 libcrypto++8 xdg-utils xfce4-cpugraph-plugin \
4545
xfce4-netload-plugin xfce4-taskmanager xfce4-xkb-plugin xfce4-notes \
46-
gvfs gvfs-backends gvfs-fuse && \
46+
gvfs gvfs-backends gvfs-fuse telnet && \
4747
apt-get clean && \
4848
rm -rf /var/lib/apt/lists/* # end
4949

stable/config/ibc/config.ini.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ OverrideTwsApiPort=
357357
# be set dynamically at run-time: most users will never need it,
358358
# so don't use it unless you know you need it.
359359

360-
OverrideTwsMasterClientID=
360+
OverrideTwsMasterClientID=${TWS_MASTER_CLIENT_ID}
361361

362362

363363
# Read-only Login

stable/scripts/common.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,22 @@ unset_env() {
7070
fi
7171
}
7272

73+
run_scripts() {
74+
# run start up scripts
75+
_start_scripts=$1
76+
if [ ! -d "$_start_scripts" ]; then
77+
echo "> No start scripts defined on $_start_scripts"
78+
return 0
79+
fi
80+
echo "> Running start up scripts on $_start_scripts"
81+
82+
for _f in "${_start_scripts}"/*.sh; do
83+
echo "> Running $_f"
84+
[ -f "$_f" ] && bash "$_f" || echo "File $_f not found."
85+
done
86+
87+
}
88+
7389
set_ports() {
7490
# set ports for API and SOCAT
7591

stable/scripts/run.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ start_process() {
100100
###############################################################################
101101
##### Common Start
102102
###############################################################################
103+
104+
# run start scripts
105+
if [ -n "$START_SCRIPTS" ]; then
106+
run_scripts "$HOME/$START_SCRIPTS"
107+
fi
108+
103109
# start Xvfb
104110
start_xvfb
105111

@@ -112,6 +118,11 @@ set_java_heap
112118
# start VNC server
113119
start_vnc
114120

121+
# run scripts once X environment is up
122+
if [ -n "$X_SCRIPTS" ]; then
123+
run_scripts "$HOME/$X_SCRIPTS"
124+
fi
125+
115126
###############################################################################
116127
##### Paper, Live or both start process
117128
###############################################################################
@@ -168,6 +179,11 @@ if [ "$DUAL_MODE" == "yes" ]; then
168179
start_process
169180
fi
170181

182+
# run scripts once IBC is running
183+
if [ -n "$IBC_SCRIPTS" ]; then
184+
run_scripts "$HOME/$IBC_SCRIPTS"
185+
fi
186+
171187
trap stop_ibc SIGINT SIGTERM
172188
wait "${pid[@]}"
173189
exit $?

stable/tws-scripts/run_tws.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ start_process() {
7474
# user id
7575
echo ".> Running as user"
7676
id
77+
78+
# run scripts once X environment is up
79+
if [ -n "$X_SCRIPTS" ]; then
80+
run_scripts "$HOME/$X_SCRIPTS"
81+
fi
82+
7783
# disable agents
7884
disable_agents
7985
# disable compositing
@@ -145,6 +151,11 @@ fi
145151
# outside if dual mode, to ensure cleanup/unset
146152
unset_env 'TWS_PASSWORD_PAPER'
147153

154+
# run scripts once IBC is running
155+
if [ -n "$IBC_SCRIPTS" ]; then
156+
run_scripts "$HOME/$IBC_SCRIPTS"
157+
fi
158+
148159
wait "${pid[@]}"
149160
_wait="$?"
150161
echo ".> ************************** End run_tws.sh ******************************** <."

stable/tws-scripts/start_session.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ if [ -n "${TZ}" ]; then
2222
echo "${TZ}" >/etc/timezone
2323
fi
2424

25+
# run start scripts
26+
if [ -n "$START_SCRIPTS" ]; then
27+
run_scripts "$HOME/$START_SCRIPTS"
28+
fi
29+
2530
# open xfce session
2631
echo ".> Openning Xrdp session"
2732
_out=$(echo "${_PASS}" | xrdp-sesrun -s 127.0.0.1 -F 0 abc)

0 commit comments

Comments
 (0)