diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3bd7283 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM centos:latest +WORKDIR /opt +COPY . . +RUN yum install -y https://centos7.iuscommunity.org/ius-release.rpm +RUN yum update -y +RUN yum install -y python36u python36u-libs python36u-devel python36u-pip python36u-setuptools gcc bzip2 +RUN pip3.6 install --upgrade pip +RUN curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh | bash +RUN pip3.6 install networkx fa2 python-louvain +EXPOSE 8000 +ENTRYPOINT ["./start_server.sh"] diff --git a/README.md b/README.md index 837d51c..a6c1245 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,12 @@ Place the main directory somehwere inside folder that contains this README and t 3. Open web browser (preferably Chrome; best to use incognito mode to ensure no cached data is used). 4. View data set by navigating to corresponding URL: http://localhost:8000/springViewer_1_6_dev.html?path_to/main/subplot. In the example above, if you wanted to view a SPRING plot called `HSC` in the main directory `human_bone_marrow`, then you would navigate to http://localhost:8000/springViewer_1_6_dev.html?datasets/human_bone_marrow/HSC +### Build image with Dockerfile + +1. Opem Terminal (Mac) or PowerShell (Windows) or Terminal (Linux) and change directories (`cd`) to the directory containing this README file (`SPRING_dev/`). +2. Execute: + `docker build -t .` +3. After build execute: + `docker run -d -p :8000 ` +4. Open browser with http://localhost:. +5. Enjoy. \ No newline at end of file