From 170b4186c7fa47fd6b973b000684e36aca373c55 Mon Sep 17 00:00:00 2001 From: Kuramoto Date: Sun, 12 May 2019 11:04:02 -0300 Subject: [PATCH 1/3] Create Dockerfile with steps in README.md --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2537fec --- /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 +RUN pip3.6 install --upgrade pip +RUN curl -O https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh +RUN pip3.6 install networkx fa2 python-louvain +EXPOSE 8000 +ENTRYPOINT ["./start_server.sh"] From 208ab1891e5bd0306fe43dca9eac8bc633990e8a Mon Sep 17 00:00:00 2001 From: Kuramoto Date: Sun, 12 May 2019 13:31:47 -0300 Subject: [PATCH 2/3] Correct dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2537fec..3bd7283 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,9 @@ 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 +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-5.3.1-Linux-x86_64.sh +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"] From 5ddd34d45260b0a2c114eaa1649e1ccc7c64392f Mon Sep 17 00:00:00 2001 From: Kuramoto Date: Sun, 12 May 2019 13:45:34 -0300 Subject: [PATCH 3/3] Update README with Docker commands. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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