Hi Kei and others,
I have been trying to create a simple Cytoscape Docker image by adopting ideas from Kei's code snippet and following a workflow given in
http://docs.docker.com/mac/step_four/ but so far have not managed to run it properly.
More specifically, I have included the following code snippet in the Dockerfile:
FROM ubuntu
RUN apt-get update
RUN tar xfvz ./cytoscape-3.2.1.tar.gz
RUN ./cytoscape-unix-3.2.1/cytoscape.sh &
The I have successfully build a Docker image:
sudo docker build -t cyto-test .
Sending build context to Docker daemon 5.12 kB
Step 0 : FROM ubuntu
---> 91e54dfb1179
Step 1 : RUN apt-get update
---> Using cache
---> 998502fcb7f7
Step 2 : RUN mkdir /application
---> Using cache
---> 830ddaf787a8
Step 3 : WORKDIR /application
---> Using cache
---> 1fa4a6bfdf5c
Step 4 : RUN apt-get update && apt-get install -y wget
---> Using cache
---> 60391764108d
Step 5 : RUN wget http://chianti.ucsd.edu/cytoscape-3.2.1/cytoscape-3.2.1.tar.gz
---> Using cache
---> 4fa221409244
Step 6 : RUN tar xfvz ./cytoscape-3.2.1.tar.gz
---> Using cache
---> 05c1aefa965a
Step 7 : RUN ./cytoscape-unix-3.2.1/cytoscape.sh &
---> Using cache
---> 0d77aabdb855
Successfully built 0d77aabdb855Then I have tried to run the image:
sudo docker run cyto-testI would expect this should open Cytoscape but nothing happens - Cytoscape does not pop up.
I would guess perhaps this is related to the fact that the Cytoscape opening command
./cytoscape.sh & does work directly from ubuntu command line at least on my computer, I had a long discussion about this for a while back (
https://groups.google.com/forum/#!topic/cytoscape-helpdesk/wKNi35tvPds).
As a result of this discussion we came up with a conclusion I can open Cytoscape either by clicking on the icon launcher or by giving a
./Cytoscape & on the command line.
However it seems
http://chianti.ucsd.edu/cytoscape-3.2.1/cytoscape-3.2.1.tar.gz does not contain an icon launcher.
Is there any Cytoscape package that contains an icon launcher and that can be downloaded from command line (with wget method)?
Any other ideas how to open Cytoscape from a Docker image?
Thanks,
Erno