Skip to content

Commit 1925b5e

Browse files
committed
release 2.11
1 parent cee6b5d commit 1925b5e

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ RUN cd /usr/src/phantomjs \
5757
&& apk del .build-deps \
5858
&& rm -r /*.patch /usr/src
5959

60+
RUN apk add patchelf --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
61+
6062
# package binary build
6163
RUN cd /root \
62-
&& apk add patchelf --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \
6364
&& mkdir -p phantomjs/lib \
6465
&& cp /usr/bin/phantomjs phantomjs/ \
6566
&& cd phantomjs \
@@ -68,7 +69,7 @@ RUN cd /root \
6869
| cut -d' ' -f2`; do \
6970
cp $lib lib/`basename $lib`; \
7071
done \
71-
&& patchelf --set-rpath lib phantomjs \
72+
&& patchelf --set-rpath '$ORIGIN/lib' phantomjs \
7273
&& cd /root \
7374
&& tar cvf phantomjs.tar phantomjs \
7475
&& bzip2 -9 phantomjs.tar

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
NAME=artifacts/phantomjs-v2.11-alpine.tar.bz2
1+
NAME=artifacts/phantomjs-alpine-x86_64.tar.bz2
22
all: $(NAME)
33

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

77

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

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# phantomjs on Alpine Linux x86_64
2+
3+
This repository uses docker to build a phantomjs docker images.
4+
5+
Also it can be used to get a binary release for phantomjs for Alpine Linux x86_64.
6+
7+
## Building a binary release
8+
9+
```
10+
make
11+
```
12+
13+
The release will be saved to `artifacts/phantomjs-alpine.tar.bz2`.
14+

0 commit comments

Comments
 (0)