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

Build Docker Image Failed #16

Open
joeshow79 opened this issue Sep 16, 2021 · 4 comments
Open

Build Docker Image Failed #16

joeshow79 opened this issue Sep 16, 2021 · 4 comments
Labels
good first issue Good for newcomers

Comments

@joeshow79
Copy link

detail | 详细描述

Hi there,
Try to build the docker as refer to the guid, but always failed with the same messages as below, any clue to fix it? Thanks!

Step 7/7 : RUN PATH=$HOME/.cargo/bin:${PATH} && cargo build && cd flow-python && python3 setup.py install --user && cd examples && cargo run --example run_with_plugins -- -p logical_test
---> Running in 9e5d7d0b6e8c
Updating crates.io index
Updating git repository https://github.com/nbdd0121/stackful.git
Updating git repository https://github.com/Easonzero/rust-ffmpeg
Updating git repository https://github.com/Easonzero/rust-ffmpeg-sys
Downloading crates ...

... ... [Omitt dozens of lines]

Downloaded clang-sys v0.29.3
Downloaded h2 v0.3.3
warning: spurious network error (2 tries remaining): [28] Timeout was reached (download of ndarray v0.15.3 failed to transfer more than 10 bytes in 30s)
warning: spurious network error (2 tries remaining): [28] Timeout was reached (failed to download any data for libc v0.2.100 within 30s)
error: failed to download from https://crates.io/api/v1/crates/num-integer/0.1.44/download

Caused by:
[92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 279 was not closed cleanly before end of the underlying stream)
The command '/bin/sh -c PATH=$HOME/.cargo/bin:${PATH} && cargo build && cd flow-python && python3 setup.py install --user && cd examples && cargo run --example run_with_plugins -- -p logical_test' returned a non-zero code: 101

@tpoisonooo
Copy link
Collaborator

tpoisonooo commented Sep 16, 2021

Ah... network error has inform you the reason, use better ISP (Internet Service Provider).

also you can try anothor Rust crate source, check this tutorial.

open ~/.cargo/config, use these config

[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"

@tpoisonooo tpoisonooo added the good first issue Good for newcomers label Sep 16, 2021
@joeshow79
Copy link
Author

Ah... network error has inform you the reason, use better ISP (Internet Service Provider).

also you can try anothor Rust crate source, check this tutorial.

open ~/.cargo/config, use these config

[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"

many thanks!

@tpoisonooo
Copy link
Collaborator

tpoisonooo commented Sep 18, 2021

tuna crates mirror added to Dockerfile in this commit, most of packages would be download from https://mirrors.tuna.tsinghua.edu.cn/.

please git pull master branch and docker build -t megflow .

@tpoisonooo
Copy link
Collaborator

tpoisonooo commented Sep 19, 2021

We have released prebuilt .whl, you can directly install megflow with python3 -m pip install megflow-0.1.0-py3.8-none-linux_x86_64.whl --force-reinstall instead of downloading any packages, please check the doc.

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

No branches or pull requests

2 participants