installation on docker

25 views
Skip to first unread message

gwel

unread,
Mar 7, 2016, 9:53:42 AM3/7/16
to CasperJS
Hi every one,

I'm trying to install casperjs on docker.

Here is the Dockerfile :

FROM debian

RUN apt
-get update
RUN apt
-get install -y libfreetype6 libfontconfig libreadline-dev wget bzip2 python strace

RUN wget
-qO - https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 | tar -C /usr/local/share -xj
RUN wget
-qO - https://github.com/n1k0/casperjs/tarball/master | tar -C /usr/local/share -xz

RUN ln
-s /usr/local/share/phantomjs*/bin/phantomjs /usr/bin
RUN ln
-s /usr/local/share/n1k0-casperjs*/bin/casperjs /usr/bin

USER nobody




Then, I check if everything is fine :

nobody@0ada18478ac2:/$ phantomjs --version
2.1.1
nobody@0ada18478ac2:/
$ casperjs
^C
nobody@0ada18478ac2
:/$ casperjs --version
^C



When i try to run casperjs it loops forever...

I've tried this, to see what's happening :

$ strace casperjs 2>&1 | grep "No such file or directory" | more
access
("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
access
("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
[...]
stat("/node_modules/system", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/node_modules/system.js", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/node_modules/system.coffee", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/node_modules/system.json", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/node_modules/system/index", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/node_modules/system/index.js", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/node_modules/system/index.coffee", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/node_modules/system/index.json", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/../node_modules/system/package.json", 0x7ffc1d8d9b80) = -1 ENOENT (No such file or directory)
stat
("/../node_modules/system", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/../node_modules/system.js", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/../node_modules/system.coffee", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/../node_modules/system.json", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/../node_modules/system/index", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/../node_modules/system/index.js", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/../node_modules/system/index.coffee", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/../node_modules/system/index.json", 0x7ffc1d8d9be0) = -1 ENOENT (No such file or directory)
stat
("/../../node_modules/system/package.json", 0x7ffc1d8d9b80) = -1 ENOENT (No such file or directory)
stat
("/../../node_modules/system", 0x7ffc1d8d9c60) = -1 ENOENT (No such file or directory)
stat
("/../../node_modules/system.js", 0x7ffc1d8d9c60) = -1 ENOENT (No such file or directory)
stat
("/../../node_modules/system.coffee", 0x7ffc1d8d9c60) = -1 ENOENT (No such file or directory)
stat
("/../../node_modules/system.json", 0x7ffc1d8d9c60) = -1 ENOENT (No such file or directory)
stat
("/../../node_modules/system/index", 0x7ffc1d8d9c60) = -1 ENOENT (No such file or directory)
stat
("/../../node_modules/system/index.js", 0x7ffc1d8d9c60) = -1 ENOENT (No such file or directory)
stat
("/../../node_modules/system/index.coffee", 0x7ffc1d8d9c60) = -1 ENOENT (No such file or directory)
stat
("/../../node_modules/system/index.json", 0x7ffc1d8d9c60) = -1 ENOENT (No such file or directory)
stat
("/../../../node_modules/system/package.json", 0x7ffc1d8d9b80) = -1 ENOENT (No such file or directory)
stat
("/../../../node_modules/system", 0x7ffc1d8d9c60) = -1 ENOENT (No such file or directory)
stat
("/../../../node_modules/system.js", 0x7ffc1d8d9c60) = -1 ENOENT (No such file or directory)


(it adds ../ to the beginning of the file forever). Is casperjs searching for node.js ? Did i miss something ? a dependency ?

Thanks in advance.

Ken

unread,
May 28, 2017, 10:38:17 PM5/28/17
to CasperJS, gwe...@gmail.com
Haven't come across this issue, does it happen for you if you install on a VPS Linux? I run on CentOS Linux and node works ok for me.
Reply all
Reply to author
Forward
0 new messages