Add Python Container

This commit is contained in:
Hongzhan Chen
2019-04-29 08:31:56 +08:00
committed by qzheng527
parent 52d995c05c
commit 230cba5536
4 changed files with 41 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@ env:
- DOCKERFILE_DIR=elasticsearch
- DOCKERFILE_DIR=cgit
- DOCKERFILE_DIR=memcached
- DOCKERFILE_DIR=python
script:
- cd $DOCKERFILE_DIR
+1
View File
@@ -16,6 +16,7 @@ Containers
- MariaDB
- memcached
- redis
- python
- stacks-dlrs-oss
- stacks-dlrs-mkl
- stacks-pytorch-oss
+8
View File
@@ -0,0 +1,8 @@
FROM clearlinux:latest
MAINTAINER hongzhan.chen@intel.com
RUN swupd update $swupd_args && \
swupd bundle-add python3-basic $swupd_args
RUN rm -rf /var/lib/swupd
CMD ["python3"]
+31
View File
@@ -0,0 +1,31 @@
Python
==========
This provides a Clear Linux* python container
Build
-----
```
docker build -t clearlinux/python .
```
Or just pull it from Dockerhub
---------------------------
```
docker pull clearlinux/python
```
Start python Container
-----------------------
```
docker run -d clearlinux/python
```
How to use this image
---------------------
- See ``How to use this image`` section of the official python image [page](https://hub.docker.com/_/python).
Extra Build ARGs
----------------
- ``swupd_args`` Specifies [SWUPD](https://clearlinux.org/documentation/swupdate_how_to_run_the_updater.html) flags
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#arg