Build Docker Image Failed
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
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"
Ah...
network errorhas 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!
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 .
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.