3 Star 17 Fork 5

MegEngine / MegFlow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile.github-dev 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
tpoisonooo 提交于 2022-01-09 14:55 . Add nest opr (#55)
FROM ubuntu:18.04
WORKDIR /megflow
# install requirements
RUN apt-get update
RUN apt-get install -y wget yasm clang git build-essential
RUN apt install -y libssl-dev
RUN apt update && apt-get install -y pkg-config --fix-missing
RUN apt-get install -y curl
RUN apt install -y libv4l-dev liblzma-dev
# prepare cargo env
ENV CARGO_HOME /cargo
ENV RUSTUP_HOME /rustup
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -o run.sh \
&& chmod a+x run.sh \
&& ./run.sh -y && rm run.sh
ENV PATH $PATH:/cargo/bin
RUN chmod -R 777 /cargo /rustup
COPY ci/cargo-config.github /cargo/config
# copy workspace
RUN mkdir -p $HOME/megflow-runspace
WORKDIR $HOME/megflow-runspace
# build conda env and activate
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash Miniconda3-latest-Linux-x86_64.sh -b -p /conda && rm Miniconda3-latest-Linux-x86_64.sh
ENV PATH $PATH:/conda/bin
RUN echo "PATH=${PATH}" >> ~/.bashrc
RUN conda init
COPY . $HOME/megflow-runspace/
# python install
RUN cd flow-python && python3 setup.py install --user
RUN export PATH=/root/.local/bin:${PATH} && cd flow-python/examples \
&& megflow_run -p logical_test
Rust
1
https://gitee.com/MegEngine/MegFlow.git
git@gitee.com:MegEngine/MegFlow.git
MegEngine
MegFlow
MegFlow
master

搜索帮助