Skip to content

[OpenVINO-EP] Optimize MCR Docker image size#3732

Merged
jywu-msft merged 3 commits intomicrosoft:masterfrom
intel:ovep2-docker
Apr 28, 2020
Merged

[OpenVINO-EP] Optimize MCR Docker image size#3732
jywu-msft merged 3 commits intomicrosoft:masterfrom
intel:ovep2-docker

Conversation

@smkarlap
Copy link
Copy Markdown
Contributor

Description:

  1. Aggregate all RUN commands into a single RUN command to single RUN command to avoid size bloat due to docker layer caching.
  2. Remove Model Optimizer related libraries
  3. Update documentation to use Online Installer package for docker build
  4. Change ORT build type to 'Release' to avoid debug symbols that consume extra storage.

Motivation and Context

  • Reduces the MCR docker image size from ~ 5GB to ~2 GB

avidiyal and others added 3 commits April 27, 2020 22:37
Highlight usage of Online installer package.
Specify --rm option during docker build to avoid caching layer.
@smkarlap smkarlap requested a review from a team as a code owner April 28, 2020 07:11
@jywu-msft
Copy link
Copy Markdown
Member

/azp run Linux CPU CI Pipeline,Linux GPU CI Pipeline,Linux GPU TensorRT CI Pipeline,MacOS CI Pipeline,Win CPU x86 CI Pipeline,Windows GPU CI Pipeline,Windows GPU TensorRT CI Pipeline,Win CPU x64 NoContribops CI Pipeline,MacOS NoContribops CI Pipeline,Linux CPU x64 NoContribops CI Pipeline,Windows CPU CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 9 pipeline(s).

@jywu-msft
Copy link
Copy Markdown
Member

/azp run orttraining-mac-ci-pipeline, orttraining-linux-gpu-ci-pipeline, orttraining-linux-ci-pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@jywu-msft jywu-msft merged commit f7cf703 into microsoft:master Apr 28, 2020
@smkarlap smkarlap deleted the ovep2-docker branch May 20, 2020 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants