Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.52 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.52 KB

Docker setup

See OS X instructions here

Don't forget to set Docker host variable.

export DOCKER_HOST=tcp://192.168.59.103:2375

I also had increase the memory and disk size of the image in the boot2docker config profile, see Boot2Docker CLI on how to update profile.

In the end I set memory=4096 and disk size=30000.

Build

Build image

Make sure the build file is excutable, because I didn't which led to a permissions bonk.

chmod +x build

Then run:

docker build -t phantomjs2 .

Build phantomjs2 binary

docker run -e VERSION=2.0.0-dev phantomjs2

After it is done, which will be a long ass time, you can copy the binary back to host machine:

docker cp CONTAINER_ID:/home/phantomjs/bin/phantomjs-VERSION-lucid.tar.gz .

Build phantomjs2 binary w/export to s3

Don't have time to figure out the 'RequestTimeTooSkewed' error, so try at your own risk

docker run -e VERSION=2.0.0-dev -e AWS_ACCESS_KEY_ID=key -e AWS_SECRET_ACCESS_KEY=secret -e BUCKET=s3bucket phantomjs2

If you need to rummage around in docker container

docker run  -t -i phantomjs2 /bin/bash

Additional references: