mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
tests: Add tensorflow mobilenet dockerfile
This PR adds the tensorflow mobilenet dockerfile. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
788d2a254e
commit
a864d0e349
@ -10,8 +10,8 @@ set -o pipefial
|
|||||||
SCRIPT_PATH=$(dirname "$(readlink -f "$0")")
|
SCRIPT_PATH=$(dirname "$(readlink -f "$0")")
|
||||||
source "${SCRIPT_PATH}/../lib/common.bash"
|
source "${SCRIPT_PATH}/../lib/common.bash"
|
||||||
|
|
||||||
IMAGE="docker.io/library/amextdx:latest"
|
IMAGE="docker.io/library/tensorflowmobilenet:latest"
|
||||||
DOCKERFILE="${SCRIPT_PATH}/amex_tensorflow_dockerfile/Dockerfile"
|
DOCKERFILE="${SCRIPT_PATH}/tensorflow_mobilenet_dockerfile/Dockerfile"
|
||||||
tensorflow_file=$(mktemp tensorflowresults.XXXXXXXXXX)
|
tensorflow_file=$(mktemp tensorflowresults.XXXXXXXXXX)
|
||||||
NUM_CONTAINERS="$1"
|
NUM_CONTAINERS="$1"
|
||||||
TIMEOUT="$2"
|
TIMEOUT="$2"
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
# Copyright (c) 2023 Intel Corporation
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
# Usage: FROM [image name]
|
||||||
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
# Version of the Dockerfile
|
||||||
|
LABEL DOCKERFILE_VERSION="1.0"
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends wget nano curl build-essential git && \
|
||||||
|
apt-get install -y python3.8 python3-pip && \
|
||||||
|
pip install intel-tensorflow-avx512==2.8.0 && \
|
||||||
|
pip install protobuf==3.20.* && \
|
||||||
|
wget https://storage.googleapis.com/intel-optimized-tensorflow/models/v1_8/mobilenet_v1_1.0_224_frozen.pb && \
|
||||||
|
git clone https://github.com/IntelAI/models.git
|
||||||
|
|
||||||
|
CMD ["/bin/bash"]
|
Loading…
Reference in New Issue
Block a user