forked from mlcommons/ck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu_22.04_cpp_onnxruntime_cpu.Dockerfile
48 lines (40 loc) · 1.84 KB
/
ubuntu_22.04_cpp_onnxruntime_cpu.Dockerfile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:22.04
SHELL ["/bin/bash", "-c"]
ARG CM_GH_TOKEN
# Notes: https://runnable.com/blog/9-common-dockerfile-mistakes
# Install system dependencies
RUN apt-get update -y
RUN apt-get install -y python3 python3-pip git sudo wget
# Install python packages
RUN python3 -m pip install cmind requests
# Setup docker environment
ENTRYPOINT ["/bin/bash", "-c"]
ENV TZ=US/Pacific
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ >/etc/timezone
# Setup docker user
RUN groupadd cm
RUN useradd -g cm --create-home --shell /bin/bash cmuser
RUN echo "cmuser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER cmuser:cm
WORKDIR /home/cmuser
# Download CM repo for scripts
RUN cm pull repo mlcommons@ck
# Install all system dependencies
RUN cm run script --quiet --tags=get,sys-utils-cm
# Run commands
#RUN cm run script --tags=detect,os
#RUN cm run script --tags=detect,cpu
#RUN cm run script --tags=get,sys-utils-cm
#RUN cm run script --tags=get,python
#RUN cm run script --tags=get,generic-python-lib,_onnxruntime
#RUN cm run script --tags=get,loadgen
#RUN cm run script --tags=get,mlcommons,inference,src,_octoml
#RUN cm run script --tags=get,sut,configs
#RUN cm run script --tags=get,dataset,object-detection,open-images,openimages,preprocessed,_validation,_NCHW,_50
#RUN cm run script --tags=get,ml-model,object-detection,resnext50,fp32,_onnx
#RUN cm run script --tags=get,generic-python-lib,_opencv-python
#RUN cm run script --tags=get,generic-python-lib,_numpy
#RUN cm run script --tags=get,generic-python-lib,_pycocotools
# Run CM workflow for MLPerf inference
RUN cm run script --tags=app,mlperf,inference,generic,_retinanet,_onnxruntime,_cpu,_cpp --adr.compiler.tags=gcc --adr.inference-src.tags=_octoml --fake_run
RUN cm run script --tags=app,mlperf,inference,generic,_retinanet,_onnxruntime,_cpu,_cpp --adr.compiler.tags=gcc --adr.inference-src.tags=_octoml