Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有计划搞个docker版本吗? #65

Open
better319 opened this issue May 16, 2022 · 3 comments
Open

有计划搞个docker版本吗? #65

better319 opened this issue May 16, 2022 · 3 comments
Labels

Comments

@better319
Copy link

用的e5的cpu,估计是硬伤了,不知道docker版本的有救不?

@fasiondog
Copy link
Owner

@fasiondog fasiondog added the FAQ label Jun 30, 2022
@LiaoSirui
Copy link

LiaoSirui commented Nov 20, 2022

可以的,看你需要什么的 base image,我目前基础 rocky linux 8 ,后期可以提交 pr

大致的构建步骤如下:

COPY pyenv/requirements.txt /opt/pyenv-packages/requirements.txt

ENV XMAKE_ROOT=y

# install - python pacakges and hikyuu
RUN --mount=type=cache,target=/var/cache,id=build-cache \
    --mount=type=cache,target=/tmp,id=build-tmp \
    \
    pip3 install -r /opt/pyenv-packages/requirements.txt

# install - python pacakges and hikyuu
RUN --mount=type=cache,target=/var/cache,id=build-cache \
    --mount=type=cache,target=/tmp,id=build-tmp \
    --mount=type=bind,from=packages,source=/packages,target=/packages,rw \
    \
    source ~/.bashrc \
    && proxy \
    # install xmake
    && bash <(curl -fsSL https://xmake.io/shget.text) \
    && source ~/.xmake/profile \
    && echo 'source ~/.xmake/profile' >> ~/.bashrc \
    && echo 'source ~/.xmake/profile' >> ~/.zshrc \
    && xmake --version \
    \
    && cd /packages/hikyuu \
    && tar zxf hikyuu-1.2.6.tar.gz \
    && tar zxf boost_1_69_0.tar.gz -C hikyuu-1.2.6/ \
    && cd hikyuu-1.2.6 \
    && python setup.py build -j 24 \
    # && python setup.py test \
    && python setup.py install

@better319
Copy link
Author

可以的,看你需要什么的 base image,我目前基础 rocky linux 8 ,后期可以提交 pr

大致的构建步骤如下:

COPY pyenv/requirements.txt /opt/pyenv-packages/requirements.txt

ENV XMAKE_ROOT=y

# install - python pacakges and hikyuu
RUN --mount=type=cache,target=/var/cache,id=build-cache \
    --mount=type=cache,target=/tmp,id=build-tmp \
    \
    pip3 install -r /opt/pyenv-packages/requirements.txt

# install - python pacakges and hikyuu
RUN --mount=type=cache,target=/var/cache,id=build-cache \
    --mount=type=cache,target=/tmp,id=build-tmp \
    --mount=type=bind,from=packages,source=/packages,target=/packages,rw \
    \
    source ~/.bashrc \
    && proxy \
    # install xmake
    && bash <(curl -fsSL https://xmake.io/shget.text) \
    && source ~/.xmake/profile \
    && echo 'source ~/.xmake/profile' >> ~/.bashrc \
    && echo 'source ~/.xmake/profile' >> ~/.zshrc \
    && xmake --version \
    \
    && cd /packages/hikyuu \
    && tar zxf hikyuu-1.2.6.tar.gz \
    && tar zxf boost_1_69_0.tar.gz -C hikyuu-1.2.6/ \
    && cd hikyuu-1.2.6 \
    && python setup.py build -j 24 \
    # && python setup.py test \
    && python setup.py install

baolongzhanshi/hikyuu 这个吗?

marobot/quantos-all

方便给个链接吗?感谢ing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants