-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building from Dockerfile #2
Comments
Can you be a bit more specific on the what you are doing ? |
docker run -v $(pwd):/data zopanix/casperjs /data/casper.js --web-security=no --ssl-protocol=any --ignore-ssl-errors=yes --city=AR --output=XML --filename=latest.xml Trying to run a script. If I run from your docker from registry it works without a problem. When I copy down your Dockerfile it fails. |
What does the docker build command output? |
CasperJS needs at least PhantomJS v1.9.1 or later. |
This seems more of a run command then a build command. |
It gives me success with an image Id. |
Think it's not building because of corporate proxy. |
Step 1 : FROM ubuntu:14.04.4 |
This isn't really helpfull because you're using a cached layer for the building part. Can you put your output for the following command : |
These items are listed in red when I try and build. Setting up unattended-upgrades (0.82.1ubuntu2.4) ... debconf: unable to initialize frontend: Dialog Setting up rsync (3.1.0-2ubuntu0.2) ... Cloning into 'casperjs'... You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b new_branch_name HEAD is now at cd78443... Release 1.1.3 Use 'apt-get autoremove' to remove them. Use 'apt-get autoremove' to remove them. |
Yeah I have that to but that's not what's cause it not to work |
docker run -v $(pwd):/data casperjs /data/casper.js --web-security=no --ssl-protocol=any --ignore-ssl-errors=yes --city=AR --output=XML --filename=latest.xml CasperJS needs at least PhantomJS v1.9.1 or later. |
docker run -v $(pwd):/data zopanix/casperjs /data/casper.js --web-security=no --ssl-protocol=any --ignore-ssl-errors=yes --city=AR --output=XML --filename=latest.xml [debug] [phantom] opening url: https://localhost/directory.fwx, HTTP GET [info] [phantom] Done 3 steps in 6832ms |
I want to add a cronjob that runs my script every week. I can probably get around this. Just really stumped.. |
I don't know what's happening to be honest. This should be working exaclty the same... |
I'm off for the day, I'll look a bit at it in tomorrow morning |
casperjs --version = 1.1.2 casperjs --version Looks like I need phantomJS 1.9.1 and I'm only getting 1.9.0 |
Okay, that's weird. I'll check it tomorrow to see if I can debug. The thing is phantom j's didn't build binaries for 1.9.x so I used a Debien package from a former colleague. He might have changed some thing on his end. If that's the case I'll have to redo the old fashion way and compile phantomjs in the container build. Which is a pain because you basically download the whole internet just to build it and cleaning afterwards is kind of hard. The cleaning is needed to make smaller images. I'll certainly look into it. In the meanwhile if you need to make a cron, don't do it inside the container but on the host. Just cron the docker run command instead of having a container running all the time. If the container fails it will stay down. The cron will be more reliable |
@zopanix Thank you for your tip on cron. I'm trying to make this project more mobile, noob friendly. Do you still think cron on the host is best case scenerio? Still getting the error. |
CasperJS needs at least PhantomJS v1.9.1 or later.
[info] [phantom] Starting...
[info] [phantom] Running suite: 3 steps
Is the build failing on phantomJS?
The text was updated successfully, but these errors were encountered: