docker failed
Closed this issue · 6 comments
arademaker commented
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
arademaker commented
@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.
apease commented
Hi Alexandre,
You should be able to do that if you just mount a host directory and
change $SIGMA_HOME to point to that mounted directory. It looks like
docker run -v /host/directory:/container/directory
mounts a host directory on the container.
or added to the existing call
sudo docker run -it -d -v /host/directory:/container/directory -p
4000:8080 --name trial04 apease/sigmakee2018:first "./sigmastart.sh"
Then in docker you'd set $SIGMA_HOME to /container/directory in your .bashrc
all the best,
Adam
…On 06/26/2018 05:55 AM, Alexandre Rademaker wrote:
@apease <https://github.com/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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACBvHUH3ViRJ_iehT9fHCo4hNJVFCPI-ks5uAi9GgaJpZM4UZ8ST>.
--
-------------------
Adam Pease
http://www.ontologyportal.org
http://www.adampease.org
@apease_ontology on Twitter
arademaker commented
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.
apease commented
Hi Alexandre,
Have you tried just running the existing docker image instead of
trying to build a new one? You can run the existing image with two
commands -
sudo docker pull apease/sigmakee2018:first
sudo docker run -it -d -p 4000:8080 --name trial04
apease/sigmakee2018:first "./sigmastart.sh"
If you want to build a new image, then you'll need to update the docker
build script, since things like minor version numbers of Tomcat change
frequently.
all the best,
Adam
…On 06/27/2018 07:09 AM, Alexandre Rademaker wrote:
Another error in the building process
|---> 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.``` |
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACBvHbcjH9zvt9qkas7FLrpFQZIfw90Aks5uA5ITgaJpZM4UZ8ST>.
--
-------------------
Adam Pease
http://www.ontologyportal.org
http://www.adampease.org
@apease_ontology on Twitter
arademaker commented
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.
arademaker commented
Commit 21c5e8a should have solved this problem.