Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <changethenamewithyouwant> .`
3. After build execute:
`docker run -d -p <localport>:8000 <changethenamewithyouwant>`
4. Open browser with http://localhost:<localport>.
5. Enjoy.