From 230cba55364f3e13f9e123ebc0c557a2dde1d482 Mon Sep 17 00:00:00 2001 From: Hongzhan Chen Date: Sun, 28 Apr 2019 04:45:46 -0400 Subject: [PATCH] Add Python Container --- .travis.yml | 1 + README.md | 1 + python/Dockerfile | 8 ++++++++ python/README.md | 31 +++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 python/Dockerfile create mode 100644 python/README.md diff --git a/.travis.yml b/.travis.yml index 3a708d5..ce311d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,7 @@ env: - DOCKERFILE_DIR=elasticsearch - DOCKERFILE_DIR=cgit - DOCKERFILE_DIR=memcached + - DOCKERFILE_DIR=python script: - cd $DOCKERFILE_DIR diff --git a/README.md b/README.md index 1c1dbc7..f36cda0 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Containers - MariaDB - memcached - redis +- python - stacks-dlrs-oss - stacks-dlrs-mkl - stacks-pytorch-oss diff --git a/python/Dockerfile b/python/Dockerfile new file mode 100644 index 0000000..d1ac0e8 --- /dev/null +++ b/python/Dockerfile @@ -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"] diff --git a/python/README.md b/python/README.md new file mode 100644 index 0000000..4168193 --- /dev/null +++ b/python/README.md @@ -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