2 Star 0 Fork 0

mirrors_sfackler/rust-metrics

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 986 Bytes
一键复制 编辑 原始数据 按行查看 历史
Alex Newman 提交于 2016-08-29 22:00 . move to send reporter
FROM ubuntu:xenial
WORKDIR /rust-metrics/
RUN apt-get update && apt-get install curl git perl bash file sudo build-essential vim libssl-dev protobuf-compiler -y
RUN curl -sf https://static.rust-lang.org/rustup.sh -o rustup.sh
RUN chmod +x rustup.sh
RUN ./rustup.sh
# This keeps an immutable cached environment
RUN cargo install protobuf
COPY Cargo.toml /rust-metrics/
COPY prometheus_reporter/Cargo.toml /rust-metrics/prometheus_reporter/
COPY prometheus_reporter/src /rust-metrics/prometheus_reporter/src/
# Cache rust package list
### Just for rust package cacheing!
RUN mkdir -p src; touch src/lib.rs
RUN cargo test --verbose --features prometheus
RUN rm -rf src
# Actually move the source in place
COPY src/ /rust-metrics/src/
RUN touch /rust-metrics/src/*
RUN cargo build --verbose --features prometheus
COPY examples/ /rust-metrics/examples/
COPY bin/ /rust-metrics/bin/
RUN cargo test --verbose --features prometheus
ENTRYPOINT env PATH=$PATH:/rust-metrics/bin/ /bin/bash
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_sfackler/rust-metrics.git
[email protected]:mirrors_sfackler/rust-metrics.git
mirrors_sfackler
rust-metrics
rust-metrics
master

搜索帮助