ontologyportal/sigmakee

docker failed

Closed this issue · 6 comments

I can't build. The error is:

$ pwd
/Users/ar/work/sumo/sigmakee/docker
$ docker build -t sigma .
Step 5/11 : COPY jdk-8u171-linux-x64.rpm .
COPY failed: stat /var/lib/docker/tmp/docker-builder821131564/jdk-8u171-linux-x64.rpm: no such file or directory

@apease it would be nice to have the directory of the ontologies mapped to a local path in the host machine. That way, a user can edit the ontologies locally and have Sigma running in the image, inside the docker.

Another error in the docker image building process:

Step 11/11 : RUN su -l sumo -c "mkdir /home/sumo/workspace; mkdir /home/sumo/Programs/; mkdir /home/sumo/Programs/bins" &&     su -l sumo -c "cd /home/sumo/Programs; wget http://mirrors.advancedhosters.com/apache/tomcat/tomcat-8/v8.5.31/bin/apache-tomcat-8.5.31.zip" &&     su -l sumo -c "cd /home/sumo/Programs; wget http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz" &&     su -l sumo -c "cd /home/sumo/Programs; wget http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_2.0/E.tgz" &&     su -l sumo -c "cd /home/sumo/Programs; tar -xvzf E.tgz" &&     su -l sumo -c "cd /home/sumo/Programs; unzip apache-tomcat-8.5.31.zip" &&     su -l sumo -c "cd /home/sumo/Programs; mv E.tgz bins; mv apache-tomcat-8.5.31.zip bins" &&     su -l sumo -c "cd /home/sumo/Programs/apache-tomcat-8.5.31/bin/; chmod 777 *" &&     su -l sumo -c "cd /home/sumo/workspace; git clone https://github.com/ontologyportal/sigmakee; git clone https://github.com/ontologyportal/sumo" &&     su -l sumo -c "cd /home/sumo; mkdir .sigmakee; cd .sigmakee; mkdir KBs; cp -R /home/sumo/workspace/sumo/* KBs; cp /home/sumo/workspace/sigmakee/config.xml /home/sumo/.sigmakee/KBs" &&     su -l sumo -c "sed -i 's/theuser/sumo/g' /home/sumo/.sigmakee/KBs/config.xml" &&     su -l sumo -c "sed -i 's/~/\/home\/sumo/g' /home/sumo/.sigmakee/KBs/config.xml" &&     su -l sumo -c "cd /home/sumo/Programs; gunzip WordNet-3.0.tar.gz; tar -xvf WordNet-3.0.tar; cp WordNet-3.0/dict/* /home/sumo/.sigmakee/KBs/WordNetMappings/" &&     su -l sumo -c "cd /home/sumo/Programs/E; ./configure; make; make install; cd /home/sumo" &&     su -l sumo -c "source /home/sumo/.bashrc; cd /home/sumo/workspace/sigmakee; ant" &&     su -l sumo -c "rm -Rf /home/sumo/Programs/bins; rm -Rf /home/sumo/Programs/*.tar; rm -Rf /home/sumo/workspace"
 ---> Running in a77f4f6f9114
--2018-06-27 14:08:01--  http://mirrors.advancedhosters.com/apache/tomcat/tomcat-8/v8.5.31/bin/apache-tomcat-8.5.31.zip
Resolving mirrors.advancedhosters.com (mirrors.advancedhosters.com)... 46.229.166.133, 2a02:b48:6:1::2
Connecting to mirrors.advancedhosters.com (mirrors.advancedhosters.com)|46.229.166.133|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-06-27 14:08:01 ERROR 404: Not Found.

No. I am interested in the Dockefile since it makes the process more transparent. I solved the problem above downloading the tomcat-???.zip file directly and changing few lines in the Dockerfile anyway. I can submit a PR once I have everything running. The process is now frozen in the clonning of sigmakee step. I am working on the CDG airport, bad bandwidth.

Commit 21c5e8a should have solved this problem.