Compare commits

...

1 Commits
14432 ... 12504

Author SHA1 Message Date
Stefano Raggi
3387fc5325 Update Lean Foundation docker files to IBGateway v985 2021-08-02 14:55:36 +02:00
2 changed files with 7 additions and 7 deletions

View File

@@ -28,10 +28,10 @@ RUN add-apt-repository ppa:ubuntu-toolchain-r/test \
&& rm -rf /var/lib/apt/lists/*
# Install IB Gateway: Installs to /usr/local/ibgateway
RUN wget https://cdn.quantconnect.com/interactive/ibgateway-latest-standalone-linux-x64.v984.1h.sh && \
chmod 777 ibgateway-latest-standalone-linux-x64.v984.1h.sh && \
./ibgateway-latest-standalone-linux-x64.v984.1h.sh -q && \
rm ibgateway-latest-standalone-linux-x64.v984.1h.sh
RUN wget https://cdn.quantconnect.com/interactive/ibgateway-latest-standalone-linux-x64.v985.1h.sh && \
chmod 777 ibgateway-latest-standalone-linux-x64.v985.1h.sh && \
./ibgateway-latest-standalone-linux-x64.v985.1h.sh -q && \
rm ibgateway-latest-standalone-linux-x64.v985.1h.sh
# Install dotnet 5 sdk & runtime
RUN wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \

View File

@@ -26,12 +26,12 @@ RUN apt-fast install -y git libgtk2.0.0 cmake bzip2 curl unzip wget python3-pip
# Install IB Gateway: Installs to /usr/local/ibgateway
# We update the install script so it doesn't use the bundled JVM
# The bundled JVM doesn't work on ARM64, so we update it to use the JVM installed in the previous command
RUN wget https://cdn.quantconnect.com/interactive/ibgateway-latest-standalone-linux-x64.v984.1h.sh && \
RUN wget https://cdn.quantconnect.com/interactive/ibgateway-latest-standalone-linux-x64.v985.1h.sh && \
java_patch_version=$(java -version 2>&1 | head -n 1 | cut -d'_' -f2 | cut -d'"' -f1) && \
bbe -e 's|# INSTALL4J_JAVA_HOME_OVERRIDE=|INSTALL4J_JAVA_HOME_OVERRIDE="/usr/lib/jvm/java-1.8.0-openjdk-arm64"|' -e "s|-lt \"152\"|-lt \"$java_patch_version\"|" -e "s|-gt \"152\"|-gt \"$java_patch_version\"|" ibgateway-latest-standalone-linux-x64.v984.1h.sh > ibgateway-stable-standalone-linux-custom-jvm.sh && \
bbe -e 's|# INSTALL4J_JAVA_HOME_OVERRIDE=|INSTALL4J_JAVA_HOME_OVERRIDE="/usr/lib/jvm/java-1.8.0-openjdk-arm64"|' -e "s|-lt \"152\"|-lt \"$java_patch_version\"|" -e "s|-gt \"152\"|-gt \"$java_patch_version\"|" ibgateway-latest-standalone-linux-x64.v985.1h.sh > ibgateway-stable-standalone-linux-custom-jvm.sh && \
chmod 777 ibgateway-stable-standalone-linux-custom-jvm.sh && \
./ibgateway-stable-standalone-linux-custom-jvm.sh -q && \
rm ibgateway-latest-standalone-linux-x64.v984.1h.sh ibgateway-stable-standalone-linux-custom-jvm.sh
rm ibgateway-latest-standalone-linux-x64.v985.1h.sh ibgateway-stable-standalone-linux-custom-jvm.sh
# Install dotnet 5 sdk & runtime
# The .deb packages don't support ARM, the install script does