diff --git a/.travis.yml b/.travis.yml index 8fd8b5f..c418994 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ env: - DOCKERFILE_DIR=memcached - DOCKERFILE_DIR=mixer-ci - DOCKERFILE_DIR=nginx + - DOCKERFILE_DIR=node - DOCKERFILE_DIR=php - DOCKERFILE_DIR=postgres - DOCKERFILE_DIR=python diff --git a/node/Dockerfile b/node/Dockerfile new file mode 100644 index 0000000..c7935e3 --- /dev/null +++ b/node/Dockerfile @@ -0,0 +1,12 @@ +FROM clearlinux:latest +MAINTAINER jianjun.liu@intel.com + +ARG swupd_args + +RUN swupd update $swupd_args \ + && swupd bundle-add nodejs-basic $swupd_args \ + && rm -rf /var/lib/swupd/* + +RUN /usr/bin/ldconfig + +CMD ["node"] diff --git a/node/README.md b/node/README.md new file mode 100644 index 0000000..af75501 --- /dev/null +++ b/node/README.md @@ -0,0 +1,27 @@ +node +========== +This provides a Clear Linux* nodejs basic cli instance. + +Build +----- +``` +docker build -t clearlinux/node . +``` + +Or just pull it from Dockerhub +--------------------------- +``` +docker pull clearlinux/node +``` + +start a node instance +----------------------- +``` +docker run -it --rm clearlinux/node +``` + +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