From 906a73378338369fca849d6e9208e1d5ef8134fb Mon Sep 17 00:00:00 2001 From: Severiano Badajoz Date: Tue, 25 Jun 2019 14:47:59 -0700 Subject: [PATCH] add deploy button --- Dockerfile | 15 ++++++++------- README.md | 12 +++++++++--- app.json | 13 +++++++++++++ 3 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 app.json diff --git a/Dockerfile b/Dockerfile index 1e92abde..32e89028 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ -FROM ubuntu:bionic +FROM python:3.7 -ENV LC_ALL=C.UTF-8 -ENV LANG=C.UTF-8 +WORKDIR /usr/src/app -RUN apt-get update && \ - apt-get install -y build-essential libxml2-dev python3-dev python3-pip zlib1g-dev && \ - pip3 install cellxgene +RUN pip3 install cellxgene -ENTRYPOINT ["cellxgene"] \ No newline at end of file +RUN curl -o pbmc3k.h5ad https://raw.githubusercontent.com/chanzuckerberg/cellxgene/master/example-dataset/pbmc3k.h5ad + +expose 5005 + +CMD ["cellxgene", "launch", "pbmc3k.h5ad", "--host", "0.0.0.0"] diff --git a/README.md b/README.md index 92c23008..cd5c959c 100644 --- a/README.md +++ b/README.md @@ -14,21 +14,27 @@ _cellxgene_ (pronounced "sell-by-jean") is an interactive data explorer for sing ## quick start + + Deploy + + To install _cellxgene_ you need Python 3.6+. We recommend [installing _cellxgene_ into a conda or virtual environment.](https://chanzuckerberg.github.io/cellxgene/faq.html#how-do-i-create-a-python-36-environment-for-cellxgene) Install the package. -``` bash + +```bash pip install cellxgene ``` Download an example [anndata](https://anndata.readthedocs.io/en/latest/) file -``` bash +```bash curl -o pbmc3k.h5ad https://raw.githubusercontent.com/chanzuckerberg/cellxgene/master/example-dataset/pbmc3k.h5ad ``` Launch _cellxgene_ -``` bash + +```bash cellxgene launch pbmc3k.h5ad --open ``` diff --git a/app.json b/app.json new file mode 100644 index 00000000..36145dc1 --- /dev/null +++ b/app.json @@ -0,0 +1,13 @@ +{ + "name": "Node.js Sample", + "description": "n interactive explorer for single-cell transcriptomics data", + "repository": "https://github.com/chanzuckerberg/cellxgene/", + "logo": "https://github.com/chanzuckerberg/cellxgene/blob/master/client/favicon.png", + "keywords": [ + "scientific", + "visualization", + "scrna-seq", + "transcriptomics", + "dataviz" + ] +}