Add Docker file (#505)

* Add docker support

* Add readme

* minor fixes
This commit is contained in:
Charlotte Weaver
2018-12-11 10:18:10 -08:00
committed by GitHub
parent 126cac833a
commit 24af6efbcb
5 changed files with 26 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
bin
client
dist
docs
server
+1
View File
@@ -11,6 +11,7 @@ install:
- ./bin/build-client - ./bin/build-client
- pip install -e . - pip install -e .
- pip install -r server/requirements-dev.txt - pip install -r server/requirements-dev.txt
- docker build .
script: script:
- set -eo pipefail - set -eo pipefail
- flake8 server/app/ - flake8 server/app/
+10
View File
@@ -0,0 +1,10 @@
FROM ubuntu:bionic
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN apt-get update && \
apt-get install -y build-essential libxml2-dev python3-dev python3-pip zlib1g-dev && \
pip3 install cellxgene
ENTRYPOINT ["cellxgene"]
+9
View File
@@ -114,6 +114,15 @@ source ${ENV_NAME}/bin/activate
pip install cellxgene pip install cellxgene
``` ```
## docker
We have included a dockerfile to conveniently run cellxgene from docker.
1. Build the image `docker build . -t cellxgene`
2. Run the container and mount data `docker run -v "$PWD/example-dataset/:/data/" -p 5005:5005 cellxgene launch --host 0.0.0.0 data/pbmc3k.h5ad`
* You will need to use --host 0.0.0.0 to have the container listen to incoming requests from the browser
## FAQ ## FAQ
<details> <details>
+1 -1
View File
@@ -11,4 +11,4 @@ numpy>=1.14.5
pandas>=0.23.1 pandas>=0.23.1
scanpy>=1.3.2 scanpy>=1.3.2
scipy>=1.1.0 scipy>=1.1.0
scikit-learn>=0.20.1 scikit-learn>=0.19.1,!=0.20.0