-
Notifications
You must be signed in to change notification settings - Fork 2
/
DigitsBenchDockerFile
31 lines (24 loc) · 1.06 KB
/
DigitsBenchDockerFile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM scorpil/rust:stable
# COPY clipper_gitrepo_for_docker /root/.ssh/id_rsa
COPY clipper_server /rust/clipper/clipper_server
COPY benchmarks /rust/clipper/benchmarks
RUN apt-get update \
# && echo " IdentityFile ~/.ssh/id_rsa" >> /etc/ssh/ssh_config \
&& apt-get install libssl-dev git g++ -qqy --no-install-recommends \
# && ssh-keyscan -H github.com >> ~/.ssh/known_hosts \
# && git clone --recursive [email protected]:amplab/clipper.git \
&& cd clipper/benchmarks \
&& cargo build --release \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir /mnist_data
ENV RUST_LOG=info
ENV RUST_BACKTRACE=1
ENV CLIPPER_CONF_PATH="/tmp/digits_bench.toml"
ENV CLIPPER_BENCH_COMMAND="digits"
# EXPOSE 1337
# COPY test.toml /rust/clipper/clipper_server/conf/test.toml
# ENTRYPOINT ["/rust/clipper/clipper_server/target/debug/clipper-rest", "start"]
# CMD ["--conf=/rust/clipper/clipper_server/conf/test.toml"]
# COPY digits_bench.toml /rust/clipper/benchmarks/digits_bench.toml
ENTRYPOINT ["/rust/clipper/benchmarks/target/release/clipper-benchmarks"]
# CMD ["digits", "--conf=/tmp/digits_bench.toml"]