This repository was archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (27 loc) · 1.36 KB
/
Dockerfile
File metadata and controls
45 lines (27 loc) · 1.36 KB
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
# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
FROM docker.io/openvino/ubuntu20_dev:2022.3.0
USER root
WORKDIR /app
RUN mkdir model
# Copy model files
COPY developer-toolbox-telemetry-sample/resnet.xml model/
COPY developer-toolbox-telemetry-sample/resnet.bin model/
COPY developer-toolbox-telemetry-sample/telemetry_client.py .
COPY developer-toolbox-telemetry-sample/benchmark.py /usr/local/lib/python3.8/dist-packages/openvino/tools/benchmark/benchmark.py
# Copy the .whl file and benchmark.py (renamed telemetry_client.py) to their respective locations
COPY telemetry/fps-instrumentation/telemetrysender-1.1.0-py3-none-any.whl /tmp/telemetrysender-1.1.0-py3-none-any.whl
# Install the .whl file using pip
RUN pip install /tmp/telemetrysender-1.1.0-py3-none-any.whl
# Copy the go.sh and telemetry.config files
COPY developer-toolbox-telemetry-sample/go.sh .
RUN chmod +x /app/go.sh
COPY telemetry/fps-instrumentation/telemetry.config /etc/
# Set the default environment variable for the go.sh script
ENV ARGUMENT_VALUE benchmark
# Start the application or perform other actions
ENTRYPOINT ["/app/go.sh", "$ARGUMENT_VALUE"]
# Copy the .whl file from telemetry/fps-instrumentation to the container
# Copy the telemetry_client.py file to the container
# Install the .whl file using pip
RUN pip install /tmp/telemetrysender-1.1.0-py3-none-any.whl