Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TinyMS docker build script #45

Merged
merged 2 commits into from
Mar 26, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## TinyMS Dockerfile Repository

This folder hosts all the `Dockerfile` to build TinyMS container images with various versions and corresponding hardware backends.

> **NOTICE:** Currently TinyMS only supports `CPU` hardware backend.

### TinyMS docker build command

| Hardware Platform | Docker Image Tag | Build Command |
| :---------------- | :------ | :------------ |
| CPU | `x.y.z` | cd tinyms/x.y.z && docker build . -t tinyms/tinyms:x.y.z |
| | `x.y.z-jupyter` | cd tinyms/x.y.z-jupyter && docker build . -t tinyms/tinyms:x.y.z-jupyter |

> **NOTICE:** The `x.y.z` version shown above should be replaced with the real version number.
11 changes: 11 additions & 0 deletions docker/tinyms/0.1.0-jupyter/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ARG BASE_CONTAINER=jupyter/scipy-notebook:ubuntu-18.04
FROM $BASE_CONTAINER

LABEL MAINTAINER="Leon Wang <wanghui71leon@gmail.com>"

# Set the default jupyter token with "tinyms"
RUN sh -c '/bin/echo -e "tinyms\ntinyms\n" | jupyter notebook password'

# Install TinyMS cpu whl package
RUN pip install --no-cache-dir numpy==1.17.5 tinyms==0.1.0 && \
fix-permissions "${CONDA_DIR}"
10 changes: 10 additions & 0 deletions docker/tinyms/0.1.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ARG BASE_CONTAINER=mindspore/mindspore-cpu:1.1.1
FROM $BASE_CONTAINER

LABEL MAINTAINER="Leon Wang <wanghui71leon@gmail.com>"

# Install base tools
RUN apt-get update

# Install TinyMS cpu whl package
RUN pip install --no-cache-dir tinyms==0.1.0