Skip to content

Commit

Permalink
release 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Overbryd committed Aug 22, 2016
1 parent cee6b5d commit 1925b5e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ RUN cd /usr/src/phantomjs \
&& apk del .build-deps \
&& rm -r /*.patch /usr/src

RUN apk add patchelf --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted

# package binary build
RUN cd /root \
&& apk add patchelf --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \
&& mkdir -p phantomjs/lib \
&& cp /usr/bin/phantomjs phantomjs/ \
&& cd phantomjs \
Expand All @@ -68,7 +69,7 @@ RUN cd /root \
| cut -d' ' -f2`; do \
cp $lib lib/`basename $lib`; \
done \
&& patchelf --set-rpath lib phantomjs \
&& patchelf --set-rpath '$ORIGIN/lib' phantomjs \
&& cd /root \
&& tar cvf phantomjs.tar phantomjs \
&& bzip2 -9 phantomjs.tar
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
NAME=artifacts/phantomjs-v2.11-alpine.tar.bz2
NAME=artifacts/phantomjs-alpine-x86_64.tar.bz2
all: $(NAME)

$(NAME):
docker build -t phantomjs-alpine . && docker run --rm -i -v `pwd`/artifacts:/artifacts phantomjs-alpine:latest cp /root/phantomjs.tar.bz2 /$(NAME)


clean:
rm phantomjs-v2.11-alpine.tar.bz2
rm artifacts/* 2>/dev/null || echo "clean"

14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# phantomjs on Alpine Linux x86_64

This repository uses docker to build a phantomjs docker images.

Also it can be used to get a binary release for phantomjs for Alpine Linux x86_64.

## Building a binary release

```
make
```

The release will be saved to `artifacts/phantomjs-alpine.tar.bz2`.

5 comments on commit 1925b5e

@vitoo
Copy link

@vitoo vitoo commented on 1925b5e Jun 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does-it still work for you ? 'make' can't build completely for me.

Thanks

@Overbryd
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope its broken. I didn't pursue phantomjs on alpine any further and used a different libc compliant base image.

@vitoo
Copy link

@vitoo vitoo commented on 1925b5e Jun 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, have you a docker working for phantomjs ?

I've used this : https://hub.docker.com/r/wernight/phantomjs/

Work on my dev pc (fedora) doesnt work on alpine linux VPS =/

@Overbryd
Copy link
Owner Author

@Overbryd Overbryd commented on 1925b5e Jun 19, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vitoo
Copy link

@vitoo vitoo commented on 1925b5e Jun 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same behavior with a ubuntu based docker

Please sign in to comment.