Skip to content

Commit c02e973

Browse files
committed
Add Super-Linter configuration and update Dockerfile for Futu_OpenD version
- Introduced a new Super-Linter configuration file to specify ignored files and extensions. - Updated the Dockerfile to set the Futu_OpenD version to 9.3.5308 for both Ubuntu and CentOS builds, ensuring consistency across environments. - Refactored package installation commands for improved readability and efficiency.
1 parent 51b37b4 commit c02e973

File tree

3 files changed

+35
-12
lines changed

3 files changed

+35
-12
lines changed

.github/workflows/check-ver-upadte.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
- cron: "0 0 * * *"
99
workflow_dispatch:
1010

11+
permissions:
12+
pull-requests: read
13+
contents: read
14+
issues: read
15+
1116
jobs:
1217
check-version:
1318
name: Check Version
@@ -19,7 +24,7 @@ jobs:
1924
contents: write
2025
issues: write
2126
steps:
22-
- name: Checkout code aaa
27+
- name: Checkout code
2328
uses: actions/checkout@v4
2429

2530
- name: Install node

.super-linter.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Super-Linter configuration file
2+
# https://github.com/github/super-linter
3+
4+
# Ignore files and directories
5+
IGNORE_FILES:
6+
- package-lock.json
7+
- yarn.lock
8+
- pnpm-lock.yaml
9+
10+
# Ignore generated files
11+
IGNORE_GENERATED_FILES: true
12+
13+
# Ignore specific file extensions
14+
IGNORE_FILE_EXTENSIONS:
15+
- .lock
16+
17+
# Optional: Disable specific linters if needed
18+
# DISABLE:
19+
# - JAVASCRIPT_ES
20+
# - JAVASCRIPT_STANDARD

Dockerfile

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ WORKDIR /tmp
1212
RUN apt-get update
1313
RUN apt-get install --no-install-recommends -y curl=7.47.0-1ubuntu2.19 gnutls-bin=3.4.10-4ubuntu1
1414
COPY script/download_futu_opend.sh ./
15-
RUN chmod +x ./download_futu_opend.sh
16-
RUN ./download_futu_opend.sh Futu_OpenD_${FUTU_OPEND_VER}_Ubuntu16.04.tar.gz
17-
RUN tar -xzf Futu_OpenD_${FUTU_OPEND_VER}_Ubuntu16.04.tar.gz
15+
RUN chmod +x ./download_futu_opend.sh && \
16+
./download_futu_opend.sh Futu_OpenD_${FUTU_OPEND_VER}_Ubuntu16.04.tar.gz && \
17+
tar -xzf Futu_OpenD_${FUTU_OPEND_VER}_Ubuntu16.04.tar.gz
1818

1919
FROM base-centos AS build-centos
2020
ARG FUTU_OPEND_VER=8.2.4218
2121

2222
WORKDIR /tmp
2323
COPY script/download_futu_opend.sh ./
24-
RUN chmod +x ./download_futu_opend.sh
25-
RUN ./download_futu_opend.sh Futu_OpenD_${FUTU_OPEND_VER}_Centos7.tar.gz
26-
RUN tar -xzf Futu_OpenD_${FUTU_OPEND_VER}_Centos7.tar.gz
24+
RUN chmod +x ./download_futu_opend.sh && \
25+
./download_futu_opend.sh Futu_OpenD_${FUTU_OPEND_VER}_Centos7.tar.gz && \
26+
tar -xzf Futu_OpenD_${FUTU_OPEND_VER}_Centos7.tar.gz
2727

2828
# copy futu opend to /bin
2929

@@ -50,11 +50,9 @@ ENV FUTU_OPEND_IP=127.0.0.1
5050
ENV FUTU_OPEND_PORT=11111
5151
ENV FUTU_OPEND_TELNET_PORT=22222
5252

53-
# Create non-root user
54-
RUN groupadd -r futu && useradd -r -g futu futu
55-
56-
# Create necessary directories and set permissions
57-
RUN mkdir -p /.futu /bin && chown -R futu:futu /.futu /bin
53+
# Create non-root user and necessary directories
54+
RUN groupadd -r futu && useradd -r -g futu futu && \
55+
mkdir -p /.futu /bin && chown -R futu:futu /.futu /bin
5856

5957
COPY script/start.sh /bin/start.sh
6058
RUN chmod +x /bin/start.sh && chown futu:futu /bin/start.sh

0 commit comments

Comments
 (0)