add tensorflow container

Signed-off-by: Liu, Jianjun <jianjun.liu@intel.com>
This commit is contained in:
Liu, Jianjun
2019-05-10 06:08:43 +00:00
committed by George T Kramer
parent 8848dd8b0d
commit ecfc93889f
3 changed files with 42 additions and 0 deletions
+1
View File
@@ -25,6 +25,7 @@ env:
- DOCKERFILE_DIR=python
- DOCKERFILE_DIR=redis
- DOCKERFILE_DIR=ruby
- DOCKERFILE_DIR=tensorflow
script:
- cd $DOCKERFILE_DIR
+8
View File
@@ -0,0 +1,8 @@
FROM clearlinux:latest
MAINTAINER jianjun.liu@intel.com
ARG swupd_args
RUN swupd update --no-boot-update $swupd_args
RUN swupd bundle-add machine-learning-tensorflow $swupd_args \
&& rm -rf /var/lib/swupd/*
+33
View File
@@ -0,0 +1,33 @@
tensorflow
==========
This provides a Clear Linux* tensorflow instance.
Build
-----
```
docker build -t clearlinux/tensorflow .
```
Or just pull it from Dockerhub
---------------------------
```
docker pull clearlinux/tensorflow
```
Test go version
-----------------------
```
docker run -it --rm clearlinux/tensorflow bash
```
Details of how-to
---------------------
Please refer to the docker official tensorflow image [page](https://hub.docker.com/r/tensorflow/tensorflow).
Extra Build ARGs
----------------
- ``swupd_args`` Specifies [SWUPD](https://github.com/clearlinux/swupd-client/blob/master/docs/swupd.1.rst#options) flags
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#arg